def test_results_pagination(self, _application): home_page = HomePage(driver=self.driver) home_page.open() home_page.enter_query("select unnest(array[1, 2, 3]) as numbers") home_page.click_run() home_page.change_results_pagination(page=1, results_per_page=2) assert home_page.read_result_headers() == ["numbers"] assert home_page.read_result_rows() == [["1"], ["2"]] home_page.change_results_pagination(page=2, results_per_page=2) assert home_page.read_result_headers() == ["numbers"] assert home_page.read_result_rows() == [["3"]]
def test_results_pagination(self, _application): home_page = HomePage( driver=self.driver, base_url="http://dataworkspace.test:8000/data-explorer") home_page.open() home_page.enter_query("select unnest(array[1, 2, 3]) as numbers") home_page.click_run() home_page.change_results_pagination(page=1, results_per_page=2) assert home_page.read_result_headers() == ['numbers'] assert home_page.read_result_rows() == [["1"], ["2"]] home_page.change_results_pagination(page=2, results_per_page=2) assert home_page.read_result_headers() == ['numbers'] assert home_page.read_result_rows() == [["3"]]