Skip to content

Wait for the note to be on the panel before leaving for the bill - #49

Merged
sridharkalaibala merged 1 commit into
mainfrom
test/wait-for-the-note
Sep 12, 2026
Merged

sridharkalaibala merged 1 commit into
mainfrom
test/wait-for-the-note

Conversation

@sridharkalaibala

Copy link
Copy Markdown
Contributor

tests/bill.spec.js › a spoken requirement is on the bill has been red on main since this morning, on main's own runs, with nothing wrong in the app: the panel is visible before the order is understood and the note is written, and on a slow runner the spec left for the bill at that moment. Locally it passes every time.

Waiting for the panel to show the note is waiting for the write. Spec only.

The panel is visible before the order is understood and the note is written.
On a slow runner the spec left for the bill at that moment and the note was
still on its way to the line, so tests/bill.spec.js went red on main with
nothing wrong in the app. Waiting for the panel to show the note is waiting
for the write.
@sridharkalaibala
sridharkalaibala merged commit 9a0c08f into main Sep 12, 2026
4 checks passed
sridharkalaibala added a commit that referenced this pull request Sep 12, 2026
#47 landed on main while this was open, and it changes the same file for a
different reason: this one restructures the panel into listening / review /
done, that one teaches it to use the richer answer the till's AI sends. Both
are wanted, so neither side was taken whole.

Two conflicts, resolved by keeping the structure from here and porting #47's
three features into it rather than back onto the old render():

  the read-back    setText('note', view.summary || view.status), and nothing
                   at all during the review, because the review says what it
                   is for itself
  "Did you mean"   the candidate chips now hang off the unplaced row inside
                   cartHtml(), where that row moved to
  "Goes well"      the suggestions row is appended by cartHtml() after the
                   order, an offer below the lines rather than among them

view gained both sets of fields; neither side's were dropped.

In the tests, both blocks are kept. Three of #47's read the CART after
absorb(), which no longer applies anything - so they walk through confirm()
like every other test in the file. The two that read what the TILL SAID, the
summary and the suggestions it offered, do not: that is held the moment the
answer arrives, before anybody has agreed to anything.

And one the merge got wrong on its own. bill.spec.js gained #49's wait for the
note to appear in the panel, which auto-merged ABOVE the confirm click added
here - but .vp-want is on a cart row, and there is no cart row until confirm
has run, so the wait could never have been satisfied. It belongs after, which
is also where it does the job #49 added it for.

246 node tests and 124 browser tests pass.
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