From ec9d2cc292ce280cb1866680fd9c157540547c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sun, 15 Aug 2021 16:26:18 +0200 Subject: [PATCH] Update order of tests --- .../Gateways/Eway/CreditCardTest.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/Browser/ClientPortal/Gateways/Eway/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/Eway/CreditCardTest.php index 95357d6ea0a8..528422ba0759 100644 --- a/tests/Browser/ClientPortal/Gateways/Eway/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/Eway/CreditCardTest.php @@ -91,6 +91,19 @@ class CreditCardTest extends DuskTestCase }); } + public function testRemoveCreditCard() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.payment_methods.index') + ->clickLink('View') + ->press('Remove Payment Method') + ->waitForText('Confirmation') + ->click('@confirm-payment-removal') + ->assertSee('Payment method has been successfully removed.'); + }); + } + public function testAddingCreditCardStandalone() { $this->browse(function (Browser $browser) { @@ -109,17 +122,4 @@ class CreditCardTest extends DuskTestCase ->waitForText('**** 1111'); }); } - - public function testRemoveCreditCard() - { - $this->browse(function (Browser $browser) { - $browser - ->visitRoute('client.payment_methods.index') - ->clickLink('View') - ->press('Remove Payment Method') - ->waitForText('Confirmation') - ->click('@confirm-payment-removal') - ->assertSee('Payment method has been successfully removed.'); - }); - } }