Repository navigation
test(e2e): the office kanban suite runs, and passes, against the real board - #808
Merged
Merged
Conversation
… board (#553) The suite had never executed: it was not in the root config's testMatch, and once it was, it had been written against a DOM the board no longer has. Every fix is a selector or a flow, none is a product change: - playwright.config.ts: add the kanban spec to testMatch (one at a time, as #553 asks; the other office specs stay off until each is green). - auth.setup.ts: the super-admin step waited for `networkidle`, which the Expo dev server's HMR socket never reaches, so it timed out on every fresh run and only the retry wrote tests/.auth/super-admin.json. It waits for `domcontentloaded` like the other two steps. - kanban-helpers.ts: cards are `[data-testid^="kanban-card-"]`, not `[draggable]` (dnd-kit sets none) or `[role="button"]` (which also matched every Move menu and doubled the counts); a card is found by filtering those on the candidate name; `inquired` joins the column list, so the summary equals the cards on the page. - the spec: the page opens in the Lanes view now, so the setup clicks the Board segment; candidate names come from the card's first text line (react-native-web has no `<text>` element for `locator('text')` to find); the rejected column reads "Closed"; the modal is located by button name and placeholder because its `data-testid` props never reach the DOM; the viewport is wide enough that every drag target is on screen; the cookie banner is pre-answered so it cannot swallow a drop; and the hire test pins the success-fee gate (notes field, no bare confirm, cancel restores) instead of a confirm that no longer exists. Verified: 23/23 against `expo export --platform web` + `expo serve` on 8081 with the local stack and the seeded ATS fixtures, from a deleted tests/.auth. Against `expo start --web` the same run OOMs Metro's 8 GB heap after ~9 minutes of parallel SSR renders; the export is the target the root config wants. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #553.
What was actually wrong
The suite had never executed. The auth-setup half was fixed in #574; this PR is the other half plus everything that surfaced once the specs ran for the first time. Every change is a selector or a flow in test code; no product code changes.
testMatchallow-listtests/.auth/super-admin.jsonwaitUntil: 'networkidle'never settles on the Expo dev server's HMR socketdomcontentloaded, same as the admin and user stepslocator('text')— react-native-web rendersTextas<div dir="auto">, there is no<text>element[draggable="true"](dnd-kit sets none) and[role="button"](matched every Move menu)[data-testid^="kanban-card-"], filtered by nameinquireddata-testidprops never reach the DOM (uiButton/TextAreado not forward them)addInitScripthandleConfirmreturns early for hiresVerified
tests/.auth/deleted,setupproject regenerated all three files (3.5 s / 9.3 s / 9.3 s), then 23 / 23 passed in 31 s,--retries=0expo export --platform web+expo serve --port 8081, local Supabase, seeded ATS fixtures. Againstexpo start --webthe same run OOMs Metro's 8 GB heap after ~9 min of parallel SSR renders; recorded in e2e: run the root Playwright config (office suites) in CI against a static web export #807 with the CI wiring that is still missing (nothing in CI runs the root config today).Not done here, on purpose: #553's third box, "reverting the employer applications endpoint turns the suite red", was not re-proved by a revert. The fixture-precondition block from #538 is what makes an empty board fail rather than skip, and the first run in this session showed the whole suite red rather than green-by-skipping when the board could not be reached.
🤖 Generated with Claude Code