Skip to content

Commit

Permalink
DBTP-681 Fix smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed May 31, 2024
1 parent c405363 commit 7c369e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion smoke_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ case "${target}" in
host="http://localhost:8080"
;;
*)
host="https://v2.demodjango.${target}.uktrade.digital/"
host="https://internal.${target}.demodjango.uktrade.digital/"
;;
esac

Expand Down
10 changes: 5 additions & 5 deletions tests/smoke/test_landing_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from app.views import (
ALL_CHECKS,
CELERY,
BEAT,
GIT_INFORMATION,
OPENSEARCH,
POSTGRES_AURORA,
POSTGRES_RDS,
REDIS,
S3,
Expand All @@ -35,10 +35,6 @@ def test_page_loads_with_title_and_has_success_ticks(page: Page):
page.get_by_test_id(slugify(ALL_CHECKS[POSTGRES_RDS]))
).to_have_text(re.compile(STATUS_SUCCESS))

expect(
page.get_by_test_id(slugify(ALL_CHECKS[POSTGRES_AURORA]))
).to_have_text(re.compile(STATUS_SUCCESS))

expect(
page.get_by_test_id(slugify(ALL_CHECKS[REDIS]))
).to_have_text(re.compile(STATUS_SUCCESS))
Expand All @@ -55,6 +51,10 @@ def test_page_loads_with_title_and_has_success_ticks(page: Page):
page.get_by_test_id(slugify(ALL_CHECKS[CELERY]))
).to_have_text(re.compile(STATUS_SUCCESS))

expect(
page.get_by_test_id(slugify(ALL_CHECKS[BEAT]))
).to_have_text(re.compile(STATUS_SUCCESS))

expect(
page.get_by_test_id(slugify(ALL_CHECKS[HTTP_CONNECTION]))
).to_have_text(re.compile(STATUS_SUCCESS))

0 comments on commit 7c369e8

Please sign in to comment.