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
docs(components): update docs (#13953)
Nav-2d831b9e1d6dfb
diff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.mdindex 2b3b20208b..dabaffd0f9 100644--- a/docs/src/test-components-js.md+++ b/docs/src/test-components-js.md@@ -16,7 +16,7 @@ test('event should work', async ({ mount }) => {let clicked = false;// Mount a component. Returns locator pointing to the component.- const c = await mount(<Button title='Submit'+ const component = await mount(<Button title='Submit'onClick={() => clicked = true}></Button>);@@ -33,7 +33,7 @@ test('event should work', async ({ mount }) => {## How to get started-Adding Playwright Test to an existing React, Vue or Svelte project is easy. Below at the steps to enable Playwright Test for a sample create-react-app with TypeScript template.+Adding Playwright Test to an existing React, Vue or Svelte project is easy. Below are the steps to enable Playwright Test for a sample create-react-app with TypeScript template.### Step 1: Install Playwright Test for components for your respective framework@@ -54,7 +54,7 @@ npm i @playwright/experimental-ct-react</html>```-### Step 3: create `playwright/index.js`+### Step 3: create `playwright/index.ts````js// Apply theme here, add anything your component needs at runtime here.```