Ejemplo n.º 1
0
    def test(self):
        page = MainPage(self.driver)
        page.open()

        page.enter_search("One And")
        page.search_result("track", "One And")
        page.get_current_id()
Ejemplo n.º 2
0
 def test(self):
     page = MainPage(self.driver)
     page.open()
     track_id = page.get_first_track_id()
     player_pos_before = page.get_player_pos()
     page.play(track_id)
     player_pos_after = page.get_player_pos()
     self.assertNotEqual(player_pos_after, player_pos_before)
Ejemplo n.º 3
0
    def test(self):
        page = MainPage(self.driver)
        page.open()

        page.enter_search("Black Ant")
        page.search_result("artist", "Black Ant")
        utils.wait_for_url(self.driver, "https://virusmusic.fun/artist/8")
Ejemplo n.º 4
0
    def test(self):
        page = MainPage(self.driver)
        page.open()

        page.enter_search("handmade")
        page.search_result("album", "#handmade")
        utils.wait_for_url(self.driver, "https://virusmusic.fun/album/8")
Ejemplo n.º 5
0
    def test(self):
        page = MainPage(self.driver)
        page.open()

        page.enter_search("An")
        page.press_search_button()

        utils.wait_for_url(self.driver, "https://virusmusic.fun/search/An")
    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)
Ejemplo n.º 7
0
    def test(self):
        page = MainPage(self.driver)
        page.open()

        page.enter_search("ыыыыыыыыы")
        page.wait_for_not_found_search()
Ejemplo n.º 8
0
 def test(self):
     page = MainPage(self.driver)
     page.open()
     track_id = page.get_first_track_id()
     page.play(track_id)
     page.cycle()
     page.play_track_in_queue(9)
     page.play_next()
     cur_id = page.get_current_id()
     self.assertEqual(cur_id, track_id)
Ejemplo n.º 9
0
 def test(self):
     page = MainPage(self.driver)
     page.open()
     track_id = page.get_first_track_id()
     page.play(track_id)
     page.play_next()
     next_track_before = page.get_current_id()
     page.play_prev()
     page.shuffle()
     next_track_after = page.play_next()
     self.assertNotEqual(next_track_before, next_track_after)
Ejemplo n.º 10
0
 def test(self):
     page = MainPage(self.driver)
     page.open()
     track_id = page.get_first_track_id()
     page.play(track_id)
     page.play_track_in_queue(3)
     current_before = page.get_current_id()
     page.play_prev()
     current_after = page.get_current_id()
     self.assertNotEqual(current_before, current_after)
Ejemplo n.º 11
0
 def test(self):
     page = MainPage(self.driver)
     page.open()
     track_id = page.get_first_track_id()
     page.play(track_id)
     self.assertTrue(page.queue_contains(track_id))
     page.remove_from_queue(track_id)
     self.assertFalse(page.queue_contains(track_id))
Ejemplo n.º 12
0
    def test(self):
        page = MainPage(self.driver)
        page.open()
        track_id = page.get_first_track_id()

        is_liked_before = page.is_liked(track_id)
        page.press_track_like_button(track_id)
        is_liked_after = page.is_liked(track_id)
        #  unlike again
        page.press_track_like_button(track_id)
        self.assertNotEqual(is_liked_before, is_liked_after)