Update order of tests

This commit is contained in:
Benjamin Beganović 2021-08-15 16:26:18 +02:00
parent fc2094b951
commit ec9d2cc292

View File

@ -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.');
});
}
}