mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* php artisan serve and dusk testing * Fix style * move if into, in case we need to have different configs * fix travis yml * Add missing folders files * Try to fixup Travis-ci * revert variable, change check * skip browser tests for phpunit runs set up env correctly * maybe bg is needed * attempt to fix env * install Chrome * Update tests fix migrations * Move pylint to python2 * use testing .env * Running chrome on port 9515 conflicts with the instance started by the tests. It is probably not needed. * suppress some artisan serve output * remove the unused updater
42 lines
678 B
PHP
42 lines
678 B
PHP
<?php
|
|
|
|
namespace LibreNMS\Tests\Browser\Pages;
|
|
|
|
use Laravel\Dusk\Browser;
|
|
|
|
class LoginPage extends Page
|
|
{
|
|
/**
|
|
* Get the URL for the page.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function url()
|
|
{
|
|
return '/login';
|
|
}
|
|
|
|
/**
|
|
* Assert that the browser is on the page.
|
|
*
|
|
* @param Browser $browser
|
|
* @return void
|
|
*/
|
|
public function assert(Browser $browser)
|
|
{
|
|
$browser->assertPathIs($this->url());
|
|
}
|
|
|
|
/**
|
|
* Get the element shortcuts for the page.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function elements()
|
|
{
|
|
return [
|
|
'@element' => '#selector',
|
|
];
|
|
}
|
|
}
|