koel/tests/e2e/QueueScreenTest.php

21 lines
599 B
PHP
Raw Normal View History

2016-11-15 07:54:41 +00:00
<?php
namespace E2E;
class QueueScreenTest extends TestCase
{
public function test()
{
2016-11-23 13:22:47 +00:00
$this->loginAndGoTo('queue');
2016-11-15 07:54:41 +00:00
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');
2016-11-24 03:56:00 +00:00
$this->see('#queueWrapper .song-item');
2016-11-15 07:54:41 +00:00
// Clear the queue
2016-11-17 09:25:58 +00:00
$this->click('#queueWrapper .buttons button.btn-clear-queue');
2016-11-15 07:54:41 +00:00
static::assertEmpty($this->els('#queueWrapper tr.song-item'));
}
}