koel/tests/e2e/PlaylistScreenTest.php
2016-12-02 17:33:28 +07:00

23 lines
531 B
PHP

<?php
namespace E2E;
class PlaylistScreenTest extends TestCase
{
use SongListActions;
public function testPlaylistScreen()
{
$this->loginAndGoTo('songs')
->selectRange()
->createPlaylist('Bar')
->seeText('Bar', '#playlists > ul');
$this->click('#sidebar .playlist:nth-last-child(1)');
$this->see('#playlistWrapper');
$this->click('#playlistWrapper .btn-delete-playlist');
// expect a confirmation
$this->see('.alertify');
}
}