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: tests: refacto allowances e2e-tests #6697

Merged

Conversation

Yohh
Copy link
Contributor

@Yohh Yohh commented Feb 21, 2024

  • add data-testid where needed
  • clean createCompleteScenario in /assets/utils.ts to fit with global setup
  • edit some testId in scenario-page-model.ts

close #5509

@Yohh Yohh requested a review from a team as a code owner February 21, 2024 11:35
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (940894e) 27.87% compared to head (85abd6b) 27.90%.
Report is 6 commits behind head on dev.

Files Patch % Lines
...geTrainSchedule/SubmitConfUpdateTrainSchedules.tsx 0.00% 6 Missing ⚠️
...nageTrainSchedule/Allowances/AllowancesActions.tsx 0.00% 1 Missing ⚠️
...hedule/components/Timetable/TimetableTrainCard.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6697      +/-   ##
============================================
+ Coverage     27.87%   27.90%   +0.02%     
  Complexity     2172     2172              
============================================
  Files          1043     1041       -2     
  Lines        128726   128667      -59     
  Branches       2569     2567       -2     
============================================
+ Hits          35887    35906      +19     
+ Misses        91354    91278      -76     
+ Partials       1485     1483       -2     
Flag Coverage Δ
core 79.36% <ø> (ø)
editoast 75.25% <ø> (-0.03%) ⬇️
front 8.41% <0.00%> (+<0.01%) ⬆️
gateway 2.50% <ø> (ø)
railjson_generator 87.26% <ø> (ø)
tests 81.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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 this PR ! Left a few comments

front/tests/assets/utils.ts Show resolved Hide resolved
front/tests/pages/scenario-page-model.ts Outdated Show resolved Hide resolved
front/tests/008-allowances.spec.ts Outdated Show resolved Hide resolved
front/tests/008-allowances.spec.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@Uriel-Sautron Uriel-Sautron left a comment

Choose a reason for hiding this comment

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

LGTM !! Thank for your work

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 the fixes, allowancesManagement is nice.

One last thing that is available right now : when adding an engineering allowance like you do (without changing the interval range which takes the whole path by default), we can check that the input to add a new one is properly disabled

Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

LGTM, all tests passed

@Yohh Yohh force-pushed the yoh/front-tests-refacto-tests-end-to-end-allowances branch from 921cc8f to 373c201 Compare February 22, 2024 12:58
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 good job !

@SharglutDev SharglutDev added this pull request to the merge queue Feb 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 22, 2024
- add data-testid where needed
- clean createCompleteScenario in /assets/utils.ts to fit with global setup
- edit some testId in scenario-page-model.ts
@Yohh Yohh force-pushed the yoh/front-tests-refacto-tests-end-to-end-allowances branch from b49a870 to 85abd6b Compare February 22, 2024 14:07
@SharglutDev SharglutDev added this pull request to the merge queue Feb 22, 2024
Merged via the queue into dev with commit ac93bc8 Feb 22, 2024
22 checks passed
@SharglutDev SharglutDev deleted the yoh/front-tests-refacto-tests-end-to-end-allowances branch February 22, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

front: refacto E2E tests: allowances
4 participants