Skip to content

Commit

Permalink
Change playwright config back to headless and added test setup in the…
Browse files Browse the repository at this point in the history
… README.
  • Loading branch information
eugene-dynamsoft authored and felixindrawan committed Sep 6, 2024
1 parent 4667077 commit 765d711
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,21 @@ The following table is a list of supported browsers based on the above requireme
<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.

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.


## Test Setup

To set up and run the tests for this project, follow these steps:

1. Install the project dependencies:
```
npm install
```

2. Run the tests:
```
npm test
```

This will install all necessary dependencies, including Playwright for end-to-end testing, and then execute the test suite defined in the project.

6 changes: 3 additions & 3 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig({
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:3000",
/* Enable headless mode by default */
headless: false,
headless: true,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},
Expand All @@ -41,8 +41,8 @@ export default defineConfig({
launchOptions: {
args: [
"--disable-web-security",
"--enable-web-rtc"
// "--headless=chrome"
"--enable-web-rtc",
"--headless=chrome"
],
},
contextOptions: {
Expand Down

0 comments on commit 765d711

Please sign in to comment.