def setUp(self): super().setUp() page = ProfilePlaylistsPage(self.driver) page.create_playlist(PLAYLIST_NAME) wait_for_pop_up(self.driver) page.wait_for_playlist(PLAYLIST_NAME) self.playlistId = page.get_playlist_id(PLAYLIST_NAME)
def test(self): page = ProfilePlaylistsPage(self.driver) page.create_playlist('') wait_for_pop_up(self.driver, success=False)