/
dimamir
/
coolify
Обзор
Документация
Войти
/
dimamir
/
coolify
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/Browser/Project/ProjectTest.php
27 строк
581 B
Andras Bacsai
add dusk tests
29 окт 2024, 00:57
29 окт 2024, 00:57
2eef8ee
Код
Авторство
О чём код?
<?php namespace Tests\Browser; use Laravel\Dusk\Browser; use Tests\DuskTestCase; use Throwable; class ProjectTest extends DuskTestCase { /** * A basic test for the projects page. * Login with the test user and assert that the user is redirected to the projects page. * * @return void * * @throws Throwable */ public function testLogin() { $this->browse(function (Browser $browser) { $browser->loginWithRootUser() ->visit('/projects') ->assertSee('Projects'); }); } }