ui-components icon indicating copy to clipboard operation
ui-components copied to clipboard

[Spike] Investigate how to best enable automation testing with Cypress

Open ArakTaiRoth opened this issue 2 years ago • 2 comments

Notes:

Right now, the only way to use Cypress for automation testing along with our components is to find the goa-input via a name property, then target the shadow dom, and then finally change the input box or click the button or something. We're interested in knowing if there's a better way to enable automation testing using our components and Cypress, so that people don't have to target the Shadow DOM.

Acceptance Criteria:

  1. Find out if there's something we can change about how we build our components to enable Cypress automation testing without targeting the Shadow DOM.
  2. Reach out to other teams that have implemented Cypress automation to see how they're testing our components
  3. Documentation is created on the website for how to implement automated testing with our components

ArakTaiRoth avatar Jul 06 '23 23:07 ArakTaiRoth

Output of spike

Spark450 avatar Aug 08 '23 16:08 Spark450

Spike isn't done as there's a big unanswered question:

  1. Currently the recommended way to target items in this spike won't trigger onChange functions in inputs or buttons. This is a big problem, as this is the main reason people would be testing our inputs and buttons. So this needs to be solved.

ArakTaiRoth avatar Aug 16 '23 17:08 ArakTaiRoth