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(#9471): ui nav work image replacement - contact and user management #9505

Open
wants to merge 72 commits into
base: master
Choose a base branch
from

Conversation

lorerod
Copy link
Contributor

@lorerod lorerod commented Oct 4, 2024

Description

closes #9471

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.

@lorerod lorerod force-pushed the 9471-ui-nav-image-test-contact-user-management branch from 2156755 to f7872f7 Compare October 4, 2024 16:20
@lorerod lorerod marked this pull request as ready for review October 8, 2024 23:13
@lorerod
Copy link
Contributor Author

lorerod commented Oct 11, 2024

Hi @latin-panda! If you can review this, I have some doubts about this change, and you may know a better way to proceed.

  1. Adding immunization condition card selectors in tests/page-objects/default/contacts/contacts.wdio.page.js, but immunization is not a part of the default config.
  2. Adding forms in tests/e2e/visual/contacts/forms where the only difference to the default config forms is in properties not to show the form or change its name for the care guides screenshot.
    Appreciate it!

Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

Thanks for sending this Lore!

I only covered 50% of the files, it's slow to review because many new lines and checking things around the new code
So submitting the first half and then I'll continue the other later

package.json Outdated Show resolved Hide resolved
tests/utils/index.js Outdated Show resolved Hide resolved
tests/page-objects/default/users/user.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/sort/sort.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/sort/sort.wdio.page.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/reports/inmunization.js Outdated Show resolved Hide resolved
Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

@lorerod Looking very good! I reviewed 17 of 23 files, tomorrow I'll continue with the other ones. But submitting some of the feedback and questions now

tests/e2e/visual/wdio.conf.js Outdated Show resolved Hide resolved
tests/page-objects/default/common/common.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/common/common.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/common/common.wdio.page.js Outdated Show resolved Hide resolved
tests/utils/index.js Show resolved Hide resolved
tests/page-objects/default/contacts/contacts.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/contacts/contacts.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/contacts/contacts.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.

This is a lot of code (572 lines) and needs some fixes to align it with our standard. Before I dive into this file, I want to make sure... Do we really need all this? 😅

Copy link
Contributor Author

@lorerod lorerod Nov 13, 2024

Choose a reason for hiding this comment

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

@latin-panda , the only difference from the default config contact-summary-extras.js file is that I added what is necessary to support immunization. Do you know if there is a more straightforward way to add does to the test config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same happens to me with the forms.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before.

This is a lot of code (477 lines) and needs some fixes to align it with our standard. Before I dive into this file, I want to make sure... Do we really need all this? 😅

Maybe we can work out only the necessary

Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

@lorerod I finished reviewing, please find below the other part of the feedback

tests/factories/cht/generate.js Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/page-objects/default/sort/sort.wdio.page.js Outdated Show resolved Hide resolved
Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

It's almost ready! 🤩 Just some small comments below

tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/factories/cht/generate.js Outdated Show resolved Hide resolved
tests/page-objects/default/common/common.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/contacts/contacts.wdio.page.js Outdated Show resolved Hide resolved
tests/page-objects/default/contacts/contacts.wdio.page.js Outdated Show resolved Hide resolved
@latin-panda
Copy link
Contributor

@lorerod is it ready for review? I'm available if you need :)

@lorerod
Copy link
Contributor Author

lorerod commented Nov 25, 2024

@latin-panda I'm Sorry. Last week, I was busy fixing the cht-sync e2e failure at the main branch. I will work on this as a priority this week. Thank you!

lorerod and others added 26 commits November 28, 2024 12:17
Co-authored-by: Jennifer Q <[email protected]>
Co-authored-by: Jennifer Q <[email protected]>
Co-authored-by: Jennifer Q <[email protected]>
Co-authored-by: Jennifer Q <[email protected]>
@lorerod lorerod force-pushed the 9471-ui-nav-image-test-contact-user-management branch from 4551730 to 0a62975 Compare November 28, 2024 15:25
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.

UI Nav Work Image Replacement - Contact and User Management
2 participants