Skip to content
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

[Features Request] Path assertions #38

Closed
tortuetorche opened this issue Jan 19, 2017 · 1 comment
Closed

[Features Request] Path assertions #38

tortuetorche opened this issue Jan 19, 2017 · 1 comment

Comments

@tortuetorche
Copy link

tortuetorche commented Jan 19, 2017

Hi,

Is it possible to add some additional assertions, related to the current path?
Here some suggestions:

// Assert the current path doesn't match the given path.
$browser->assertPathIsNot('/bad-url');

// Assert the current path matches the given regular expression.
// See: http://codeception.com/docs/modules/WebDriver#seeCurrentUrlMatches
$browser->assertPathMatches($regex);

// Assert the current path doesn't match the given regular expression.
// See: http://codeception.com/docs/modules/WebDriver#dontSeeCurrentUrlMatches
$browser->assertPathDoesntMatch($regex);

Cheers,
Tortue Torche

@RobbeVW
Copy link

RobbeVW commented Apr 23, 2017

The assertPathIsNot function was added recently. #183
I can look into the other two functions as well.

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

No branches or pull requests

3 participants