Skip to content

How to check a particular error was returned by a previous step? #329

Answered by ilslv
will-hart asked this question in Q&A
Discussion options

You must be logged in to vote

I could also have a then step which is Then dividing by (\d+) produces error xyz, but this seems like mixing steps and assertions.

You are absolutely right, the recommended way is to store whole Results on when steps and assert them on thens.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by will-hart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested k::api Related to API (application interface)
2 participants