Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
doc(todomvc): correctly test that the edit is cancelled (#17128)
ilovehackathonsb689c514294b
diff --git a/examples/todomvc/tests/integration.spec.ts b/examples/todomvc/tests/integration.spec.tsindex 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);});