Page MenuHomePhorge

Distlist.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

Distlist.php

<?php
namespace Tests\Browser\Pages\Admin;
use Laravel\Dusk\Page;
class Distlist extends Page
{
protected $listid;
/**
* Object constructor.
*
* @param int $listid Distribution list Id
*/
public function __construct($listid)
{
$this->listid = $listid;
}
/**
* Get the URL for the page.
*
* @return string
*/
public function url(): string
{
return '/distlist/' . $this->listid;
}
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser The browser object
*
* @return void
*/
public function assert($browser): void
{
$browser->waitForLocation($this->url())
->waitFor('@distlist-info');
}
/**
* Get the element shortcuts for the page.
*
* @return array
*/
public function elements(): array
{
return [
'@app' => '#app',
'@distlist-info' => '#distlist-info',
'@distlist-config' => '#distlist-config',
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 12:46 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18786303
Default Alt Text
Distlist.php (1 KB)

Event Timeline