mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +00:00
25 lines
688 B
PHP
25 lines
688 B
PHP
|
<?php
|
||
|
|
||
|
namespace E2E;
|
||
|
|
||
|
class QueueScreenTest extends TestCase
|
||
|
{
|
||
|
public function test()
|
||
|
{
|
||
|
$this->loginAndWait();
|
||
|
$this->goto('queue');
|
||
|
static::assertContains('Current Queue', $this->el('#queueWrapper > h1 > span')->getText());
|
||
|
|
||
|
// As the queue is currently empty, the "Shuffling all song" link should be there
|
||
|
$this->click('#queueWrapper a.start');
|
||
|
$this->waitUntil(function () {
|
||
|
return count($this->els('#queueWrapper .song-item'));
|
||
|
});
|
||
|
|
||
|
// Clear the queue
|
||
|
$this->click('#queueWrapper .buttons button.btn.btn-red');
|
||
|
static::assertEmpty($this->els('#queueWrapper tr.song-item'));
|
||
|
}
|
||
|
|
||
|
}
|