forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request galaxyproject#13504 from jmchilton/export_test_sele
Integration end-to-end test for PDF export.
- Loading branch information
Showing
6 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from .framework import ( | ||
selenium_test, | ||
SeleniumIntegrationTestCase, | ||
) | ||
|
||
|
||
class PagesPdfExportSeleniumIntegrationTestCase(SeleniumIntegrationTestCase): | ||
ensure_registered = True | ||
|
||
@classmethod | ||
def handle_galaxy_config_kwds(cls, config): | ||
config["enable_beta_markdown_export"] = True | ||
|
||
@selenium_test | ||
def test_page_pdf_export(self): | ||
self.navigate_to_pages() | ||
self.screenshot("pages_grid") | ||
name = self.create_page( | ||
content_format="Markdown", | ||
) | ||
self.click_grid_popup_option(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) | ||
self.screenshot("pages_markdown_editor_content") | ||
self.components.pages.editor.save.wait_for_and_click() | ||
self.screenshot("pages_markdown_editor_saved") | ||
self.sleep_for(self.wait_types.UX_RENDER) | ||
self.navigate_to_pages() | ||
self.click_grid_popup_option(name, "View") | ||
self.screenshot("pages_view_simple") | ||
self.components.pages.export.wait_for_and_click() | ||
self.sleep_for(self.wait_types.UX_RENDER) |