import allure import pytest @pytest.mark.usefixtures("app") class TestTopChartsSpotifyTabStickyHeader: @pytest.mark.parametrize("tab", ["Daily", "Weekly"] ) @allure.title("[AP-8916][Top Charts] Spotify Top 200. Sticky header verification. steps 1-6 ") @allure.description("TC Verifies: Sticky headers on the Top Charts → Spotify Top 200") @allure.testcase("https://data-analytics.atlassian.net/browse/AP-9944") @pytest.mark.regression def test_top_charts_spotify_sticky_header(self, tab): self.login_page.login() self.app.go_to(self.top_charts_spotify_tab.url) self.top_charts_page.spotify_tab.is_selected() self.top_charts_page.spotify_tab.click() self.top_charts_spotify_tab.switch_sub_tab(tab) # step 1-2 self.top_charts_spotify_tab.scroll_down() self.top_charts_spotify_tab.verify_sticky_header(tab) # step 3 self.top_charts_spotify_tab.verify_table_sorting() # step 4 self.top_charts_spotify_tab.back_to_top_button.exists() self.top_charts_spotify_tab.back_to_top_button.click() # step 5 self.top_charts_spotify_tab.header_sticky.not_exist() self.top_charts_spotify_tab.header_non_sticky.exists() # step 6 self.top_charts_spotify_tab.page.mouse.wheel(0, 1000) self.top_charts_spotify_tab.verify_sticky_header(tab) self.top_charts_spotify_tab.back_to_top_button.click() self.top_charts_spotify_tab.header_sticky.not_exist() self.top_charts_spotify_tab.header_non_sticky.exists() @pytest.mark.parametrize("tab", ["Daily", "Weekly"] ) @allure.title("[AP-8916][Top Charts] Spotify Top 200. Sticky header verification. step 7") @allure.description("TC Verifies: Sticky headers on the Top Charts → Spotify Top 200") @allure.testcase("https://data-analytics.atlassian.net/browse/AP-9943") @pytest.mark.regression def test_top_charts_spotify_sticky_header_step7(self, tab): self.login_page.login() self.app.go_to(self.top_charts_spotify_tab.url) self.top_charts_page.spotify_tab.is_selected() self.top_charts_page.spotify_tab.click() self.top_charts_spotify_tab.switch_sub_tab(tab) # step 7 self.top_charts_spotify_tab.select_date('01/05/23', tab) self.top_charts_spotify_tab.select_market('United States') self.top_charts_spotify_tab.scroll_down() self.top_charts_spotify_tab.verify_sticky_header(tab) self.top_charts_spotify_tab.verify_table_sorting()