diff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.md index 2d9d115bd6..b5a0d3bedb 100644 --- a/docs/src/test-components-js.md +++ b/docs/src/test-components-js.md @@ -18,13 +18,24 @@ Playwright Test can now test your components. Here is what a typical component test looks like: + + + ```js -test('event should work', async ({ mount }) => { +test('trigger event upon button click', async ({ mount }) => { let clicked = false; // Mount a component. Returns locator pointing to the component. const component = await mount( - +