Test removing ACH account

This commit is contained in:
Benjamin Beganović 2021-08-27 19:46:20 +02:00
parent a89f5a8fc0
commit 8467c60a3b

View File

@ -77,4 +77,17 @@ class ACHTest extends DuskTestCase
->waitForText('Details of the payment', 60);
});
}
public function testRemoveACHAccount()
{
$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.');
});
}
}