Is there a tutorial on how to use test users with ...
# ask-a-descoper
a
Is there a tutorial on how to use test users with flows?
Found this. https://docs.descope.com/knowledgebase/testing/cypresstesting/#e2e-testing-descope-flows-with-cypress However
Copy code
cy.get('descope-wc')
                        .find('input')
                        .type(loginID)
doesn't seem to work
Oh, it was because of the shadow root. This works:
Copy code
cy.get("descope-wc").shadow().find("input")
b
@broad-mouse-94403 don't we have that part in the KB?
a
Just saw
Remember to add the
includeShadowDom: true
field in your
cypress.config.js
as noted above or UI interactions wonโ€™t work.
I had skipped that, went straight to the code ๐Ÿ™‚
๐Ÿ™Œ 1
b
It is included but seems we may need to make the shadow dom note more obvious, or include a note in the code as well!
b
yeah. maybe even a screenshot of where to put it?
๐Ÿ‘ 1