Repository navigation
🧪 test(e2e): follow the new Web UI layout; prerender home as the stage - #660
Merged
Merged
Conversation
…creen The decks page started its layout state as "sheet", so the prerendered home (and every first paint until hydration) laid out the deck-screen frame and showed DeckListView's New Deck button, while the chat shell itself was already rendered as the stage. Hydration then switched to the stage and removed the button. Start the state as "stage", the shell's own first layout on the home screen. Found through the e2e suite: in CI the specs caught the prerendered New Deck button, saw it "not stable" and then "detached from the DOM" once hydration removed it. A probe of the home screen (MutationObserver, 15 s) showed the button attached at ~25 ms and gone at ~430 ms, then no DOM mutations at all: a one-off swap at hydration, not a re-render loop. After this change the button never appears on the home screen. Checks: npm test 131 files / 1516 tests passed (one earlier full run hit a SlideCarousel timing flake that passes alone 3/3 and on the re-run); npx tsc --noEmit OK; npx eslint src/ --quiet OK.
Since #657 the home screen is the composer at the stage and DeckListView's New Deck button only shows beside an open deck's sheet, so every spec that clicked New Deck waited out its 60 s timeout (22 of the 25 failures in CI run 44315920373; locally 25 failed / 3 passed in 24.6 min on 7c1e45f). The specs now open /decks and type into the home composer once it has taken the focus (it does so on hydration, on desktop), which also keeps a fill from landing in the prerendered textarea. deck-creation additionally checks that the home screen shows no New Deck button. Specs: background-reopen, compose-async, compose-card, continue-session, deck-creation, deck-reload, model-picker. Checks (on the branch tip with the next two commits): npm run test:e2e 30 passed in 1.8 min (1:50 wall; the last green CI e2e on main took 2.6 min for 28); npx tsc --noEmit OK; npx eslint e2e/ --quiet OK.
The spec waited for a chat tab button named after the deck; #657 removed the deck chat tabs (one conversation per screen), so it timed out on both engines. It now waits for the deck bar's heading with the loaded deck's name (a name without a folder timestamp shows unchanged through deckDisplay), after which the deck's sheet is the only chat input. Checks (on the branch tip): npm run test:e2e 30 passed in 1.8 min; mcp-deck-open v3 1.6 s, v2 1.7 s.
multi-chat started its chats with New Deck (gone from the home screen since #657). Its chats now start from the home composer, and a new "one conversation per screen" group checks the behaviour #657 agreed on (V3 only; the layout does not depend on the engine): - the home screen is the stage (composer and title, no New Deck, no New chat); a message makes the conversation take the screen, with New chat and the deck list below - the home conversation stays across opening a deck and going back through the rail's Decks item; only New chat clears it - a deck's sheet shows only that deck's conversation, with no tabs and no New chat; closed, it opens again from Chat in the deck's bar - a deck the home conversation makes keeps the same conversation element (marked before the deck opens, still streaming), and the home screen is blank again The two several-chats tests (one stub process per chat, Stop while kiro-cli starts) stay as they were. Checks (on this commit, the branch tip): npm run test:e2e 30 passed in 1.8 min (1:50 wall), no timeouts; npm test 131 files / 1516 tests passed (vitest covers src/ only, unchanged since the UI fix); npm run build:cloud OK; npx tsc --noEmit OK; npx eslint src/ --quiet OK; en/ja key parity OK (638 keys).
…the home conversation SPEC: 20261119-0940_e2e-new-layout Progress: the logo and the rail's Decks item share one handler (back on a deck, scroll to the list on the centred home); multi-chat checks the logo path does not reload Next: CI on #660
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.
Summary
Brings the Playwright e2e suite in line with the Web UI from #657. Main's e2e has failed since that merge: 25 of 28 tests hit 60s locator timeouts (run 44315920373).
mcp-deck-openwaited for the removed deck chat tab; it now waits for the deck's name in the deck bar.multi-chatis rewritten for one conversation per screen. Two new tests check that the home conversation survives opening a deck and coming back, and that a conversation that creates a deck becomes that deck's chat./decks/, so it reloaded the page and dropped the home conversation. It now goes back in place like the rail's Decks item, andmulti-chatchecks that it does not reload. The test fails without the fix."sheet", so the prerendered home screen was laid out as the deck screen and showed New Deck until hydration. That one-off swap is the "not stable → detached" in the CI log; nothing re-renders continuously. The initial layout is now"stage".Checklist
make allpasses (ruff + pytest): no Python changesash scan --mode local --fail-on-findingspasses (see CONTRIBUTING.md): no new code paths beyond tests and one initial stateCHANGELOG.md[Unreleased]updated for user-facing changes: not needed. The prerender flash was never released; it came in with feat(web-ui): lay the Web UI out anew and keep one conversation per screen #657, which is not in a release yet.Testing
npm run test:e2e: 30 passed in 1.9 min. Before the fix: 25 failed and 3 passed in 24.6 min.npm test(1516),npm run build:cloud,tsc --noEmit,eslint, en/ja key parity.Boundaries touched
None.