Skip to content

Commit 831fb5d

Browse files
committed
test(web): retain pending provider accent save coverage
1 parent 91d5618 commit 831fb5d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/web/src/components/settings/colorPickers.browser.test.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,13 @@ describe("provider accent color picker", () => {
202202
it("saves a change back to the saved color while the first change is still saving", async () => {
203203
await using screen = await renderAccentPicker("#ff0000");
204204

205-
await userEvent.fill(byLabel("Custom hex accent color"), "#00FF00");
206-
await screen.echo("#00FF00");
207-
expect(byLabel<HTMLInputElement>("Custom hex accent color").value).toBe("#00FF00");
205+
await userEvent.fill(byLabel("Custom hex accent color"), "#00ff00");
208206
await userEvent.fill(byLabel("Custom hex accent color"), "#ff0000");
209207

210208
expect(screen.onCommit).toHaveBeenLastCalledWith("#ff0000");
209+
await userEvent.fill(byLabel("Custom hex accent color"), "#00FF00");
210+
await screen.echo("#00FF00");
211+
expect(byLabel<HTMLInputElement>("Custom hex accent color").value).toBe("#00FF00");
211212
});
212213

213214
it("shows the saved color again when it is reverted outside the picker", async () => {

0 commit comments

Comments
 (0)