-
Notifications
You must be signed in to change notification settings - Fork 14
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
#2741 - Ministry Filter: Search Programs and Offerings [e2e tests] #3883
#2741 - Ministry Filter: Search Programs and Offerings [e2e tests] #3883
Conversation
sources/packages/backend/libs/test-utils/src/utils/string-utils.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Show resolved
Hide resolved
}, | ||
); | ||
|
||
it( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one would be a good candidate to have included a status sort desc to be validated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a problem testing this specific scenario here. The reason being that there are two Pending
Program Status records and they can show up in any arbitrary order resulting in the test to fail arbitrarily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed as discussed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the E2Es now having two scenarios with the sortOrder=ASC
but the comment was suggesting one at least with the status sort desc
. Was there any reason not to have it included in the scenarios?
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/test-utils/src/utils/string-utils.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments. Please take a look.
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...ucation-program/_tests_/e2e/education-program.aest.controller.getProgramsSummary.e2e-spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for checking the suggestions!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
…erings_add_location_search_e2e_tests
@@ -56,6 +56,11 @@ | |||
font: unset !important; | |||
} | |||
|
|||
// Temporary fix for Vuetify beta that does not display the selection component dropdown checkbox properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment required? Is the component still beta?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Quality Gate passedIssues Measures |
As a part of this PR, the following were completed:
EducationProgramAESTController(e2e)-getProgramsSummary
√ Should not retrieve any education programs when the search for the programs is made and no program statuses are searched for including no search for the inactive programs. (655 ms)
√ Should retrieve all the education programs when the search for the programs is made and all program statuses are searched for including the inactive programs. (385 ms)
√ Should retrieve all the inactive education programs when the search for the programs is made and none of the program statuses are selected except for the inactive programs. (359 ms)
√ Should retrieve all the pending, declined and inactive education programs sorted by ascending program status when the search for the programs is made and pending, declined program statuses are selected along with the inactive programs. (380 ms)
√ Should retrieve all the approved and declined education programs when the search for the programs is made and only the approved and declined program statuses are selected. (349 ms)
√ Should retrieve all the approved and pending education programs matching the program name search string when the search for the programs is made and the approved and pending program statuses are selected along with the program name search filter. (370 ms)
√ Should retrieve all the declined and inactive education programs sorted by ascending program status matching the program name search string and the location name search string when the search for the programs is made and the declined program status is selected along with the inactive programs selected and the program name and location name search filter. (623 ms)
Screenshot of the executed tests:
v-select
component when the list item is unchecked.Issue:
Fix: