Skip to content

Commit 0a5e4fa

Browse files
Change playwright config back to headless and added test setup in the README.
1 parent 7c38338 commit 0a5e4fa

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,21 @@ The following table is a list of supported browsers based on the above requireme
103103
<sup>1</sup> devices running iOS needs to be on iOS 14.3+ for camera video streaming to work in Chrome, Firefox or other Apps using webviews.
104104

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.
106+
107+
108+
## Test Setup
109+
110+
To set up and run the tests for this project, follow these steps:
111+
112+
1. Install the project dependencies:
113+
```
114+
npm install
115+
```
116+
117+
2. Run the tests:
118+
```
119+
npm test
120+
```
121+
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+

playwright.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
/* Base URL to use in actions like `await page.goto('/')`. */
2828
baseURL: "http://localhost:3000",
2929
/* Enable headless mode by default */
30-
headless: false,
30+
headless: true,
3131
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3232
trace: "on-first-retry",
3333
},
@@ -41,8 +41,8 @@ export default defineConfig({
4141
launchOptions: {
4242
args: [
4343
"--disable-web-security",
44-
"--enable-web-rtc"
45-
// "--headless=chrome"
44+
"--enable-web-rtc",
45+
"--headless=chrome"
4646
],
4747
},
4848
contextOptions: {

0 commit comments

Comments
 (0)