Fix tests
[MAILPOET-2187]
This commit is contained in:
@@ -36,7 +36,7 @@ class SubscribeToMultipleListsCest {
|
|||||||
$I->amOnMailboxAppPage();
|
$I->amOnMailboxAppPage();
|
||||||
$I->click(Locator::contains('span.subject', 'Subscribe to multiple test subject'));
|
$I->click(Locator::contains('span.subject', 'Subscribe to multiple test subject'));
|
||||||
$I->switchToIframe('preview-html');
|
$I->switchToIframe('preview-html');
|
||||||
$I->click('Click here to confirm your subscription');
|
$I->click('I confirm my subscription!');
|
||||||
$I->switchToNextTab();
|
$I->switchToNextTab();
|
||||||
$I->see('You have subscribed');
|
$I->see('You have subscribed');
|
||||||
$I->waitForText($seg1);
|
$I->waitForText($seg1);
|
||||||
|
@@ -78,7 +78,7 @@ class SubscriptionFormCest {
|
|||||||
$I->waitForElement(Locator::contains('span.subject', 'Confirm your subscription'));
|
$I->waitForElement(Locator::contains('span.subject', 'Confirm your subscription'));
|
||||||
$I->click(Locator::contains('span.subject', 'Confirm your subscription'));
|
$I->click(Locator::contains('span.subject', 'Confirm your subscription'));
|
||||||
$I->switchToIframe('preview-html');
|
$I->switchToIframe('preview-html');
|
||||||
$I->click('Click here to confirm your subscription');
|
$I->click('I confirm my subscription!');
|
||||||
$I->switchToNextTab();
|
$I->switchToNextTab();
|
||||||
$I->see('You have subscribed');
|
$I->see('You have subscribed');
|
||||||
$I->seeNoJSErrors();
|
$I->seeNoJSErrors();
|
||||||
|
@@ -29,7 +29,7 @@ class ConfirmationEmailMailerTest extends \MailPoetTest {
|
|||||||
'send' =>
|
'send' =>
|
||||||
Stub\Expected::once(function($email) {
|
Stub\Expected::once(function($email) {
|
||||||
expect($email['body']['html'])->contains('<strong>Test segment</strong>');
|
expect($email['body']['html'])->contains('<strong>Test segment</strong>');
|
||||||
expect($email['body']['html'])->contains('<a target="_blank" href="http://example.com">Click here to confirm your subscription.</a>');
|
expect($email['body']['html'])->contains('<a target="_blank" href="http://example.com">I confirm my subscription!</a>');
|
||||||
}),
|
}),
|
||||||
], $this);
|
], $this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user