Skip to content

Commit 10a78ce

Browse files
committed
chore(e2e): fix typo example test
1 parent 30fd0e2 commit 10a78ce

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,17 @@ jobs:
2525
name: playwright-report
2626
path: playwright-report/
2727
retention-days: 30
28+
29+
# Required check untuk branch protection
30+
e2e-required:
31+
runs-on: ubuntu-latest
32+
needs: test
33+
if: always()
34+
steps:
35+
- name: Check E2E Test Results
36+
run: |
37+
if [ "${{ needs.test.result }}" != "success" ]; then
38+
echo "E2E tests failed!"
39+
exit 1
40+
fi
41+
echo "E2E tests passed!"

tests/e2e/example.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test("has title", async ({ page }) => {
44
await page.goto("https://playwright.dev/");
55

66
// Expect a title "to contain" a substring.
7-
await expect(page).toHaveTitle(/Playwrighasdasdt/);
7+
await expect(page).toHaveTitle(/Playwright/);
88
});
99

1010
test("get started link", async ({ page }) => {

0 commit comments

Comments
 (0)