mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
Fixed email link step quoting and selection
This commit is contained in:
parent
a284e3183d
commit
4aef64a789
@ -81,7 +81,7 @@ class EmailContext extends BehatContext
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^I click on the \'([^\']*)\' link in the email (to|from) "([^"]*)"$/
|
||||
* @When /^I click on the "([^"]*)" link in the email (to|from) "([^"]*)"$/
|
||||
*/
|
||||
public function iGoToInTheEmailTo($linkSelector, $direction, $email)
|
||||
{
|
||||
@ -91,7 +91,7 @@ class EmailContext extends BehatContext
|
||||
assertNotNull($match);
|
||||
|
||||
$crawler = new Crawler($match['Content']);
|
||||
$linkEl = $crawler->filter($linkSelector);
|
||||
$linkEl = $crawler->selectLink($linkSelector);
|
||||
assertNotNull($linkEl);
|
||||
$link = $linkEl->attr('href');
|
||||
assertNotNull($link);
|
||||
|
Loading…
x
Reference in New Issue
Block a user