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