Skip to content

Conversation

@DavertMik
Copy link
Contributor

@DavertMik DavertMik commented Jan 10, 2025

This PR should improve how we pass step options from test

There will be a userland function to pass options to steps:

const step = require('codeceptjs/steps');
-I.limitTime(5).click('Link')
+I.click('Link', step.timeout(5))
-I.retry(5).click('Link')
+I.click('Link', step.retry(5))

Also it can be used to pass additional options into helper:

I.see('sign in', step.opts({ ignoreCase: true }));

@DavertMik DavertMik requested a review from kobenguyent January 10, 2025 14:44
@DavertMik DavertMik changed the title [WIP] Improved passing step options Improved passing step options Jan 13, 2025
@DavertMik DavertMik merged commit 7b97a55 into 3.x Jan 13, 2025
12 checks passed
@DavertMik DavertMik deleted the feat/steps-improv branch January 13, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants