<?php
class C03_Station_PlaylistsCest extends CestAbstract
{
    /**
     * @before setupComplete
     * @before login
     */
    public function editPlaylists(FunctionalTester $I)
    {
        $I->wantTo('Create a station playlist.');

        $station_id = $this->test_station->getId();
        $I->amOnPage('/station/'.$station_id.'/playlists');

        $I->see('Playlists');
        $I->click('add', '#content');

        $I->submitForm('.form', [
            'name'          => 'Default Playlist',
        ]);

        $I->seeCurrentUrlEquals('/station/'.$station_id.'/playlists');

        $I->see('Default Playlist');

        $I->click(\Codeception\Util\Locator::lastElement('.btn-danger'));

        $I->seeCurrentUrlEquals('/station/'.$station_id.'/playlists');

        $I->dontSee('Default Playlist');
    }
}

<?php

class C03_Station_PlaylistsCest extends CestAbstract
{
    /**
     * @before setupComplete
     * @before login
     */
    public function editPlaylists(FunctionalTester $I)
    {
        $I->wantTo('Create a station playlist.');

        $station_id = $this->test_station->getId();
        $I->amOnPage('/station/' . $station_id . '/playlists');

        $I->see('Playlists');
    }
}

Remove previous Playlists pages from test suite.
Remove previous Playlists pages from test suite.

