Skip to content

Migrate everything from Shouldly to FluentAssertions #1457

Migrate everything from Shouldly to FluentAssertions

Migrate everything from Shouldly to FluentAssertions #1457

Triggered via pull request November 25, 2024 06:25
Status Failure
Total duration 25m 30s
Artifacts 3

develop-api.yaml

on: pull_request
Set Version
0s
Set Version
Build API  /  publish-api
3m 47s
Build API / publish-api
Deploy API  /  deploy
Deploy API / deploy
GHA integration tests  /  execute
21m 14s
GHA integration tests / execute
Matrix: Deploy API / verify-published
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 24 warnings, and 1 notice
[firefox] › logout.test.ts:5:1 › Back button after logout redirects back to login page: 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
[firefox] › logout.test.ts:5:1 › Back button after logout redirects back to login page: 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
GHA integration tests / execute
Process completed with exit code 1.
GHA integration tests / execute
Process completed with exit code 1.
GHA integration tests / execute
Process completed with exit code 1.
GHA integration tests / execute
Process completed with exit code 1.
Build API / publish-api: backend/LexData/SeedingData.cs#L18
Parameter 'logger' is unread.
Build API / publish-api: backend/LexBoxApi/Services/UserService.cs#L10
Parameter 'lexAuthService' is unread.
Build API / publish-api: backend/LexBoxApi/Hub/CrdtProjectChangeHub.cs#L8
Parameter 'loggedInContext' is unread.
Build API / publish-api: backend/LexBoxApi/Auth/JwtTicketDataFormat.cs#L122
'JwtBearerOptions.SecurityTokenValidators' is obsolete: 'SecurityTokenValidators is no longer used by default. Use TokenHandlers instead. To continue using SecurityTokenValidators, set UseSecurityTokenValidators to true. See https://aka.ms/aspnetcore8/security-token-changes'
Build API / publish-api: backend/LexBoxApi/Services/HgService.cs#L459
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(LexBoxApi.Services.RepoEmptyState)2' is not covered.
Build API / publish-api: backend/LexBoxApi/Controllers/IntegrationController.cs#L62
Action method returns undeclared status code '404'
Build API / publish-api: backend/LexBoxApi/GraphQL/CustomTypes/IsLanguageForgeProjectDataLoader.cs#L64
Method referencing lambda parameter is not supported LINQ expression. (https://www.mongodb.com/docs/mongodb-analyzer/current/rules/#MALinq2001)
Build API / publish-api: backend/LexData/SeedingData.cs#L18
Parameter 'logger' is unread.
Build API / publish-api: backend/LexBoxApi/Services/UserService.cs#L10
Parameter 'lexAuthService' is unread.
Build API / publish-api: backend/LexBoxApi/Hub/CrdtProjectChangeHub.cs#L8
Parameter 'loggedInContext' is unread.
Build API / publish-api
Parameter 'logger' is unread.
Build API / publish-api
Parameter 'lexAuthService' is unread.
Build API / publish-api
Parameter 'lexAuthService' is unread.
Build API / publish-api
Parameter 'lexBoxDbContext' is unread.
Build API / publish-api
'JwtBearerOptions.SecurityTokenValidators' is obsolete: 'SecurityTokenValidators is no longer used by default. Use TokenHandlers instead. To continue using SecurityTokenValidators, set UseSecurityTokenValidators to true. See https://aka.ms/aspnetcore8/security-token-changes'
Build API / publish-api
Parameter 'loggedInContext' is unread.
Build API / publish-api
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(LexBoxApi.Services.RepoEmptyState)2' is not covered.
Build API / publish-api
Action method returns undeclared status code '404'
Build API / publish-api
Method referencing lambda parameter is not supported LINQ expression. (https://www.mongodb.com/docs/mongodb-analyzer/current/rules/#MALinq2001)
Build API / publish-api
Parameter 'logger' is unread.
Slow Test: frontend/[firefox] › errorHandling.test.ts#L1
frontend/[firefox] › errorHandling.test.ts took 31.2s
Slow Test: frontend/[chromium] › errorHandling.test.ts#L1
frontend/[chromium] › errorHandling.test.ts took 22.9s
Slow Test: frontend/[firefox] › emailWorkflow.test.ts#L1
frontend/[firefox] › emailWorkflow.test.ts took 21.1s
Slow Test: frontend/[chromium] › emailWorkflow.test.ts#L1
frontend/[chromium] › emailWorkflow.test.ts took 19.5s
🎭 Playwright Run Summary
1 failed [firefox] › logout.test.ts:5:1 › Back button after logout redirects back to login page ───────── 65 passed (4.0m)

Artifacts

Produced during runtime
Name Size
dotnet-unit-test-results
3.51 KB
k8s-logs
789 KB
playwright-traces
146 MB