[NOT READY] Playwright #27
Annotations
5 errors
Run Playwright tests
SyntaxError: /home/runner/work/analytics/analytics/assets/playwright-tests/playwright.ts: Unexpected token (14:55)
12 | //
13 | // Idea from https://www.checklyhq.com/blog/track-frontend-javascript-exceptions-with-playwright/
> 14 | export const test = playwrightTest.extend<{ page: void }>({
| ^
15 | page: async ({ page }: { page: any }, use: any) => {
16 | const errors: Array<Error> = []
17 |
at global.setup.ts:14
12 | await page.getByRole('button', { name: 'Log in' }).click()
13 |
> 14 | await page.waitForURL("/sites")
| ^
15 | await expect(page.locator("body")).toHaveText(/My Sites/)
16 | await expect(page.locator("body")).toHaveText(/dummy.site/)
17 |
at Object.<anonymous> (/home/runner/work/analytics/analytics/assets/playwright-tests/global.setup.ts:1:1)
|
Run Playwright tests
SyntaxError: /home/runner/work/analytics/analytics/assets/playwright-tests/playwright.ts: Unexpected token (14:55)
12 | //
13 | // Idea from https://www.checklyhq.com/blog/track-frontend-javascript-exceptions-with-playwright/
> 14 | export const test = playwrightTest.extend<{ page: void }>({
| ^
15 | page: async ({ page }: { page: any }, use: any) => {
16 | const errors: Array<Error> = []
17 |
at dashboard.spec.ts:14
12 | { key: 'Regions', sectionSelector: 'section::locations' },
13 | { key: 'Cities', sectionSelector: 'section::locations' },
> 14 | { key: 'Browser', sectionSelector: 'section::devices' },
| ^
15 | { key: 'OS', sectionSelector: 'section::devices' },
16 | { key: 'Size', sectionSelector: 'section::devices' },
17 | { key: 'Goals', sectionSelector: 'section::behaviors' },
at Object.<anonymous> (/home/runner/work/analytics/analytics/assets/playwright-tests/dashboard.spec.ts:1:1)
|
Run Playwright tests
SyntaxError: /home/runner/work/analytics/analytics/assets/playwright-tests/playwright.ts: Unexpected token (14:55)
12 | //
13 | // Idea from https://www.checklyhq.com/blog/track-frontend-javascript-exceptions-with-playwright/
> 14 | export const test = playwrightTest.extend<{ page: void }>({
| ^
15 | page: async ({ page }: { page: any }, use: any) => {
16 | const errors: Array<Error> = []
17 |
at sites.spec.ts:14
12 |
13 | await expect(page.locator("body")).toHaveText(/\d+\s+current visitors/)
> 14 | })
| ^
15 |
at Object.<anonymous> (/home/runner/work/analytics/analytics/assets/playwright-tests/sites.spec.ts:1:1)
|
Run Playwright tests
Error: No tests found
|
Run Playwright tests
Process completed with exit code 1.
|
Loading