Skip to content

Commit 6c7fd77

Browse files
committed
chore: PR comment example
1 parent 386c72b commit 6c7fd77

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

.github/workflows/test-basic-pwc.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,11 @@ jobs:
3737
npm ci
3838
npx playwright install chrome
3939
40-
- name: Run Project A
40+
- name: Playwright Tests
4141
continue-on-error: false
4242
working-directory: ./basic
4343
env:
4444
CURRENTS_PROJECT_ID: bnsqNa
4545
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
4646
run: |
47-
npx pwc --project a --shard=${{ matrix.shard }}/${{ strategy.job-total }}
48-
49-
- name: Run Project B
50-
continue-on-error: false
51-
working-directory: ./basic
52-
env:
53-
CURRENTS_PROJECT_ID: bnsqNa
54-
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
55-
run: |
56-
npx pwc --project --shard=${{ matrix.shard }}/${{ strategy.job-total }}
47+
npx pwc --shard=${{ matrix.shard }}/${{ strategy.job-total }}

basic/0-failing.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test("basic test @basic", async ({ page }) => {
77
const inputBox = page.locator("input.new-todo");
88
const todoList = page.locator(".todo-list");
99

10-
await inputBox.fill("Stop using Cypress");
10+
await inputBox.fill("Learn JavaScript");
1111
await inputBox.press("Enter");
1212
await expect(todoList).toHaveText("Learn Playwright");
1313
});

basic/pw.config.shared.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ const config: PlaywrightTestConfig = {
1313
retries: process.env.CI ? 2 : 0,
1414
workers: process.env.CI ? 1 : undefined,
1515

16-
webServer: {
17-
command: "node ./server",
18-
port: 4346,
19-
cwd: __dirname,
20-
reuseExistingServer: true,
21-
},
22-
2316
use: {
2417
actionTimeout: 0,
2518
trace: "on",
@@ -29,7 +22,14 @@ const config: PlaywrightTestConfig = {
2922

3023
projects: [
3124
{
32-
name: "a",
25+
name: "Project A",
26+
retries: 2,
27+
use: {
28+
...devices["Desktop Chrome"],
29+
},
30+
},
31+
{
32+
name: "Project B",
3333
retries: 2,
3434
use: {
3535
...devices["Desktop Chrome"],

0 commit comments

Comments
 (0)