1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Tests: Pending payment

This commit is contained in:
Benjamin Beganović 2021-09-24 22:40:39 +02:00
parent 73581740df
commit 8b569f3f5a

View File

@ -53,4 +53,20 @@ class BankTransferTest extends DuskTestCase
->assertSee('Completed');
});
}
public function testPendingPayment(): void
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.invoices.index')
->click('@pay-now')
->press('Pay Now')
->clickLink('Bank Transfer')
->waitForText('Test profile')
->radio('final_state', 'open')
->press('Continue')
->waitForText('Details of the payment')
->assertSee('Pending');
});
}
}