Skip to content

test(exapp_integration): add a browser test that the admin settings page renders - #1033

Merged
oleksandr-nc merged 1 commit into
mainfrom
test/playwright-admin-settings
Sep 14, 2026
Merged

test(exapp_integration): add a browser test that the admin settings page renders#1033
oleksandr-nc merged 1 commit into
mainfrom
test/playwright-admin-settings

Conversation

@oleksandr-nc

@oleksandr-nc oleksandr-nc commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

On stable32 the AppAPI admin settings page has rendered empty since 32.0.13 (fixed in #1034). Dependabot PR #915 deduped @nextcloud/l10n to 3.4.1 under @nextcloud/vue 8.17.1, whose bundled translation code writes to a gettext internal that @nextcloud/l10n 3.2 removed, so the script throws TypeError: Cannot read properties of undefined (reading 'catalogs') while loading. Nothing in CI opened the page, so the bump and its recompiled assets shipped.

This adds test_admin_settings.py to the ExApp integration suite, next to the FileActionMenu test for #848: it opens the admin settings page as admin and asserts that there are no uncaught errors or failing app_api requests, and that the headings, the daemon list with manual_daemon and the register button render. The suite's job already builds the frontend from the PR's lockfile, so a dependency bump like #915 now fails before it merges.

Verified locally: the test passes against server master and fails with the catalogs error when the stable32 admin bundle is swapped in.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 443618cd-73af-4be9-a2b7-56c164542736

📥 Commits

Reviewing files that changed from the base of the PR and between a32c6a0 and ec3ea5f.

📒 Files selected for processing (1)
  • tests/exapp_integration/test_admin_settings.py

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Adds a Playwright test for the AppAPI admin settings page. The test records uncaught page errors and HTTP error responses, then verifies the AppAPI and Deploy daemons headings, the configured daemon name, and the Register daemon button.

Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: 🔵 Low · up to ec3ea

The test change is otherwise ready, but the documented Playwright server-version behavior remains inaccurate for stable-branch pull requests.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description clearly explains the rendering regression, the new browser test, the covered assertions, and the dependency issue that the test detects.
Title check ✅ Passed The title clearly and concisely identifies the addition of a browser test for the AppAPI admin settings page rendering.
  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/playwright.yml (1)

85-85: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Run the Playwright npm script in CI.

This command bypasses npm run playwright, which is the documented local entry point. If the script gains required options or setup, local and CI execution will diverge.

Proposed fix
-        run: npx playwright test
+        run: npm run playwright

Based on learnings, use the composer/npm scripts because these are what CI runs.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 73dcde79-dfb0-4655-aef1-73d403d35f29

📥 Commits

Reviewing files that changed from the base of the PR and between e2c623d and a32c6a0.

⛔ Files ignored due to path filters (4)
  • js/app_api-adminSettings.js.map is excluded by !**/*.map
  • js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-W-IYpVkn_mjs.js.map is excluded by !**/*.map
  • js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks__plugin-vue_export-helper-1tPrXgE0_mjs-nod-dc4ad5.js.map is excluded by !**/*.map
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (13)
  • .github/workflows/playwright.yml
  • .gitignore
  • AGENTS.md
  • js/app_api-adminSettings.js.license
  • js/app_api-node_modules_nextcloud_dialogs_dist_chunks_PublicAuthPrompt-uFWxS9Cy_mjs.js.license
  • js/app_api-vendors-node_modules_mdi_js_mdi_js-node_modules_nextcloud_dialogs_dist_chunks_preview-BIbJGxX-e6bda3.js.license
  • js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks_ConflictPicker-D-B-WV0C_mjs.js.license
  • js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-W-IYpVkn_mjs.js.license
  • js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks__plugin-vue_export-helper-1tPrXgE0_mjs-nod-dc4ad5.js.license
  • package.json
  • playwright.config.ts
  • tests/playwright/e2e/admin-settings.spec.ts
  • tests/playwright/start-server.mjs

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.

Comment thread AGENTS.md Outdated
- `phpunit.yml`: `composer test:unit` on PHP 8.3 and 8.4.
- `js-test.yml`: vitest on `src/**` changes.
- `playwright.yml`: builds the frontend and runs the Playwright E2E tests in `tests/playwright/` against a
Nextcloud test container (server `master`).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Describe the server branch selection accurately.

The workflow passes github.base_ref for pull requests. The server script maps only main to master. A pull request targeting stable32 therefore tests stable32, not master.

Proposed fix
-  Nextcloud test container (server `master`).
+  Nextcloud test container (the pull request base branch; `main` maps to server `master`).
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Nextcloud test container (server `master`).
Nextcloud test container (the pull request base branch; `main` maps to server `master`).

…age renders

Signed-off-by: Oleksandr Piskun <oleksandr2088@icloud.com>
@oleksandr-nc
oleksandr-nc force-pushed the test/playwright-admin-settings branch from a32c6a0 to ec3ea5f Compare September 14, 2026 11:16
@oleksandr-nc oleksandr-nc changed the title test(playwright): add an E2E test that the admin settings page renders test(exapp_integration): add a browser test that the admin settings page renders Sep 14, 2026
@oleksandr-nc

Copy link
Copy Markdown
Contributor Author

/backport to stable35

@oleksandr-nc

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@oleksandr-nc
oleksandr-nc merged commit 2eceed2 into main Sep 14, 2026
58 of 59 checks passed
@oleksandr-nc
oleksandr-nc deleted the test/playwright-admin-settings branch September 14, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant