Skip to content

Commit

Permalink
try : pa11y no error
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitloup committed Sep 21, 2023
1 parent 3631e52 commit 05ef9e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ jobs:
message: '<details><summary>Pa11y testing results</summary>```${{ steps.pa11y_output.outputs.content }}```</details>'

- 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: '<details><summary>Pa11y testing results</summary>OK</details>'
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: '<details><summary>Pa11y testing results</summary>OK</details>'

- name: Check for pa11y failures.
if: contains(steps.pa11y_output.outputs.content, 'Errors in http://')
Expand Down
9 changes: 8 additions & 1 deletion pod/main/integration_tests/selenium_pod_integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 05ef9e2

Please sign in to comment.