2016-11-18 07:56:18 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace E2E;
|
|
|
|
|
|
|
|
class PlaylistScreenTest extends TestCase
|
|
|
|
{
|
|
|
|
use SongListActions;
|
|
|
|
|
|
|
|
public function testPlaylistScreen()
|
|
|
|
{
|
2016-11-23 13:22:47 +00:00
|
|
|
$this->loginAndGoTo('songs')
|
2016-11-18 07:56:18 +00:00
|
|
|
->selectRange()
|
|
|
|
->createPlaylist('Bar');
|
|
|
|
|
2016-11-23 13:22:47 +00:00
|
|
|
$this->waitUntilTextSeenIn('Bar', '#playlists > ul');
|
2016-11-18 07:56:18 +00:00
|
|
|
|
|
|
|
$this->click('#sidebar .playlist:nth-last-child(1)');
|
2016-11-23 13:22:47 +00:00
|
|
|
$this->waitUntilSeen('#playlistWrapper');
|
2016-11-18 07:56:18 +00:00
|
|
|
|
|
|
|
$this->click('#playlistWrapper .btn-delete-playlist');
|
|
|
|
// expect a confirmation
|
2016-11-23 13:22:47 +00:00
|
|
|
$this->waitUntilSeen('.sweet-alert');
|
2016-11-18 07:56:18 +00:00
|
|
|
}
|
|
|
|
}
|