mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
register test
This commit is contained in:
@@ -13,8 +13,8 @@ class CreateBookingTest extends DuskTestCase
|
||||
public function testLogin()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser->visit('http://localhost:86')
|
||||
->pause(500)
|
||||
$browser->visit('http://exchange-2.0.test')
|
||||
->pause(5000)
|
||||
->typeSlowly('email', 'junkit.mah@bioloop.com.my')
|
||||
->typeSlowly('password', '123456abcabc')
|
||||
->click('#sign-in')
|
||||
|
||||
@@ -14,7 +14,7 @@ class LoginTest extends DuskTestCase
|
||||
public function testLogin()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser->visit('http://localhost:86')
|
||||
$browser->visit('http://exchange-2.0.test')
|
||||
->pause(500)
|
||||
->type('email', 'junkit.mah@bioloop.com.my')
|
||||
->type('password', '123456abcabc')
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Browser\DryRun;
|
||||
|
||||
use Laravel\Dusk\Browser;
|
||||
use Tests\DuskTestCase;
|
||||
|
||||
class UserRegisterTest extends DuskTestCase
|
||||
{
|
||||
public function testRegister()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser->visit('http://exchange-2.0.test/signup')
|
||||
->pause(5000)
|
||||
->click('#company-select')
|
||||
->type('company_name', 'lazada')
|
||||
->type('name', 'Someone')
|
||||
->type('phone', '0128888888')
|
||||
->click('#next')
|
||||
->type('email', 'someone@gmail.com')
|
||||
->type('password', 'pass123')
|
||||
->type('password_confirmation', 'pass123')
|
||||
->click('#complete')
|
||||
->pause(5000)
|
||||
->assertPathIs('/dashboard');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user