mirror of
https://github.com/koel/koel
synced 2025-01-03 00:08:45 +00:00
f52b060fbf
...as an ugly workaround to make this test run last, due to it changing the whole suite's data, causing other tests to fail.
29 lines
875 B
PHP
29 lines
875 B
PHP
<?php
|
|
|
|
namespace E2E;
|
|
|
|
/**
|
|
* 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
|
|
{
|
|
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->notSee('#overlay');
|
|
$this->goto('albums');
|
|
// and make sure the scanning is good.
|
|
$this->seeText('Koel Testing Vol', '#albumsWrapper');
|
|
}
|
|
}
|