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:
@@ -0,0 +1,59 @@
|
|||||||
|
APP_NAME=Laravel
|
||||||
|
APP_ENV=local
|
||||||
|
APP_KEY=base64:X521H/hWdbsG6S/JG0Q/BZgTo1azoV18kzqkqMQSDrQ=
|
||||||
|
APP_DEBUG=true
|
||||||
|
APP_URL=http://localhost
|
||||||
|
|
||||||
|
LOG_CHANNEL=stack
|
||||||
|
|
||||||
|
DB_CONNECTION=dusk
|
||||||
|
DB_HOST=127.0.0.1
|
||||||
|
DB_PORT=3306
|
||||||
|
DB_DATABASE=exchange-test
|
||||||
|
DB_USERNAME=root
|
||||||
|
DB_PASSWORD=
|
||||||
|
|
||||||
|
BROADCAST_DRIVER=log
|
||||||
|
CACHE_DRIVER=file
|
||||||
|
QUEUE_CONNECTION=sync
|
||||||
|
SESSION_DRIVER=file
|
||||||
|
SESSION_LIFETIME=120
|
||||||
|
|
||||||
|
REDIS_HOST=127.0.0.1
|
||||||
|
REDIS_PASSWORD=null
|
||||||
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
MAIL_MAILER=smtp
|
||||||
|
MAIL_HOST=smtp.mailtrap.io
|
||||||
|
MAIL_PORT=2525
|
||||||
|
MAIL_USERNAME=null
|
||||||
|
MAIL_PASSWORD=null
|
||||||
|
MAIL_ENCRYPTION=null
|
||||||
|
MAIL_FROM_ADDRESS=null
|
||||||
|
MAIL_FROM_NAME="${APP_NAME}"
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID=
|
||||||
|
AWS_SECRET_ACCESS_KEY=
|
||||||
|
AWS_DEFAULT_REGION=us-east-1
|
||||||
|
AWS_BUCKET=
|
||||||
|
|
||||||
|
PUSHER_APP_ID=
|
||||||
|
PUSHER_APP_KEY=
|
||||||
|
PUSHER_APP_SECRET=
|
||||||
|
PUSHER_APP_CLUSTER=mt1
|
||||||
|
|
||||||
|
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||||
|
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||||
|
|
||||||
|
FILESYSTEM_DRIVER="documents"
|
||||||
|
|
||||||
|
JWT_SECRET=
|
||||||
|
JWT_TTL=1440
|
||||||
|
|
||||||
|
SHIPPING_URL=http://shipping-portal.test/
|
||||||
|
MIX_SHIPPING_URL="${SHIPPING_URL}"
|
||||||
|
|
||||||
|
BILLPLZ_BASE_URL="https://www.billplz-sandbox.com"
|
||||||
|
BILLPLZ_API_KEY="0fa4c710-761b-4a7a-a501-c2c2d02643d5"
|
||||||
|
BILLPLZ_X_SIGNATURE_KEY="S-pbNVthVRsvnPfZlgLwqqOg"
|
||||||
|
BILLPLZ_COLLECTION_ID="hev2wdjy"
|
||||||
@@ -100,7 +100,7 @@ class CreateCustomerLogic extends AbstractControllerLogic
|
|||||||
|
|
||||||
$this->assignSegmentProcessor->execute($company);
|
$this->assignSegmentProcessor->execute($company);
|
||||||
|
|
||||||
$this->generateEmailVerificationAttemptProcessor->execute($user);
|
// $this->generateEmailVerificationAttemptProcessor->execute($user);
|
||||||
|
|
||||||
return $this->response($this->authenticationProcessor->execute($request));
|
return $this->response($this->authenticationProcessor->execute($request));
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,26 @@ return [
|
|||||||
]) : [],
|
]) : [],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'dusk' => [
|
||||||
|
'driver' => 'mysql',
|
||||||
|
'url' => env('DATABASE_URL'),
|
||||||
|
'host' => env('DB_HOST', '127.0.0.1'),
|
||||||
|
'port' => env('DB_PORT', '3306'),
|
||||||
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
|
'password' => env('DB_PASSWORD', ''),
|
||||||
|
'unix_socket' => env('DB_SOCKET', ''),
|
||||||
|
'charset' => 'utf8mb4',
|
||||||
|
'collation' => 'utf8mb4_unicode_ci',
|
||||||
|
'prefix' => '',
|
||||||
|
'prefix_indexes' => true,
|
||||||
|
'strict' => false,
|
||||||
|
'engine' => null,
|
||||||
|
'options' => extension_loaded('pdo_mysql') ? array_filter([
|
||||||
|
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
|
||||||
|
]) : [],
|
||||||
|
],
|
||||||
|
|
||||||
'pgsql' => [
|
'pgsql' => [
|
||||||
'driver' => 'pgsql',
|
'driver' => 'pgsql',
|
||||||
'url' => env('DATABASE_URL'),
|
'url' => env('DATABASE_URL'),
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -13,8 +13,8 @@ class CreateBookingTest extends DuskTestCase
|
|||||||
public function testLogin()
|
public function testLogin()
|
||||||
{
|
{
|
||||||
$this->browse(function (Browser $browser) {
|
$this->browse(function (Browser $browser) {
|
||||||
$browser->visit('http://localhost:86')
|
$browser->visit('http://exchange-2.0.test')
|
||||||
->pause(500)
|
->pause(5000)
|
||||||
->typeSlowly('email', 'junkit.mah@bioloop.com.my')
|
->typeSlowly('email', 'junkit.mah@bioloop.com.my')
|
||||||
->typeSlowly('password', '123456abcabc')
|
->typeSlowly('password', '123456abcabc')
|
||||||
->click('#sign-in')
|
->click('#sign-in')
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class LoginTest extends DuskTestCase
|
|||||||
public function testLogin()
|
public function testLogin()
|
||||||
{
|
{
|
||||||
$this->browse(function (Browser $browser) {
|
$this->browse(function (Browser $browser) {
|
||||||
$browser->visit('http://localhost:86')
|
$browser->visit('http://exchange-2.0.test')
|
||||||
->pause(500)
|
->pause(500)
|
||||||
->type('email', 'junkit.mah@bioloop.com.my')
|
->type('email', 'junkit.mah@bioloop.com.my')
|
||||||
->type('password', '123456abcabc')
|
->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