Skip to content

Add tests

Add tests #1

Triggered via pull request December 15, 2023 12:11
@daundaun
synchronize #116
functional-tests
Status Failure
Total duration 3m 46s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

e2e-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 notice
[firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover: tests/functional/inc/commands.ts#L71
1) [firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover ────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false Call Log: - Test timeout of 10000ms exceeded at inc/commands.ts:71 69 | export async function expectSwupToHaveCacheEntry(page: Page, url: string) { 70 | const exists = () => page.evaluate((url) => window._swup.cache.has(url), url); > 71 | await expect(async () => expect(await exists()).toBe(true)).toPass(); | ^ 72 | } 73 | 74 | export async function expectSwupNotToHaveCacheEntry(page: Page, url: string) { at expectSwupToHaveCacheEntry (/home/runner/work/preload-plugin/preload-plugin/tests/functional/inc/commands.ts:71:62) at /home/runner/work/preload-plugin/preload-plugin/tests/functional/preload-plugin.spec.ts:81:9
[firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover: tests/functional/preload-plugin.spec.ts#L1
1) [firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover ────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 10000ms exceeded.
[firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover: tests/functional/inc/commands.ts#L71
1) [firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover ────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false Call Log: - Test timeout of 10000ms exceeded at inc/commands.ts:71 69 | export async function expectSwupToHaveCacheEntry(page: Page, url: string) { 70 | const exists = () => page.evaluate((url) => window._swup.cache.has(url), url); > 71 | await expect(async () => expect(await exists()).toBe(true)).toPass(); | ^ 72 | } 73 | 74 | export async function expectSwupNotToHaveCacheEntry(page: Page, url: string) { at expectSwupToHaveCacheEntry (/home/runner/work/preload-plugin/preload-plugin/tests/functional/inc/commands.ts:71:62) at /home/runner/work/preload-plugin/preload-plugin/tests/functional/preload-plugin.spec.ts:81:9
E2E tests
Process completed with exit code 1.
🎭 Playwright Run Summary
1 failed [firefox] › preload-plugin.spec.ts:76:2 › active links › preloads links on hover ─────────────── 4 skipped 67 passed (1.6m)