The Codeception methods seeCurrentUrlEquals()and seeCurrentUrlMatches(), unfortunately, are incorrectly named, because they do not allow us to say that they are made against the entire URL, but rather only against parts of the URI.
I solved this by declaring the following method in my Helper class:
public function seeFullCurrentURLEquals($value)
{
return ($this->getModule('PhpBrowser')->client->getHistory()->current()->getUri() == $value);
}
Then in the script you can just do something like:
$I->seeFullCurrentUrlEquals('google.com');
source
share