Add tests #1
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
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)
|