coolify/tests/Browser/Project/ProjectTest.php

28 lines
582 B
PHP
Raw Normal View History

2024-10-28 21:57:56 +00:00
<?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 test_login()
2024-10-28 21:57:56 +00:00
{
$this->browse(function (Browser $browser) {
$browser->loginWithRootUser()
->visit('/projects')
->assertSee('Projects');
});
}
}