feat(gha): add playwright tests & GHA workflow #42
pr_deploy.yml
on: pull_request
Annotations
2 errors, 1 warning, and 1 notice
[chromium] › example.spec.ts:10:5 › has title:
e2e/tests/example.spec.ts#L12
1) [chromium] › example.spec.ts:10:5 › has title ─────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveTitle(expected)
Expected string: "GreenSTAR"
Received string: ""
Call log:
- expect.toHaveTitle with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
- locator resolved to <html>…</html>
- unexpected value ""
10 | test('has title', async ({page}) => {
11 | await page.goto(`https://acme.${ENV_NAME}.greenstar.kfirs.com/`);
> 12 | await expect(page).toHaveTitle("GreenSTAR");
| ^
13 | });
14 |
15 |
at /home/runner/work/greenstar/greenstar/e2e/tests/example.spec.ts:12:24
|
End-to-end Tests
Process completed with exit code 1.
|
End-to-end Tests
No files were found with the provided path: e2e/playwright-report/. No artifacts will be uploaded.
|
🎭 Playwright Run Summary
1 failed
[chromium] › example.spec.ts:10:5 › has title ──────────────────────────────────────────────────
|