koel/tests/e2e/SettingsScreenTest.php

23 lines
694 B
PHP
Raw Normal View History

2016-11-23 13:22:47 +00:00
<?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');
}
}