From db4f530a57782ef8bae43fa77fff8ed8c0557c8d Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 8 Mar 2022 11:49:01 -0500 Subject: [PATCH 1/2] Integration test for PDF export. --- .github/workflows/integration_selenium.yaml | 1 + client/src/components/Markdown/Markdown.vue | 4 +-- lib/galaxy/selenium/navigates_galaxy.py | 26 +++++++++++++++ lib/galaxy/selenium/navigation.yml | 3 +- lib/galaxy_test/selenium/test_pages.py | 21 +----------- .../test_pages_pdf_export.py | 33 +++++++++++++++++++ 6 files changed, 65 insertions(+), 23 deletions(-) create mode 100644 test/integration_selenium/test_pages_pdf_export.py diff --git a/.github/workflows/integration_selenium.yaml b/.github/workflows/integration_selenium.yaml index 20cbd35f226..8f7afbc5aea 100644 --- a/.github/workflows/integration_selenium.yaml +++ b/.github/workflows/integration_selenium.yaml @@ -13,6 +13,7 @@ env: GALAXY_TEST_SELENIUM_RETRIES: 1 YARN_INSTALL_OPTS: --frozen-lockfile GALAXY_CONFIG_SQLALCHEMY_WARN_20: '1' + GALAXY_DEPENDENCIES_INSTALL_WEASYPRINT: '1' concurrency: group: integration-selenium-${{ github.ref }} cancel-in-progress: true diff --git a/client/src/components/Markdown/Markdown.vue b/client/src/components/Markdown/Markdown.vue index 5ede5d719d6..66b878e2b70 100644 --- a/client/src/components/Markdown/Markdown.vue +++ b/client/src/components/Markdown/Markdown.vue @@ -5,7 +5,7 @@
Date: Wed, 9 Mar 2022 09:43:08 -0500 Subject: [PATCH 2/2] Update test/integration_selenium/test_pages_pdf_export.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David López <46503462+davelopez@users.noreply.github.com> --- test/integration_selenium/test_pages_pdf_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration_selenium/test_pages_pdf_export.py b/test/integration_selenium/test_pages_pdf_export.py index 5d2dd103261..25ebc874630 100644 --- a/test/integration_selenium/test_pages_pdf_export.py +++ b/test/integration_selenium/test_pages_pdf_export.py @@ -12,7 +12,7 @@ class PagesPdfExportSeleniumIntegrationTestCase(SeleniumIntegrationTestCase): config["enable_beta_markdown_export"] = True @selenium_test - def test_history_import_export(self): + def test_page_pdf_export(self): self.navigate_to_pages() self.screenshot("pages_grid") name = self.create_page(