Use the /assert command to ensure specific conditions are met in your tests.
/assert
The /assert
command ensures that a specific condition is true within your test. This is useful for verifying that tasks were completed successfully, just as a user would observe.
/assert
command generates an assertion based on the specified criteria.expect
field is true.This generates the following command:
To speed up tests, use async: true
to allow the test to continue without waiting for the assertion to pass:
async: true
with assertions to improve test performance while still validating critical conditions.expect
field clearly describes the condition to avoid ambiguity.expect
isn’t met, the test will fail and exit immediately./assert
command is ideal for validating key checkpoints in your test workflow.Use the /assert command to ensure specific conditions are met in your tests.
/assert
The /assert
command ensures that a specific condition is true within your test. This is useful for verifying that tasks were completed successfully, just as a user would observe.
/assert
command generates an assertion based on the specified criteria.expect
field is true.This generates the following command:
To speed up tests, use async: true
to allow the test to continue without waiting for the assertion to pass:
async: true
with assertions to improve test performance while still validating critical conditions.expect
field clearly describes the condition to avoid ambiguity.expect
isn’t met, the test will fail and exit immediately./assert
command is ideal for validating key checkpoints in your test workflow.