mirror of
https://github.com/koel/koel
synced 2025-01-05 01:08:50 +00:00
22 lines
672 B
PHP
22 lines
672 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->notSee('#overlay');
|
|
$this->goto('albums');
|
|
// and make sure the scanning is good.
|
|
$this->seeText('Koel Testing Vol', '#albumsWrapper');
|
|
}
|
|
}
|