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

Script to use the settings and fill up forms #102

Closed
latin-panda opened this issue Apr 19, 2024 · 7 comments · Fixed by medic/cht-core#9105
Closed

Script to use the settings and fill up forms #102

latin-panda opened this issue Apr 19, 2024 · 7 comments · Fixed by medic/cht-core#9105
Assignees
Labels

Comments

@latin-panda
Copy link
Collaborator

Make a script to take any form, fill in each page's fields, and then submit the form.

Continuation of this:

I made a gist with a draft of what this settings file might look like. It will probably get simplified a bit more later.
You can see a JSON file containing the settings. The idea is to have one file per config (moh-kenya, moh-uganda, etc), which contains the selectors and values to make the e2e work.

  • Instance URL
  • Array of users (role, online/offline type, username, password)
  • Pages
  • to access the list pages
  • to access the detail pages (based on contact-type or form id)
  • Forms - similar idea to test harness we talked in Care Teams call.
  • Array of pages
  • Each page has an array of fields
@latin-panda latin-panda self-assigned this Apr 19, 2024
@latin-panda
Copy link
Collaborator Author

I opened the first PR of 3: medic/cht-core#9068
This PR introduces that settings file, and now the tests are using it for: device information, instance URL and user credentials.

@latin-panda
Copy link
Collaborator Author

latin-panda commented Apr 26, 2024

@michaelkohn This task will continue next week.

@latin-panda
Copy link
Collaborator Author

I'll work on this next week. Because I want to finish the supervisor app breadcrumbs first..

@latin-panda
Copy link
Collaborator Author

In progress!

@latin-panda
Copy link
Collaborator Author

Progress shared in the daily, will continue next week

@latin-panda
Copy link
Collaborator Author

Finished waiting for feedback

@latin-panda
Copy link
Collaborator Author

Completed, code was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant