Files
wekan/tests/playwright
Lauri Ojansivu b0bffe8c16 Playwright: address an Admin Panel menu entry by data-id, not by a per-page class.
14 tests failed in every browser in the newest run (../log/2026-07-26_05-22-11),
all on one selector:

  TimeoutError: locator.waitFor: Timeout 15000ms exceeded.
    - waiting for locator('.js-people-menu') to be visible

`.js-people-menu` and `.js-templates-menu` do not exist any more. Admin Panel /
People renders the ONE shared left menu now, which is `a.js-left-menu-item(
class="{{jsClass}}" data-id="{{id}}")` - and People passes no jsClass, so its
entries have no per-page class at all. data-id is what the design says a page's
click handler reads (docs/Design/Page/Left-Menu.md), so that is what the tests
address the entry by: it cannot be removed by a conversion the way a per-page
class was.

The same conversion had left three other groups of selectors behind:

  * Admin Panel / Problems' report entries - a.js-report-files / -rules / -boards
    / -cards / -impersonation - are the shared menu too, so they become
    [data-id="report-files"] and so on;
  * every report's own search input (input.js-rules-search-input and its four
    siblings) is the shared controls row's input.js-table-page-search, and
    .admin-report-pagination is .table-page-pagination - one shared table page for
    all of them (docs/Design/Page/Table.md). The Files test also asserts the old
    input is GONE, beside the Search button it already asserted;
  * the People pager in the page object, button.js-people-next-page /
    -prev-page, is the shared button.js-table-page-next / -prev.

The four reports that must not hang on FerretDB were proved ready by their own
search input rendering; with one shared input for every report that no longer
distinguishes them, so each is now proved by the shared input AND the pane title
naming that report.

Not run here: this sandbox has no node, so the suite has to be run on a machine
that has one. Every selector introduced was checked to exist in the app, and the
four report titles were checked against en.i18n.json.

Thanks to xet7 !
2026-07-26 06:19:22 +03:00
..