Skip to content

Commit 765d711

Browse files
eugene-dynamsoftfelixindrawan
authored andcommitted
Change playwright config back to headless and added test setup in the README.
1 parent 4667077 commit 765d711

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,21 @@ The following table is a list of supported browsers based on the above requireme
101101
<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.
102102

103103
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.
104+
105+
106+
## Test Setup
107+
108+
To set up and run the tests for this project, follow these steps:
109+
110+
1. Install the project dependencies:
111+
```
112+
npm install
113+
```
114+
115+
2. Run the tests:
116+
```
117+
npm test
118+
```
119+
120+
This will install all necessary dependencies, including Playwright for end-to-end testing, and then execute the test suite defined in the project.
121+

playwright.config.js

Lines changed: 3 additions & 3 deletions
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)