Page MenuHomePhorge

PaymentStatus.php
No OneTemporary

Size
912 B
Referenced Files
None
Subscribers
None

PaymentStatus.php

<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Page;
class PaymentStatus extends Page
{
/**
* Get the URL for the page.
*
* @return string
*/
public function url(): string
{
return '/payment/status';
}
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser The browser object
*
* @return void
*/
public function assert($browser)
{
$browser->waitForLocation($this->url())
->waitUntilMissing('@app .app-loader');
}
/**
* Get the element shortcuts for the page.
*
* @return array
*/
public function elements(): array
{
return [
'@app' => '#app',
'@content' => '.card .card-text',
'@lock-alert' => '#lock-alert',
'@button' => '.card button.btn-primary',
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 21, 1:06 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387346
Default Alt Text
PaymentStatus.php (912 B)

Event Timeline