Skip to content

Setup Re-usable Test Helpers

Simpson, Robert (Contractor) Evan requested to merge test-utils into main

Before making a pull request

  • Put the appropriate EXEMPT flag if needed in the MR label (see https://practices.wma.chs.usgs.gov/practice/peer_code_review/)
  • Run all linters (make lint)
  • Run all tests (make test)
  • Update the changelog appropriately
  • If making a release, update code.json metadataLastUpdated and bump CHANGELOG.md to next version.

Description

Similar to how commands are created in Cypress to make it easier to identify targeted elements designated for testing using the data-testid attribute. I found the example plugin on the test utils site and wanted to see the LOE to integrate. It was straight forward and could prove to be a place where more helpers can be added for use in one or more tests.

I am not sure if a JIRA ticket is needed for these types of requests. If so, this can be closed and opened in a new request if the idea is a good one.

After making a pull request

  • If appropriate, put the link to the PR in the JIRA ticket
  • Assign someone to review unless the change is trivial
  • Check the accessibility CI step and fix or explain any issues.

Merge request reports