Skip to content

Commit 136ef6d

Browse files
committed
update readme
1 parent f92d45e commit 136ef6d

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,39 @@ The following table is a list of supported browsers based on the above requireme
105105
Apart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.
106106

107107

108-
## Test Setup
108+
## End to End (E2E) testing with Playwright
109109

110-
To set up and run the tests for this project, follow these steps:
110+
The end-to-end (E2E) tests for this project are located in the `/e2e` folder.
111+
112+
To set up and run the tests, follow the steps below:
111113

112114
1. Install the project dependencies:
113-
```
114-
npm install
115-
```
115+
116+
```bash
117+
npm install
118+
npx playwright install --with-deps # installs Playwright and all required browsers and dependencies
119+
```
116120

117121
2. Run the tests:
118-
```
119-
npm test
120-
```
121122

122-
This will install all necessary dependencies, including Playwright for end-to-end testing, and then execute the test suite defined in the project.
123+
```bash
124+
npm test
125+
```
126+
127+
This command will trigger the Playwright test suite, executing all tests defined in the `/e2e` folder.
128+
129+
### Additional Notes
123130

131+
- **Playwright Configurations:** If you need to customize the Playwright settings (like browser options, timeouts, or environment variables), check the playwright.config.ts file in the root directory.
132+
133+
- **Running Specific Tests:** To run a specific test file or group, use:
134+
135+
```bash
136+
npx playwright test <test-file-name>
137+
```
138+
139+
- **Generating Reports:** Playwright can generate test reports. You can view detailed results after the tests by running:
140+
141+
```bash
142+
npx playwright show-report
143+
```

0 commit comments

Comments
 (0)