mirror of
https://github.com/koel/koel
synced 2025-01-07 02:08:46 +00:00
23 lines
694 B
PHP
23 lines
694 B
PHP
|
<?php
|
||
|
|
||
|
namespace E2E;
|
||
|
|
||
|
class SettingsScreenTest extends TestCase
|
||
|
{
|
||
|
public function testSettingsScreen()
|
||
|
{
|
||
|
$this->loginAndGoTo('settings');
|
||
|
$this->typeIn('#inputSettingsPath', dirname(__DIR__.'/../songs'));
|
||
|
$this->enter();
|
||
|
// Wait for the page to reload
|
||
|
$this->waitUntil(function () {
|
||
|
return $this->driver->executeScript('return document.readyState') === 'complete';
|
||
|
});
|
||
|
// And for the loading screen to disappear
|
||
|
$this->waitUntilNotSeen('#overlay');
|
||
|
$this->goto('albums');
|
||
|
// and make sure the scanning is good.
|
||
|
$this->waitUntilTextSeenIn('Koel Testing Vol', '#albumsWrapper');
|
||
|
}
|
||
|
}
|