Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(ct): fix component.update example for vue and svelte (#31889)

Sanderc9a12e4ca1b7
diff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.md
index dc448eff00..e0bdc000bf 100644
--- a/docs/src/test-components-js.md
+++ b/docs/src/test-components-js.md
@@ -697,7 +697,7 @@ test('update', async ({ mount }) => {
```js
test('update', async ({ mount }) => {
- const component = await mount(<Component/>);
+ const component = await mount(Component);
await component.update({
props: { msg: 'greetings' },
on: { callback: () => {} },
@@ -711,7 +711,7 @@ test('update', async ({ mount }) => {
```js
test('update', async ({ mount }) => {
- const component = await mount(<Component/>);
+ const component = await mount(Component);
await component.update({
props: { msg: 'greetings' },
on: { callback: () => {} },