Files
Ferdinand Thiessen 319f99e375 test(playwright): adjust for @nextcloud/dialogs 7.5.0 and switch roles
Backport of the Playwright adjustments from d12356c774 and 9e22cc3863:

- toasts are now mirrored into a hidden live region, so plain text lookups
  resolve to two elements; add a `getToast()` helper matching the visible
  toast by its `alert` / `status` role and use it everywhere
- `NcCheckboxRadioSwitch` of type switch now exposes role `switch`, query
  it as such (theming, users, external storage, login redirect, personal info)
- wait for the preview of a file before moving, copying or renaming it on a
  public share, as preview generation locks the file

Additionally close the page created by the random user session fixture: the
runner only closes the built-in `context` fixture, so every test left its
page open in the worker's browser, and the failure snapshot was taken from
the oldest open context - i.e. from an earlier test.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Assisted-by: ClaudeCode:claude-fable-5-1
2026-10-25 14:04:43 +01:00
..