From 05ef9e2218be13d4959badc21e9b42e4404faf17 Mon Sep 17 00:00:00 2001 From: Ptitloup Date: Thu, 21 Sep 2023 14:07:37 +0200 Subject: [PATCH] try : pa11y no error --- .github/workflows/pod.yml | 14 ++++++++------ .../selenium_pod_integration_tests.py | 9 ++++++++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pod.yml b/.github/workflows/pod.yml index 491a63d723..b4e072d44f 100644 --- a/.github/workflows/pod.yml +++ b/.github/workflows/pod.yml @@ -127,12 +127,14 @@ jobs: message: '
Pa11y testing results```${{ steps.pa11y_output.outputs.content }}```
' - name: Comment on pull request. - run: echo '${{ steps.pa11y_output.outputs.content }}' - # if: ${{ contains(steps.pa11y_output.outputs.content, 'Errors in http://') == 'false' }} - # uses: thollander/actions-comment-pull-request@v2 - # with: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # message: '
Pa11y testing resultsOK
' + run: echo '${{ steps.pa11y_output.outputs.content }}' + + - name: Comment Pa11y Ok + if: ${{ !contains(steps.pa11y_output.outputs.content, 'Errors in http://') }} + uses: thollander/actions-comment-pull-request@v2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + message: '
Pa11y testing resultsOK
' - name: Check for pa11y failures. if: contains(steps.pa11y_output.outputs.content, 'Errors in http://') diff --git a/pod/main/integration_tests/selenium_pod_integration_tests.py b/pod/main/integration_tests/selenium_pod_integration_tests.py index 6f425124c2..c6b25ceb56 100644 --- a/pod/main/integration_tests/selenium_pod_integration_tests.py +++ b/pod/main/integration_tests/selenium_pod_integration_tests.py @@ -6,21 +6,28 @@ class PodSeleniumTests(StaticLiveServerTestCase): + """Tests the integration of Pod application with Selenium from side files""" fixtures = ["initial_data.json"] @classmethod def setUpClass(cls): + """Create the driver for all selenium tests.""" super().setUpClass() cls.selenium = WebDriver() cls.selenium.implicitly_wait(10) @classmethod def tearDownClass(cls): + """Close the driver used.""" cls.selenium.quit() super().tearDownClass() - def test_home(self): + def Test_selenium_suites(self): + """Run a set of Selenium Test Suites from Side files""" print(self.live_server_url) self.selenium.get(f"{self.live_server_url}/") print(self.selenium.title) assert "Welcome" in self.selenium.page_source + + def run_suite(self, suite_name): + pass