Skip to content

Commit

Permalink
added test_scubagoggles_report pytest with selenium; testing Baseline…
Browse files Browse the repository at this point in the history
…Reports.html successfully so far
  • Loading branch information
mitchelbaker-cisa committed Aug 1, 2024
1 parent 2b21310 commit 11117a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ jobs:
json: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

- name: Execute ScubaGoggles and check for correct output
run: pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}" --domain="${{ secrets.GWS_DOMAIN }}"
run: |
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}" --domain="${{ secrets.GWS_DOMAIN }}"
2 changes: 1 addition & 1 deletion Testing/Functional/SmokeTests/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_scubagoggles_output(self, subjectemail):
def test_scubagoggles_report(self, browser, domain):
try:
output_path: str = get_output_path()
browser.get(os.path.join(output_path, "BaselineReports.html"))
browser.get("file://" + os.path.join(output_path, "BaselineReports.html"))

h1 = browser.find_element(By.TAG_NAME, "h1").text
assert h1 == "SCuBA GWS Security Baseline Conformance Reports"
Expand Down

0 comments on commit 11117a1

Please sign in to comment.