Skip to content

Commit 2f87dc2

Browse files
committed
chore: roll stable test runner
1 parent 23817d2 commit 2f87dc2

6 files changed

Lines changed: 41 additions & 20 deletions

File tree

.github/workflows/roll_stable_test_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
node-version: 22
1919
- run: |
20-
npm install @playwright/test@next
20+
npm install playwright@next @playwright/test@next
2121
VERSION=$(node -e "console.log(require('./package.json').dependencies['@playwright/test'].replace('^', ''))")
2222
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
2323
working-directory: tests/playwright-test/stable-test-runner/

tests/playwright-test/reporter-blob.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
import * as fs from 'fs';
1818
import type { PlaywrightTestConfig } from '@playwright/test';
1919
import path from 'path';
20-
import { html } from '../../packages/playwright/lib/runner';
21-
const { startHtmlReportServer } = html;
20+
import { html } from './stable-test-runner/runner';
2221
import { expect as baseExpect, test as baseTest, stripAnsi } from './playwright-test-fixtures';
2322
import { extractZip } from '../../packages/utils/third_party/extractZip';
2423
import * as yazl from 'yazl';
@@ -39,7 +38,7 @@ const test = baseTest.extend<{
3938
let server: HttpServer | undefined;
4039
await use(async (reportFolder?: string) => {
4140
reportFolder ??= test.info().outputPath('playwright-report');
42-
server = startHtmlReportServer(reportFolder) as HttpServer;
41+
server = html.startHtmlReportServer(reportFolder) as HttpServer;
4342
await server.start();
4443
await page.goto(server.urlPrefix('precise'));
4544
});

tests/playwright-test/reporter-html.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import fs from 'fs';
1818
import path from 'path';
1919
import url from 'url';
2020
import { test as baseTest, expect as baseExpect, createImage } from './playwright-test-fixtures';
21-
import { html } from '../../packages/playwright/lib/runner';
22-
const { startHtmlReportServer } = html;
21+
import { html } from './stable-test-runner/runner';
2322
import { iso, utils } from '../../packages/playwright-core/lib/coreBundle';
2423

2524
type HttpServer = utils.HttpServer;
@@ -32,7 +31,7 @@ const test = baseTest.extend<{ showReport: (reportFolder?: string) => Promise<vo
3231
let server: HttpServer | undefined;
3332
await use(async (reportFolder?: string) => {
3433
reportFolder ??= testInfo.outputPath('playwright-report');
35-
server = startHtmlReportServer(reportFolder) as HttpServer;
34+
server = html.startHtmlReportServer(reportFolder) as HttpServer;
3635
await server.start();
3736
await page.goto(server.urlPrefix('precise'));
3837
});

tests/playwright-test/stable-test-runner/package-lock.json

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"private": true,
3+
"exports": {
4+
".": "./index.js",
5+
"./runner": "./runner.js"
6+
},
37
"dependencies": {
4-
"@playwright/test": "^1.60.0-alpha-2026-04-06"
8+
"playwright": "^1.60.0-alpha-2026-04-13",
9+
"@playwright/test": "^1.60.0-alpha-2026-04-13"
510
}
611
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
module.exports = require('./node_modules/playwright/lib/runner');

0 commit comments

Comments
 (0)