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

chore(#8704): clean up and organize /reports e2e test folder #9280

Merged
merged 41 commits into from
Sep 9, 2024

Conversation

tatilepizs
Copy link
Contributor

@tatilepizs tatilepizs commented Jul 23, 2024

Description

Clean and organize the e2e tests that are inside the reports folder.

  • breadcrumbs.wdio-spec.js
  • bulk-delete.wdio-spec.js
  • date-filter.wdio-spec.js
  • delete.wdio-spec.js
  • export.wdio-spec.js
  • generate-short-codes.wdio-spec.js
  • infinite-scrolling.wdio-spec.js
  • reports-subject.wdio-spec.js
  • search-reports.wdio-spec.js
  • sidebar-filter.wdio-spec.js
  • sms-messages.wdio-spec.js
  • test-app_settings.js

#8704

Code review checklist

  • Readable: Concise, well named, follows the style guide, documented if necessary.
  • Documented: Configuration and user documentation on cht-docs
  • Tested: Unit and/or e2e where appropriate
  • Internationalised: All user facing text
  • Backwards compatible: Works with existing data and configuration or includes a migration. Any breaking changes documented in the release notes.

Compose URLs

If Build CI hasn't passed, these may 404:

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

tatilepizs and others added 30 commits July 22, 2024 14:56
Co-authored-by: Tatiana Lépiz Soto <94494491+tatilepizs@users.noreply.github.com>
Co-authored-by: Aniekan Eshiet <aeshiet@Aniekans-Medic-MacBook-Pro.local>
Co-authored-by: Ben Kiarie <kiarie@medic.org>
Co-authored-by: Tatiana Lépiz Soto <94494491+tatilepizs@users.noreply.github.com>
Co-authored-by: Aniekan Eshiet <aeshiet@Aniekans-Medic-MacBook-Pro.local>
@tatilepizs tatilepizs marked this pull request as ready for review August 30, 2024 15:18
Copy link
Contributor

@jkuester jkuester left a comment

Choose a reason for hiding this comment

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

Very nice! I appreciate the organization of the page files since it makes it a lot easier to consume the various functionality and find the selectors that I need for my test!

Just left some minor comments/suggestions, but nothing big!

Copy link
Contributor

@lorerod lorerod 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, @tatilepizs, for the improvements! I love the selector grouping and the code cleanup when creating reports! I just left a couple of suggestions.
I'm sorry if I was repetitive about the cleanup after the test; it is important not to affect subsequent tests.
Let me know what you think.

tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Please verify if we are cleaning up after the test. If I understand correctly, this test updates the settings, and the settings do not revert afterward.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it is ok with you, we can clean up this test when we are working on the ticket #8705 😊

tests/e2e/default/reports/export.wdio-spec.js Outdated Show resolved Hide resolved
tests/e2e/default/reports/delete.wdio-spec.js Show resolved Hide resolved
tests/e2e/default/reports/breadcrumbs.wdio-spec.js Outdated Show resolved Hide resolved
@tatilepizs
Copy link
Contributor Author

I'm sorry if I was repetitive about the cleanup after the test

Thank you Lore for reminding me to clean the test files, as you said, it is really important to do it and I always forget it.
I appreciate your comments, I will try to remember for the next time 😅

Can you please take a look again? I think that I am done with all the feedback.

Copy link
Contributor

@lorerod lorerod 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 @tatilepizs! LGTM
I left some suggestions around the refactoring of select and deselect reports, but this is good to go.

tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/reports/reports.wdio.page.js Outdated Show resolved Hide resolved
@tatilepizs tatilepizs merged commit b113fbc into master Sep 9, 2024
44 checks passed
@tatilepizs tatilepizs deleted the 8704-clean-up-and-organize-reports-folder branch September 9, 2024 14:39
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.

6 participants