From b689c514294bed5c5c8deaa360850942e795679d Mon Sep 17 00:00:00 2001 From: ilovehackathons <106395723+ilovehackathons@users.noreply.github.com> Date: Tue, 13 Sep 2022 06:39:30 +0200 Subject: [PATCH] doc(todomvc): correctly test that the edit is cancelled (#17128) --- examples/todomvc/tests/integration.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/todomvc/tests/integration.spec.ts b/examples/todomvc/tests/integration.spec.ts index 0faf4da1e6..4f53e5380a 100644 --- a/examples/todomvc/tests/integration.spec.ts +++ b/examples/todomvc/tests/integration.spec.ts @@ -242,6 +242,7 @@ test.describe('Editing', () => { test('should cancel edits on escape', async ({ page }) => { const todoItems = page.locator('.todo-list li'); await todoItems.nth(1).dblclick(); + await todoItems.nth(1).locator('.edit').fill('buy some sausages'); await todoItems.nth(1).locator('.edit').press('Escape'); await expect(todoItems).toHaveText(TODO_ITEMS); });