Migrate everything from Shouldly to FluentAssertions #1457
Annotations
6 errors, 4 warnings, and 1 notice
Setup and run playwright tests:
frontend/tests/pages/basePage.ts#L54
1) [firefox] › logout.test.ts:5:1 › Back button after logout redirects back to login page ────────
Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /\/login($|\?|#)/
Received string: "http://localhost:6579/admin"
Call log:
- expect.toHaveURL with timeout 10000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
at pages/basePage.ts:54
52 | } else {
53 | // first use expect() so we get a good error message
> 54 | await expect(this.page).toHaveURL(this.urlPattern, {timeout: 10_000});
| ^
55 | // still wait to ensure we reach the state we expect
56 | await this.page.waitForURL(this.urlPattern, {waitUntil: 'load'});
57 | }
at LoginPage.waitFor (/home/runner/work/languageforge-lexbox/languageforge-lexbox/frontend/tests/pages/basePage.ts:54:31)
at /home/runner/work/languageforge-lexbox/languageforge-lexbox/frontend/tests/logout.test.ts:11:19
|
Setup and run playwright tests:
frontend/tests/pages/basePage.ts#L54
1) [firefox] › logout.test.ts:5:1 › Back button after logout redirects back to login page ────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /\/login($|\?|#)/
Received string: "http://localhost:6579/admin"
Call log:
- expect.toHaveURL with timeout 10000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:6579/admin"
at pages/basePage.ts:54
52 | } else {
53 | // first use expect() so we get a good error message
> 54 | await expect(this.page).toHaveURL(this.urlPattern, {timeout: 10_000});
| ^
55 | // still wait to ensure we reach the state we expect
56 | await this.page.waitForURL(this.urlPattern, {waitUntil: 'load'});
57 | }
at LoginPage.waitFor (/home/runner/work/languageforge-lexbox/languageforge-lexbox/frontend/tests/pages/basePage.ts:54:31)
at /home/runner/work/languageforge-lexbox/languageforge-lexbox/frontend/tests/logout.test.ts:11:19
|
Setup and run playwright tests
Process completed with exit code 1.
|
Pull hgweb if updated
Process completed with exit code 1.
|
Pull ui if updated
Process completed with exit code 1.
|
Pull fw-headless if updated
Process completed with exit code 1.
|
Setup and run playwright tests:
frontend/[firefox] › errorHandling.test.ts#L1
frontend/[firefox] › errorHandling.test.ts took 31.2s
|
Setup and run playwright tests:
frontend/[chromium] › errorHandling.test.ts#L1
frontend/[chromium] › errorHandling.test.ts took 22.9s
|
Setup and run playwright tests:
frontend/[firefox] › emailWorkflow.test.ts#L1
frontend/[firefox] › emailWorkflow.test.ts took 21.1s
|
Setup and run playwright tests:
frontend/[chromium] › emailWorkflow.test.ts#L1
frontend/[chromium] › emailWorkflow.test.ts took 19.5s
|
Setup and run playwright tests
1 failed
[firefox] › logout.test.ts:5:1 › Back button after logout redirects back to login page ─────────
65 passed (4.0m)
|
Loading