Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
Fixed PayPal tests. (#16)
Browse files Browse the repository at this point in the history
* Fixed PayPal tests.

* Updated reroute email on Gifts backend.
  • Loading branch information
Kate authored Apr 1, 2018
1 parent 84a6854 commit 9f314c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
reroute_email_enable: true
reroute_email_address: falcon-test@systemseed.com
reroute_email_address: test+falcon-don@systemseed.com
reroute_email_enable_message: false
_core:
default_config_hash: 13h0XWn5O_Erl8GU184XxSDadjISwLzYZbsqi4cbMEs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
reroute_email_enable: true
reroute_email_address: falcon-test@systemseed.com
reroute_email_address: test+falcon-gifts@systemseed.com
reroute_email_enable_message: false
_core:
default_config_hash: 13h0XWn5O_Erl8GU184XxSDadjISwLzYZbsqi4cbMEs
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,15 @@ public function payWithPayPal($total_formatted) {
$I->switchToNextTab();
$I->waitForText('PayPal', 80);
$I->wait(2);
$I->see($total_formatted);

// Paypal will render auth form into iframe. Switch to it.
$I->waitForElement('#injectedUnifiedLogin iframe');
$I->switchToIFrame('injectedUl');

// PayPal authentication step 1: Email.
$I->fillField('login_email', '[email protected]');
$I->click('#btnNext');

$I->waitForElement('input[name=login_password]');
$I->wait(2);

// PayPal authentication step 2: password.
$I->fillField('login_password', 'C0nc3rn!');
$I->click('#btnLogin');

Expand All @@ -265,6 +267,9 @@ public function payWithPayPal($total_formatted) {

// Wait for Buy Now button in Paypal window.
$I->waitForElement('#confirmButtonTop', 80);

$I->expectTo('See correct total amount.');
$I->see($total_formatted);
$I->wait(3);

$I->click('#confirmButtonTop');
Expand Down

0 comments on commit 9f314c1

Please sign in to comment.