diff --git a/tests/src/FunctionalJavascript/PosFormTest.php b/tests/src/FunctionalJavascript/PosFormTest.php index 321d34f..bc8bbdb 100644 --- a/tests/src/FunctionalJavascript/PosFormTest.php +++ b/tests/src/FunctionalJavascript/PosFormTest.php @@ -204,7 +204,7 @@ class PosFormTest extends JavascriptTestBase { $web_assert->pageTextContains('To Pay $96.40'); // Go to the payment page. - $this->getSession()->getPage()->findButton('Add Payment')->click(); + $this->getSession()->getPage()->findButton('Payments and Completion')->click(); $this->getSession()->getPage()->fillField('keypad[amount]', '50'); $this->click('input[name="commerce-pos-pay-keypad-add"]'); @@ -241,7 +241,7 @@ class PosFormTest extends JavascriptTestBase { $web_assert->pageTextContains('Change $0.00'); // Go to the payment page. - $this->click('.commerce-pos input[name="op"]'); + $this->getSession()->getPage()->findButton('Payments and Completion')->click(); $web_assert->pageTextContains('Total $119.60'); $web_assert->pageTextContains('Cash $50.00');