-
Notifications
You must be signed in to change notification settings - Fork 110
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
ckanext-datagovtheme has UI tests #3521
Comments
Should consider using https://playwright.dev/python/docs/test-runners instead of cypress here, to keep everything in python. |
Sentiment leans toward Cypress |
@Jin-Sun-tts will create an additional related ticket |
created issue #4066 to fix the broken CKAN functions in datagovtheme. |
Because datagovtheme does not have all dependencies for creating new harvest source from UI function, we just created test datasets from code, the do the cypress UI tests. This may have limits for some tests, but this make datagovtheme only keeps necessary components. |
Looking back at tickets we never closed properly is fun because you can see the struggle it took to figure out how to design a solution and then how it was fixed. @Jin-Sun-tts implemented cypress tests for datagovtheme in the above PR. |
User Story
In order to have confidence in UI changes in datagovtheme, data.gov sysadmins want Cypress tests (or other UI tests) implemented in datagovtheme.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
WHEN tests are run on datagovtheme
THEN the tests evaluate the UI as a user would
AND errors are reported if the UI is not as expected
Background
We have a lot of UI bugs that have slipped through to production recently. We want to catch these bugs at the source, and not have to create tests at the catalog level that may be incomplete. We already do this for ckanext-dcat_usmetadata.
Security Considerations (required)
None, all code is already public
Sketch
Use cypress examples from catalog, inventory, and ckanext-dcat_usmetadata. Create test cases for key items:
The text was updated successfully, but these errors were encountered: