Skip to content

Add browser tests for served URLs, save rules and every list page - #12

Merged
aevnsvi merged 3 commits into
mainfrom
e2e-remote-repositories
Oct 29, 2026
Merged

aevnsvi merged 3 commits into
mainfrom
e2e-remote-repositories

Conversation

@aevnsvi

@aevnsvi aevnsvi commented Oct 29, 2026

Copy link
Copy Markdown

Extends the remote Playwright projects (run by a person against a deployment given by environment variables, never by a hosted workflow).

  • e2e/support/api.ts: Basic-authenticated API context for set-up and clean-up. Every object a spec writes is named zz-e2e---; clean-up deletes what the spec registered plus anything still carrying its own prefix and fails when something is left.
  • urls.spec.ts: the repository page shows the base_url the API returns for each distribution (details and Distributions tab) and flags a distribution with nothing to serve.
  • create.spec.ts: an edit-save sends no POST and creates no distribution; taken base paths and names and reserved prefixes (read from the served UI config) are refused before any POST; the default base path equals the name and the preview equals the created base_url; a double click on Save sends one repository POST.
  • server-change.spec.ts: a distribution deleted or re-bound on the server stays on an open repository page and is gone from the details, the Distributions tab and the edit form after a reload.
  • list-pages.ts, list-pages.spec.ts, list-pages.viewer.spec.ts: one test per list route and account; pages of a plugin the server does not run are skipped with the plugin named; pages that fail because of defects of the deployed application are marked test.fixme with the reason.

Checked locally: lint, type-check and the remote projects against a test deployment, three consecutive runs green, nothing left behind.

- e2e/support/api.ts: Basic-authenticated API context, run-scoped names,
  task waiting and a clean-up that deletes only what a spec created
- e2e/remote/urls.spec.ts: repository pages show the base_url the API
  returns and flag a distribution with nothing to serve
…tribution changes

- create.spec.ts: edit-save sends no POST, taken paths and names and reserved
  prefixes are refused before any POST, default base path and preview match the
  created distribution, a double click sends one repository POST
- server-change.spec.ts: a distribution deleted or re-bound on the server stays
  on an open repository page and is gone after a reload
…ited account

- list-pages.ts holds every list route with its plugin and title; pages of a
  plugin the server does not run are skipped with the plugin named
- the admin tests require the title, no error boundary, no error alert and no
  uncaught error; the limited account must show its title or an error alert,
  never the error boundary
- pages that fail because of defects of the deployed application are marked
  test.fixme with the reason
@aevnsvi
aevnsvi merged commit b36ac74 into main Oct 29, 2026
6 of 7 checks passed
@aevnsvi
aevnsvi deleted the e2e-remote-repositories branch October 29, 2026 18:37
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