Skip to content

🧪 test(e2e): follow the new Web UI layout; prerender home as the stage - #660

Merged
ShotaroKataoka merged 5 commits into
mainfrom
fix/e2e-new-layout
Nov 19, 2026
Merged

ShotaroKataoka merged 5 commits into
mainfrom
fix/e2e-new-layout

Conversation

@ShotaroKataoka

@ShotaroKataoka ShotaroKataoka commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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).

  • Outdated tests (24): they clicked New Deck before typing. The home screen's chat input is now in the middle of the page, so they type into it directly. mcp-deck-open waited for the removed deck chat tab; it now waits for the deck's name in the deck bar. multi-chat is 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.
  • Logo: on a deck screen the logo was a plain link to /decks/, so it reloaded the page and dropped the home conversation. It now goes back in place like the rail's Decks item, and multi-chat checks that it does not reload. The test fails without the fix.
  • UI bug (1, d38ab2c): the decks page's layout state started as "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 all passes (ruff + pytest): no Python changes
  • ash scan --mode local --fail-on-findings passes (see CONTRIBUTING.md): no new code paths beyond tests and one initial state
  • Docs updated if behavior/paths changed (README, docs/en, AGENTS.md): not needed
  • CHANGELOG.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.
  • Commit messages follow Conventional Commits

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.

…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).
@ShotaroKataoka ShotaroKataoka added the blog:skip ブログ対象外 label Nov 19, 2026
…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
@ShotaroKataoka
ShotaroKataoka enabled auto-merge (squash) November 19, 2026 01:48
@ShotaroKataoka
ShotaroKataoka merged commit c3b4977 into main Nov 19, 2026
18 checks passed
@ShotaroKataoka
ShotaroKataoka deleted the fix/e2e-new-layout branch November 19, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog:skip ブログ対象外

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant