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