mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-06-29 07:59:27 +02: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)
|
public function iGoToInTheEmailTo($linkSelector, $direction, $email)
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ class EmailContext extends BehatContext
|
||||||
assertNotNull($match);
|
assertNotNull($match);
|
||||||
|
|
||||||
$crawler = new Crawler($match['Content']);
|
$crawler = new Crawler($match['Content']);
|
||||||
$linkEl = $crawler->filter($linkSelector);
|
$linkEl = $crawler->selectLink($linkSelector);
|
||||||
assertNotNull($linkEl);
|
assertNotNull($linkEl);
|
||||||
$link = $linkEl->attr('href');
|
$link = $linkEl->attr('href');
|
||||||
assertNotNull($link);
|
assertNotNull($link);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user