Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 18, 2024
1 parent 23732e4 commit dafaaf1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 32 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/dusk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,9 @@ jobs:
run: php artisan route:cache

- name: Upgrade Chrome Driver
run: php artisan dusk:chrome-driver --detect
- name: Start Chrome Driver
run: |
php artisan dusk:chrome-driver --detect
chmod -R 0755 vendor/laravel/dusk/bin/
./vendor/laravel/dusk/bin/chromedriver-linux &
- name: Run Laravel Server
run: php artisan serve --no-reload &

Expand Down Expand Up @@ -125,13 +123,13 @@ jobs:

- name: Upload Screenshots
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: screenshots
path: tests/Browser/screenshots
- name: Upload Console Logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: console
path: tests/Browser/console
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.env
.env.backup
.env.production
.env.dusk.*
.phpunit.result.cache
.php_cs.cache
.phpstorm.meta.php
Expand Down
23 changes: 1 addition & 22 deletions tests/.env.ci.dusk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
APP_NAME=touslesprenoms
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_DEBUG=false
APP_URL=http://127.0.0.1:8000

LOG_CHANNEL=stack
Expand Down Expand Up @@ -36,24 +36,3 @@ MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
10 changes: 5 additions & 5 deletions tests/Browser/ExampleTest.php → tests/Browser/HomeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;

class ExampleTest extends DuskTestCase
class HomeTest extends DuskTestCase
{
/**
* A basic browser test example.
*
* @test
*/
public function basicExample(): void
public function homePage(): void
{
$this->browse(function (Browser $browser): void {
$browser->visit('/')
->assertSee('Laravel');
->assertPathIs('/')
->assertTitle(config('app.name'))
->assertSee('Tous les prénoms');
});
}
}

0 comments on commit dafaaf1

Please sign in to comment.