Sort of working beta

This commit is contained in:
2025-02-06 17:30:45 +01:00
parent 5f42c707eb
commit 2ef114e154
97 changed files with 3093 additions and 106 deletions

View File

@ -0,0 +1,43 @@
<?php
namespace App\Browser\Components\Hellcase;
use Laravel\Dusk\Browser;
use Laravel\Dusk\Component as BaseComponent;
class MainNav extends BaseComponent
{
/**
* Get the root selector for the component.
*/
public function selector(): string
{
return 'header.header';
}
/**
* Assert that the browser page contains the component.
*/
public function assert(Browser $browser): void
{
$browser->assertVisible($this->selector());
}
/**
* Get the element shortcuts for the component.
*
* @return array<string, string>
*/
public function elements(): array
{
return [
'@logo' => 'a.header-logo',
'@daily-free-link' => 'a[href="/dailyfree"]',
];
}
public function goToHome(Browser $browser) {
$browser->scrollIntoView('@logo');
$browser->click('@logo');
}
}