Skip to content

Commit 5c0f775

Browse files
env testing
1 parent 23d1da0 commit 5c0f775

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.env.testing

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ APP_ENV=testing
33
APP_KEY=base64:FTJwz+7HAjLqMzDr6SZh7va2aCpamPHfYNWswV0QU/g=
44
APP_DEBUG=true
55
APP_URL=http://127.0.0.1:47800
6+
DUSK_DRIVER_URL=http://localhost:9515
67

78
# Configurações do Banco de Dados (MariaDB no Docker)
89
DB_CONNECTION=mysql
@@ -26,8 +27,6 @@ SESSION_LIFETIME=120
2627
# Configurações de Email (Não envia emails reais durante o teste)
2728
MAIL_MAILER=log
2829

29-
# Dusk Specific
30-
# Força o Dusk a rodar em modo headless (sem abrir janela) se necessário
31-
# Útil para ambientes de CI como GitHub Actions
32-
# DUSK_START_MAXIMIZED=true
33-
DUSK_HEADLESS_DISABLED=true
30+
# Dusk
31+
#DUSK_START_MAXIMIZED=true
32+
#DUSK_HEADLESS_DISABLED=true

.github/workflows/dusk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ jobs:
6262
run: php artisan serve --port=47800 &
6363

6464
- name: Run Dusk
65-
run: php artisan dusk
65+
run: php artisan dusk --without-tty

tests/DuskTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ protected function driver(): RemoteWebDriver
3333
$this->shouldStartMaximized() ? '--start-maximized' : '--window-size=1920,1080',
3434
'--disable-search-engine-choice-screen',
3535
'--disable-smooth-scrolling',
36+
'--no-sandbox',
37+
'--disable-dev-shm-usage',
3638
])->unless($this->hasHeadlessDisabled(), function (Collection $items) {
3739
return $items->merge([
3840
'--disable-gpu',

0 commit comments

Comments
 (0)