e2e: organize reusable cy commands with nested functions #27278
Unanswered
GeenCo86
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
cypress-version: 12.17.0
ui library: react
Hello,
I have multiple pages with table components. Now I would like to test every page and use the nested components of the table.
So click on an add button, click on a delete button and so on. To not repeat this code every time, I would like to create a chainable command with nested custom commands.
Something like:
and to call it:
But I don' find a way to do this. Is there the possibility for something like that?
Beta Was this translation helpful? Give feedback.
All reactions