Skip to content

Make url parameter optional in seePageIsAvailable #114

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2021
Merged

Make url parameter optional in seePageIsAvailable #114

merged 1 commit into from
Feb 7, 2021

Conversation

TavoNiievez
Copy link
Member

I have been monitoring the use of this method in the public repositories that use this module.

I'm glad to see that it quickly became a very popular assertion. This is mainly because it is more natural to talk about available pages than 2xx response codes.

However, I have seen that in many cases amOnPage is used as a previous step, perhaps because it is more natural to read them separately. To avoid redundancies, the $url parameter will be optional, so both ways (the current one with a parameter, and the new one, without it) will be valid no matter which one you choose to use.

@TavoNiievez TavoNiievez added this to the 2.0.0 milestone Feb 6, 2021
@TavoNiievez TavoNiievez merged commit 18297e9 into Codeception:master Feb 7, 2021
@TavoNiievez TavoNiievez deleted the seePageAvailable branch February 7, 2021 17:20
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.

1 participant