2016-11-23 13:22:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace E2E;
|
|
|
|
|
2016-11-23 16:36:41 +00:00
|
|
|
/**
|
|
|
|
* Class ZSettingsScreenTest
|
|
|
|
* The name is an ugly trick to force this test to run last, due to it changing the whole suite's
|
|
|
|
* data, causing other tests to fail otherwise.
|
|
|
|
*
|
|
|
|
* @package E2E
|
|
|
|
*/
|
|
|
|
class ZSettingsScreenTest extends TestCase
|
2016-11-23 13:22:47 +00:00
|
|
|
{
|
|
|
|
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
|
2016-11-23 15:36:12 +00:00
|
|
|
$this->notSee('#overlay');
|
2016-11-23 13:22:47 +00:00
|
|
|
$this->goto('albums');
|
|
|
|
// and make sure the scanning is good.
|
2016-11-23 15:36:12 +00:00
|
|
|
$this->seeText('Koel Testing Vol', '#albumsWrapper');
|
2016-11-23 13:22:47 +00:00
|
|
|
}
|
|
|
|
}
|