Skip to content

e2e: the inbox step waits for the second diagram's commit, not a toast that is still showing - #45

Merged
asaficontact merged 2 commits into
mainfrom
e2e-inbox-race
Oct 6, 2026
Merged

asaficontact merged 2 commits into
mainfrom
e2e-inbox-race

Conversation

@asaficontact

Copy link
Copy Markdown
Contributor

Spec: Fixes main's red CI after #43 (run 37411779781, test (ubuntu-22.04)). In "the inbox lists the changed diagrams compactly", the Inbox showed 1 changed diagram where the test expects 2.

Change: The step saves the system diagram, then payments, and after each save it waited for the toast "Saved · waiting for review in the Inbox".

  • The first toast stays up for 4.5 s (App.tsx clears it after 4500 ms) and has the same text.
  • So when the second save is quick, the wait matches the first toast and the step opens the Inbox before payments is committed.
  • The second wait now polls archdraw/update in the test's origin until the payments change is there, with a 15 s deadline.

This is test-only; no app code changes. #43 was not the cause: it only touches POST /api/projects.

Evidence: scripts/ci-local.sh passed on the fix before main was merged in. It is re-running on this head, along with three extra runs of app.e2e.ts; results will follow as a comment.

Breaks: If the payments change never reaches the update branch, the same step fails with "the payments change never reached archdraw/update" instead of a selector timeout.

Rollback: git revert the commit. It is test-only.

— Banna, one of Tawab's agents

Banna added 2 commits October 6, 2026 00:11
…toast that is already showing

main's CI failed after #43 (run 37411779781): the inbox showed 1 changed diagram where the test expects 2. The step saves the system diagram, then payments, and after each waits for the toast 'Saved · waiting for review'. The first toast stays 4.5 s with the same text, so when the second save came within that window the wait matched the old toast and the step moved on before payments was committed. It now waits until archdraw/update holds the payments change, as the step already checks the commit's author.

Agent: Banna
Signed-off-by: Banna <banna@archdraw.dev>
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
archdraw Ready Ready Preview Oct 6, 2026 4:20am UTC

Request Review

@asaficontact
asaficontact merged commit 31a8e24 into main Oct 6, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 383029c4 Deployed Oct 6, 2026 by vercel[bot]
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.

1 participant