Skip to content

fix(e2e): make the suite load again after the lint sweep - #1089

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/e2e-suite-loads
Sep 1, 2026
Merged

fix(e2e): make the suite load again after the lint sweep#1089
rubenvdlinde merged 1 commit into
developmentfrom
fix/e2e-suite-loads

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

The lint sweep left shapes that eslint and prettier both call clean while the Playwright suite fails to load. development collected zero tests.

A Playwright callback's destructuring is a fixture request, not a binding list. Renaming an unused page to _page asks for a fixture that does not exist, and the file never loads. The binding is renamed, the key kept:

async ({ page: _page }) => {

no-empty-pattern is wrong here too. Playwright requires the first argument to BE an object destructuring pattern, so ({}, testInfo) is how a callback says it needs no fixtures. Restored with a reasoned directive placed on the line directly above the code — a directive further up is itself reported as unused, and eslint --fix deletes it.

The check that catches this

npx playwright test --list parses every spec without running one. A green linter cannot tell you the suite still loads.

208 tests in 40 files (was 0). npm run lint 0 errors, prettier clean.

The lint pass left two shapes that eslint and prettier both call clean while
the Playwright suite fails to load. `development` collected ZERO tests.

A Playwright callback's destructuring is a FIXTURE REQUEST, not a binding list.
Renaming an unused `request` to `_request` asks for a fixture that does not
exist and the file never loads. The binding is renamed, the key kept:

    async ({ page, request: _request }) => {

And the type-import conversion added a second `import type { Page }` to a file
that already imported `Page` alongside `ConsoleMessage`, which is a
duplicate-identifier SyntaxError.

`npx playwright test --list` parses every spec without running one, and is the
check that catches both. A green linter cannot.
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/decidiq @ 74c7b96

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-manifest
check-nav-ceiling
test-l10n
format
check-l10n-js
check-schema-l10n
composer ✅ 104/104
npm ✅ 537/537
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright ⏭️ deferred — runs on the promotion into beta/main, not on a pull request into development
Hydra gates

Quality workflow — 2026-09-01 11:27 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 13632dc into development Sep 1, 2026
49 checks passed
@rubenvdlinde
rubenvdlinde deleted the fix/e2e-suite-loads branch September 1, 2026 12:07
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.

2 participants