Skip to content

Commit

Permalink
chore: fix the job
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jun 28, 2023
1 parent 32769fa commit 7435c79
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
31 changes: 21 additions & 10 deletions get-test-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,24 @@ npm run build -w @puppeteer-test/test
PUPPETEER_PRODUCT=firefox node packages/puppeteer/install.js
export CI=true

npm run test -- --test-suite firefox-headless --no-coverage --save-stats-to ./stats.json
cp ./stats.json $CWD/data/firefox-cdp-$timestamp.json

npm run test -- --test-suite firefox-bidi --no-coverage --save-stats-to ./stats.json
cp ./stats.json $CWD/data/firefox-$timestamp.json

export PUPPETEER_EXECUTABLE_PATH=$(node tools/download_chrome_bidi.mjs ~/.cache/puppeteer/chrome-canary | tail -1)

npm run test -- --test-suite chrome-bidi --no-coverage --save-stats-to ./stats.json
cp ./stats.json $CWD/data/chrome-$timestamp.json
cdp-firefox() {
npm run test -- --test-suite firefox-headless --no-coverage --save-stats-to ./stats.json
cp ./stats.json $CWD/data/firefox-cdp-$timestamp.json
}

bidi-firefox() {
npm run test -- --test-suite firefox-bidi --no-coverage --save-stats-to ./stats.json
cp ./stats.json $CWD/data/firefox-$timestamp.json
}

bidi-chrome() {
export PUPPETEER_EXECUTABLE_PATH=$(node tools/download_chrome_bidi.mjs ~/.cache/puppeteer/chrome-canary | tail -1)

npm run test -- --test-suite chrome-bidi --no-coverage --save-stats-to ./stats.json
cp ./stats.json $CWD/data/chrome-$timestamp.json
}

cdp-firefox &
bidi-firefox &
bidi-chrome &
wait
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ <h1>Is Puppeteer ready for WebDriver BiDi yet?</h1>
</div>
<footer>
<div>
Firefox CDP currently support
Firefox (WebDriver BiDi) has
<a href="/firefox-delta.json"
><span id="delta"></span> additional test</a
><span id="delta"></span> failing tests</a
>
then Firefox BiDi
that pass with Firefox (CDP)
</div>
<div>
<a href="https://github.com/puppeteer/ispuppeteerwebdriverbidiready"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"data": "node preprocess-data.mjs",
"data": "node preprocess-data.mjs && node firefox-delta.mjs",
"build": "npm run data && node build.mjs",
"build:dist": "rm -rf dist && mkdir -p dist && cp data.json dist/ && cp firefox-delta.json dist/ && cp index.html dist/ && cp main.mjs dist/",
"start": "http-server --port 9001 .",
Expand Down

0 comments on commit 7435c79

Please sign in to comment.