def test(self):
     page = PlaylistPage(self.driver, self.playlistId)
     page.copy_link()
     self.assertEqual(
         clipboard.paste(),
         self.driver.current_url
     )
 def test(self):
     page = PlaylistPage(self.driver, self.playlistId)
     handles = self.driver.window_handles
     main_window = self.driver.window_handles[0]
     page.vk_share()
     wait_for_new_window(self.driver, handles)
     new_window = self.driver.window_handles[1]
     self.driver.switch_to_window(new_window)
     wait_for_url_to_match(self.driver, '.*vk\.com.*share.*')
     self.driver.switch_to_window(main_window)
    def test(self):
        profile = ProfilePlaylistsPage(self.driver)
        profile.create_playlist("QA")
        playlist_id = profile.get_playlist_id("QA")

        main = MainPage(self.driver)
        main.open()

        track_id = main.get_first_track_id()
        is_added_before = main.press_add_to_playlist(track_id, "QA",
                                                     playlist_id)
        is_added_after = main.press_add_to_playlist(track_id, "QA",
                                                    playlist_id)
        playlist = PlaylistPage(self.driver, playlist_id)
        playlist.delete()
        self.assertNotEqual(is_added_before, is_added_after)
Пример #4
0
 def test(self):
     page = PlaylistPage(self.driver, self.playlistId)
     page.change_name('')
     wait_for_pop_up(self.driver, success=False)
Пример #5
0
 def test(self):
     page = PlaylistPage(self.driver, self.playlistId)
     page.load_image(self.SMALL_IMAGE_PATH)
     wait_for_pop_up(self.driver)
Пример #6
0
 def test(self):
     page = PlaylistPage(self.driver, self.playlistId)
     page.delete()
     wait_for_pop_up(self.driver)
     wait_for_url(self.driver, VIRUSMUSIC_BASE_URL + 'profile/playlists')
 def test(self):
     page = PlaylistPage(self.driver, self.playlistId)
     page.change_name(self.NEW_PLAYLIST_NAME)
     wait_for_pop_up(self.driver)
     self.assertEqual(page.get_name(), self.NEW_PLAYLIST_NAME)