Fix page pdf export test case

This commit is contained in:
guerler
2024-02-19 17:11:38 -05:00
parent 4cc5766571
commit fa9720437a
@@ -16,10 +16,8 @@ class TestPagesPdfExportSeleniumIntegration(SeleniumIntegrationTestCase):
def test_page_pdf_export(self):
self.navigate_to_pages()
self.screenshot("pages_grid")
self.create_page()
self.components.pages.drop.wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)
self.components.pages.drop_edit.wait_for_and_click()
page_name = self.create_page()
self.select_grid_operation(page_name, "Edit content")
self.components.pages.editor.markdown_editor.wait_for_and_send_keys("moo\n\n\ncow\n\n")
self.screenshot("pages_markdown_editor")
self.sleep_for(self.wait_types.UX_RENDER)
@@ -28,9 +26,7 @@ class TestPagesPdfExportSeleniumIntegration(SeleniumIntegrationTestCase):
self.screenshot("pages_markdown_editor_saved")
self.sleep_for(self.wait_types.UX_RENDER)
self.navigate_to_pages()
self.components.pages.drop.wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)
self.components.pages.drop_view.wait_for_and_click()
self.select_grid_operation(page_name, "View")
self.screenshot("pages_view_simple")
self.components.pages.export.wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)