mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
create booking online payment
This commit is contained in:
@@ -15,8 +15,8 @@ class CreateBookingTest extends DuskTestCase
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser->visit('http://exchange-2.0.test')
|
||||
->pause(5000)
|
||||
->typeSlowly('email', 'junkit.mah@bioloop.com.my')
|
||||
->typeSlowly('password', '123456abcabc')
|
||||
->type('email', 'giftolavie@hotmail.com')
|
||||
->type('password', 'pass123')
|
||||
->click('#sign-in')
|
||||
->pause(5000)
|
||||
->assertPathIs('/dashboard');
|
||||
@@ -60,6 +60,14 @@ class CreateBookingTest extends DuskTestCase
|
||||
->click('#add-product')
|
||||
->pause(7000)
|
||||
->click('#save-purchase-order')
|
||||
->click('#payment-btn')
|
||||
->click('#online-banking')
|
||||
->click('#create-booking')
|
||||
->pause(3000)
|
||||
->click('#lock-booking')
|
||||
->whenAvailable('#confirm-booking-modal', function ($modal) {
|
||||
$modal->click('#confirm-booking');
|
||||
})
|
||||
->pause(10000);
|
||||
//Assert if booking created successfully
|
||||
|
||||
|
||||
Reference in New Issue
Block a user