Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: add op simulation settings e2e test #9216

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

Maymanaf
Copy link
Contributor

@Maymanaf Maymanaf commented Oct 4, 2024

Closes #9239
Closes #9240
Closes #9241
Closes #9243

  • Fix typos and restructure the used code

Requires #8854 and #9180 to be resolved

@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch 5 times, most recently from f81f2f4 to 917f1e6 Compare October 8, 2024 13:34
@Maymanaf Maymanaf marked this pull request as ready for review October 8, 2024 14:51
@Maymanaf Maymanaf requested a review from a team as a code owner October 8, 2024 14:51
@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch from 917f1e6 to 3e4291f Compare October 9, 2024 11:37
@Yohh
Copy link
Contributor

Yohh commented Oct 9, 2024

hard to test... every try leads to timeout at locator.textContent getByTestId('train-arrival-time') (macOs sequoia)

@Maymanaf Maymanaf requested review from RomainValls and removed request for Akctarus October 10, 2024 08:19
@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch 4 times, most recently from 2d47d2e to 5d0e2ca Compare October 10, 2024 20:59
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for all these changes. Left some comments.

I also have the tests failing on arrivalTime (macOs Sequoia too). We expect to see for example 12:05 but that's only what we choose to display to the user. In reality, the arrival time is a dateTime string. See below screen when hovering the arrival time. Could the failure come from that ?

Capture d’écran 2024-10-11 à 10 52 25

front/tests/pages/project-page-model.ts Show resolved Hide resolved
front/tests/utils/api-setup.ts Show resolved Hide resolved
front/tests/utils/api-setup.ts Outdated Show resolved Hide resolved
front/tests/utils/index.ts Outdated Show resolved Hide resolved
front/tests/012-op-simulation-settings-tab.spec.ts Outdated Show resolved Hide resolved
front/tests/012-op-simulation-settings-tab.spec.ts Outdated Show resolved Hide resolved
front/tests/012-op-simulation-settings-tab.spec.ts Outdated Show resolved Hide resolved
front/tests/004-scenario-management.spec.ts Outdated Show resolved Hide resolved
front/tests/pages/op-timetable-page-model.ts Outdated Show resolved Hide resolved
@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch 6 times, most recently from 7875311 to 2ceef12 Compare October 15, 2024 16:10
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm and tested, thank you for the changes !

@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch from 2ceef12 to 8d34bad Compare October 15, 2024 17:09
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Oct 15, 2024
Copy link
Contributor

@RomainValls RomainValls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch from 8d34bad to 8e564ea Compare October 17, 2024 07:24
Signed-off-by: maymanaf <med.aymen.naf@gmail.com>
@Maymanaf Maymanaf force-pushed the aba/e2e-op-simulation-settings branch from 8e564ea to 9218e32 Compare October 17, 2024 11:28
@Maymanaf Maymanaf added this pull request to the merge queue Oct 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2024
@Maymanaf Maymanaf added this pull request to the merge queue Oct 17, 2024
Merged via the queue into dev with commit 093d78f Oct 17, 2024
24 checks passed
@Maymanaf Maymanaf deleted the aba/e2e-op-simulation-settings branch October 17, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
4 participants