Skip to content

front: refacto old e2e tests #12747

front: refacto old e2e tests

front: refacto old e2e tests #12747

Triggered via pull request October 11, 2024 09:34
Status Failure
Total duration 46m 8s
Artifacts 2

build.yml

on: pull_request
Matrix: build
check_generated_railjson_sync
25s
check_generated_railjson_sync
check_railjson_generator
1m 50s
check_railjson_generator
check_commits
6s
check_commits
Check final newline
8s
Check final newline
check_integration_tests
1m 26s
check_integration_tests
check_osrd_schema
40s
check_osrd_schema
check_toml
4s
check_toml
check_infra_schema_sync
19s
check_infra_schema_sync
check_reuse_compliance
12s
check_reuse_compliance
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 14 warnings, and 1 notice
check_commits
Process completed with exit code 1.
[chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page : tests/pages/home-page-model.ts#L72
1) [chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page Error: locator.click: Unexpected token "" while parsing selector "a[href="/stdcm" Call log: - waiting for a[href="/stdcm at pages/home-page-model.ts:72 70 | async goToSTDCMPage(context: BrowserContext) { 71 | // Start waiting for the new page to be created > 72 | const [stdcmPage] = await Promise.all([context.waitForEvent('page'), this.STDCMLink.click()]); | ^ 73 | 74 | // Ensure the new page is fully loaded before proceeding 75 | await stdcmPage.waitForLoadState(); at HomePage.goToSTDCMPage (/app/tests/pages/home-page-model.ts:72:89) at /app/tests/001-home-page.spec.ts:56:38
[chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page : tests/pages/home-page-model.ts#L72
1) [chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Unexpected token "" while parsing selector "a[href="/stdcm" Call log: - waiting for a[href="/stdcm at pages/home-page-model.ts:72 70 | async goToSTDCMPage(context: BrowserContext) { 71 | // Start waiting for the new page to be created > 72 | const [stdcmPage] = await Promise.all([context.waitForEvent('page'), this.STDCMLink.click()]); | ^ 73 | 74 | // Ensure the new page is fully loaded before proceeding 75 | await stdcmPage.waitForLoadState(); at HomePage.goToSTDCMPage (/app/tests/pages/home-page-model.ts:72:89) at /app/tests/001-home-page.spec.ts:56:38
[chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page : tests/pages/home-page-model.ts#L72
1) [chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Unexpected token "" while parsing selector "a[href="/stdcm" Call log: - waiting for a[href="/stdcm at pages/home-page-model.ts:72 70 | async goToSTDCMPage(context: BrowserContext) { 71 | // Start waiting for the new page to be created > 72 | const [stdcmPage] = await Promise.all([context.waitForEvent('page'), this.STDCMLink.click()]); | ^ 73 | 74 | // Ensure the new page is fully loaded before proceeding 75 | await stdcmPage.waitForLoadState(); at HomePage.goToSTDCMPage (/app/tests/pages/home-page-model.ts:72:89) at /app/tests/001-home-page.spec.ts:56:38
[chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page : tests/pages/home-page-model.ts#L72
1) [chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Unexpected token "" while parsing selector "a[href="/stdcm" Call log: - waiting for a[href="/stdcm at pages/home-page-model.ts:72 70 | async goToSTDCMPage(context: BrowserContext) { 71 | // Start waiting for the new page to be created > 72 | const [stdcmPage] = await Promise.all([context.waitForEvent('page'), this.STDCMLink.click()]); | ^ 73 | 74 | // Ensure the new page is fully loaded before proceeding 75 | await stdcmPage.waitForLoadState(); at HomePage.goToSTDCMPage (/app/tests/pages/home-page-model.ts:72:89) at /app/tests/001-home-page.spec.ts:56:38
[chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock: tests/009-rollingstock-editor.spec.ts#L242
2) [chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock Error: expect(received).toEqual(expected) // deep equality Expected: 5 Received: 0 240 | 241 | // Verify that the count of rolling stock is back to the initial number > 242 | expect(await rollingStockSelectorPage.rollingStockList.count()).toEqual( | ^ 243 | initialRollingStockFoundNumber 244 | ); 245 | }); at /app/tests/009-rollingstock-editor.spec.ts:242:69
[chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock: tests/009-rollingstock-editor.spec.ts#L242
2) [chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 4 Received: 0 240 | 241 | // Verify that the count of rolling stock is back to the initial number > 242 | expect(await rollingStockSelectorPage.rollingStockList.count()).toEqual( | ^ 243 | initialRollingStockFoundNumber 244 | ); 245 | }); at /app/tests/009-rollingstock-editor.spec.ts:242:69
[chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock: tests/009-rollingstock-editor.spec.ts#L242
2) [chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 4 Received: 0 240 | 241 | // Verify that the count of rolling stock is back to the initial number > 242 | expect(await rollingStockSelectorPage.rollingStockList.count()).toEqual( | ^ 243 | initialRollingStockFoundNumber 244 | ); 245 | }); at /app/tests/009-rollingstock-editor.spec.ts:242:69
[chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock: tests/009-rollingstock-editor.spec.ts#L242
2) [chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 4 Received: 0 240 | 241 | // Verify that the count of rolling stock is back to the initial number > 242 | expect(await rollingStockSelectorPage.rollingStockList.count()).toEqual( | ^ 243 | initialRollingStockFoundNumber 244 | ); 245 | }); at /app/tests/009-rollingstock-editor.spec.ts:242:69
[chromium] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock: tests/009-rollingstock-editor.spec.ts#L272
3) [chromium] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock Error: expect(received).toEqual(expected) // deep equality Expected: 4 Received: 0 270 | 271 | // Verify that the count of rolling stock is back to the initial number > 272 | expect(await rollingStockSelectorPage.rollingStockList.count()).toEqual( | ^ 273 | initialRollingStockFoundNumber 274 | ); 275 | // Search for a non existing rolling stock at /app/tests/009-rollingstock-editor.spec.ts:272:69
[chromium] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock: tests/009-rollingstock-editor.spec.ts#L272
3) [chromium] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 4 Received: 0 270 | 271 | // Verify that the count of rolling stock is back to the initial number > 272 | expect(await rollingStockSelectorPage.rollingStockList.count()).toEqual( | ^ 273 | initialRollingStockFoundNumber 274 | ); 275 | // Search for a non existing rolling stock at /app/tests/009-rollingstock-editor.spec.ts:272:69
check_railjson_generator
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (core-build, core)
The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (gateway-test, gateway-standalone, gateway-front)
The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (front-build, front-tests, front-devel, front-nginx)
The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (osrdyne, osrdyne-test)
The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (editoast, editoast-test)
The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check_front
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check_osrdyne
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check_gateway
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check_core
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check_editoast_tests
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
integration_tests
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Slow Test: [chromium] › 005-operational-studies.spec.ts#L1
[chromium] › 005-operational-studies.spec.ts took 20.3s
Slow Test: [chromium] › 007-op-rollingstock-tab.spec.ts#L1
[chromium] › 007-op-rollingstock-tab.spec.ts took 16.3s
🎭 Playwright Run Summary
15 failed [chromium] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page [chromium] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock [chromium] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock [chromium] › 011-op-times-and-stops-tab.spec.ts:68:7 › Times and Stops Tab Verification › should correctly set and display times and stops tables [chromium] › 011-op-times-and-stops-tab.spec.ts:163:7 › Times and Stops Tab Verification › should correctly update and clear input table row [firefox] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page [firefox] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock [firefox] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock [firefox] › 011-op-times-and-stops-tab.spec.ts:68:7 › Times and Stops Tab Verification › should correctly set and display times and stops tables [firefox] › 011-op-times-and-stops-tab.spec.ts:163:7 › Times and Stops Tab Verification › should correctly update and clear input table row [webkit] › 001-home-page.spec.ts:55:7 › Home page OSRD › should be correctly redirected to the STDCM page [webkit] › 009-rollingstock-editor.spec.ts:200:7 › Rollingstock editor page › should correctly filter a rolling stock [webkit] › 009-rollingstock-editor.spec.ts:247:7 › Rollingstock editor page › should correctly search for a rolling stock [webkit] › 011-op-times-and-stops-tab.spec.ts:68:7 › Times and Stops Tab Verification › should correctly set and display times and stops tables [webkit] › 011-op-times-and-stops-tab.spec.ts:163:7 › Times and Stops Tab Verification › should correctly update and clear input table row 1 flaky [webkit] › 010-op-route-tab.spec.ts:100:7 › Verifying that all elements in the route tab are loaded correctly › should correctly reverse and delete waypoints in a route for operational study 73 passed (17.9m)

Artifacts

Produced during runtime
Name Size
integration-container-logs
245 KB
integration-videos
38.5 MB