Skip to content

front: handle uncaught exceptions for e2e tests #20909

front: handle uncaught exceptions for e2e tests

front: handle uncaught exceptions for e2e tests #20909

Triggered via pull request March 7, 2025 15:48
Status Failure
Total duration 10m 36s
Artifacts 3

build.yml

on: pull_request
Matrix: Build
Check dockerfiles
13s
Check dockerfiles
Check scripts
6s
Check scripts
Check generated railjson sync
18s
Check generated railjson sync
Check railjson generator
30s
Check railjson generator
Check commits
10s
Check commits
Check final newline
12s
Check final newline
Check integration tests
1m 25s
Check integration tests
Check osrd schema
20s
Check osrd schema
Check toml
4s
Check toml
Check infra schema sync
18s
Check infra schema sync
Check reuse compliance
8s
Check reuse compliance
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 3 warnings, and 1 notice
[chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result: tests/logging-fixture.ts#L21
1) [chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result Error: Test failed due to uncaught exception: "TypeError: Cannot read properties of undefined (reading 'values')" at logging-fixture.ts:21 19 | // Handle uncaught exceptions 20 | page.on('pageerror', (exception) => { > 21 | throw new Error(`Test failed due to uncaught exception: "${exception}"`); | ^ 22 | }); 23 | 24 | // Run the actual test at Page.<anonymous> (/app/front/tests/logging-fixture.ts:21:13)
[chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result: tests/pages/operational-studies/simulation-results-page.ts#L68
1) [chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result Error: expect(locator).toBeVisible() Locator: locator('.manchette-space-time-chart-wrapper') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 30000ms - waiting for locator('.manchette-space-time-chart-wrapper') at pages/operational-studies/simulation-results-page.ts:68 66 | await Promise.all( 67 | simulationResultsLocators.map((locator) => > 68 | expect(locator).toBeVisible({ timeout: SIMULATION_RESULT_TIMEOUT }) | ^ 69 | ) 70 | ); 71 | } at map (/app/front/tests/pages/operational-studies/simulation-results-page.ts:68:25) at ScenarioTimetableSection.verifySimulationResultsVisibility (/app/front/tests/pages/operational-studies/simulation-results-page.ts:67:33) at ScenarioTimetableSection.verifyEachTrainSimulation (/app/front/tests/pages/operational-studies/scenario-timetable-section.ts:316:7) at /app/front/tests/008-train-schedule.spec.ts:92:5
[chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result: tests/logging-fixture.ts#L21
1) [chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Test failed due to uncaught exception: "TypeError: Cannot read properties of undefined (reading 'values')" at logging-fixture.ts:21 19 | // Handle uncaught exceptions 20 | page.on('pageerror', (exception) => { > 21 | throw new Error(`Test failed due to uncaught exception: "${exception}"`); | ^ 22 | }); 23 | 24 | // Run the actual test at Page.<anonymous> (/app/front/tests/logging-fixture.ts:21:13)
[chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result: tests/pages/operational-studies/scenario-timetable-section.ts#L315
1) [chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test ended. Call log: - waiting for getByTestId('train-info').nth(12) - locator resolved to <div class="train-info" data-testid="train-info">…</div> - attempting click action - waiting for element to be visible, enabled and stable at pages/operational-studies/scenario-timetable-section.ts:315 313 | await this.simulationResult.waitFor(); 314 | const trainButton = this.timetableTrainButton.nth(currentTrainIndex); > 315 | await trainButton.click(); | ^ 316 | await this.verifySimulationResultsVisibility(); 317 | } 318 | } at ScenarioTimetableSection.verifyEachTrainSimulation (/app/front/tests/pages/operational-studies/scenario-timetable-section.ts:315:25) at /app/front/tests/008-train-schedule.spec.ts:92:5
End to end tests
Process completed with exit code 1.
Slow Test: [chromium] › 014-stdcm-linked-train.spec.ts#L1
[chromium] › 014-stdcm-linked-train.spec.ts took 34.9s
Slow Test: [chromium] › 009-rolling-stock-editor.spec.ts#L1
[chromium] › 009-rolling-stock-editor.spec.ts took 33.4s
Slow Test: [chromium] › 013-stdcm-simulation-sheet.spec.ts#L1
[chromium] › 013-stdcm-simulation-sheet.spec.ts took 30.4s
🎭 Playwright Run Summary
1 failed [chromium] › 008-train-schedule.spec.ts:82:3 › Verify train schedule elements and filters › Loading trains and verifying simulation result 43 passed (4.4m)

Artifacts

Produced during runtime
Name Size
e2e-container-logs
179 KB
e2e-traces-and-videos
9.17 MB
integration-container-logs
37.9 KB