Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improved passing step options #4733

Merged
merged 13 commits into from
Jan 13, 2025
Merged

Improved passing step options #4733

merged 13 commits into from
Jan 13, 2025

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('#', 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants