Skip to content

Commit 605925a

Browse files
committed
Wait for home's composer, not its greeting, when a skin switch lands home
Home's heading became a personal greeting in #861, so the test that a skin switch on a skin-only screen lands on a drawn home waited for wording that no longer exists. It now waits for the home composer.
1 parent dcdf57e commit 605925a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎app/tests/skins-account.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ test("a skin switched while on a screen only the old skin has lands on home, dra
371371
expect(document.querySelector("[data-openduet-frame]")).toBeNull();
372372
// Home, inside the new skin's frame, with something on it.
373373
expect(
374-
await view.findByRole("heading", { name: "Start a conversation" }, HOME),
374+
// Home draws its composer; its greeting is personal, so it is not what this waits for.
375+
await view.findByRole("textbox", { name: "Message" }, HOME),
375376
).toBeTruthy();
376377
expect(document.querySelector("[data-opendots-main]")).not.toBeNull();
377378
});

0 commit comments

Comments
 (0)