Page MenuHomePhorge

Signup.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

Signup.php

<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Page;
class Signup extends Page
{
/**
* Get the URL for the page.
*
* @return string
*/
public function url(): string
{
return '/signup';
}
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser The browser object
*
* @return void
*/
public function assert($browser)
{
$browser->assertPathIs('/signup')
->waitUntilMissing('.app-loader')
->assertPresent('@step0')
->assertPresent('@step1')
->assertPresent('@step2')
->assertPresent('@step3');
}
/**
* Get the element shortcuts for the page.
*
* @return array
*/
public function elements(): array
{
return [
'@app' => '#app',
'@step0' => '#step0',
'@step1' => '#step1',
'@step2' => '#step2',
'@step3' => '#step3',
'@step4' => '#step4',
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 21, 5:18 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387378
Default Alt Text
Signup.php (1 KB)

Event Timeline