-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FI-1345 refactor: Playwright config (
use
object)
refactor: reexport `devices` from `@playwright/test` fix: add Playwright's browser version check fix: add using Playwright version from `package.json` feat: support UI mode flag feat: add internal `isUiMode` flag fix: remove text style from run errors in HTML report feat: add `enableCsp` flag to pack config and to test options fix: ingore timeouts in UI mode fix: mix up of JS errors and browser console logs from other test runs chore: update `@types/node` to 22.5.1
- Loading branch information
Showing
38 changed files
with
234 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env sh | ||
set -eu | ||
|
||
VERSION=`./bin/getVersion.sh` | ||
E2ED_VERSION=`./bin/getE2edVersion.sh` | ||
|
||
echo "{\n \"dependencies\": {\n \"e2ed\": \"$VERSION\"\n }\n}" > ./build/docker/package.json | ||
echo "{\n \"dependencies\": {\n \"e2ed\": \"$E2ED_VERSION\"\n }\n}" > ./build/docker/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/usr/bin/env sh | ||
set -eu | ||
|
||
VERSION=`./bin/getVersion.sh` | ||
E2ED_VERSION=`./bin/getE2edVersion.sh` | ||
PLAYWRIGHT_VERSION=`./bin/getPlaywrightVersion.sh` | ||
|
||
docker build --tag e2edhub/e2ed:$VERSION --tag e2edhub/e2ed:latest . | ||
docker build \ | ||
--build-arg PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION \ | ||
--tag e2edhub/e2ed:$E2ED_VERSION \ | ||
--tag e2edhub/e2ed:latest . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
set -eu | ||
|
||
PLAYWRIGHT_VERSION=`./bin/getPlaywrightVersion.sh` | ||
|
||
grep "\"@playwright/browser-chromium\": \"$PLAYWRIGHT_VERSION\"" ./package.json |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
set -eu | ||
|
||
grep -m1 @playwright/test ./package.json | cut -d '"' -f 4 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
import {useContext} from '../useContext'; | ||
|
||
/** | ||
* Raw get and set browser JS errors array. | ||
* @internal | ||
*/ | ||
const [getRawJsErrorsFromContext, setRawJsErrorsFromContext] = useContext<readonly Error[]>(); | ||
|
||
/** | ||
* Get browser JS errors array. | ||
* @internal | ||
*/ | ||
export const [getJsErrorsFromContext] = useContext<readonly Error[]>([]); | ||
export const getJsErrorsFromContext = (): readonly Error[] => { | ||
const maybeJsErrors = getRawJsErrorsFromContext(); | ||
|
||
if (maybeJsErrors !== undefined) { | ||
return maybeJsErrors; | ||
} | ||
|
||
const jsErrors: readonly Error[] = []; | ||
|
||
setRawJsErrorsFromContext(jsErrors); | ||
|
||
return jsErrors; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.