koel/tests/e2e/SettingsScreenTest.php
2016-11-23 21:26:15 +08:00

22 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');
}
}