Cypress Command: clickStepActions
Summary
cy.clickStepActions(title)
- Peform actions for the current step only, and verify its title Parameters
title
- Expected title of the current step, which will be verified before performing all the actions within the current step
Example
cy.clickStepActions("Starting the Server");
Waiting
This command will wait until all the actions within the current step are performed and the lab advances to the next step.
Verification
This command will verify that the given title parameter matches the current step’s title, and it will verify that all actions within the step are performed successfully.
Only links to within the lab environment will be verified.
Related
-
You must have already called startLab to start the lab
-
Alternatively, call performAllLabActions to test lab that is completely instruction-guided.
-
If your lab contains steps that a human learner would perform outside the lab, such as interacting with a web application running within the lab or the AWS web console, you may substitute for those by running lower-level commands such as terminalType. You may still perform the remaining actions of the step using the instruction-guided commands, such as:
A human learner will be most successful if the lab can be written so that all actions the learner must take are specified within the instructions.
Instruction-Guided
This is an instruction-guided command: By using this command to ask Cypress to click on all actions within the current step, you will avoid having to remember to update your tests every time a new action is added or reviewed from the instructions. You will also verify that you are performing the actions for the expected step, even as steps are inserted or removed.