Skip to content

Commit

Permalink
Merge pull request #82 from qld-gov-au/QOLDEV-640-logout-caching
Browse files Browse the repository at this point in the history
QOLDEV-640 update scenario tests to handle POST-style logout
  • Loading branch information
ThrawnCA authored Nov 15, 2023
2 parents ba86196 + 21150ff commit 148fc2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CKAN_GIT_VERSION=$CKAN_VERSION
CKAN_GIT_ORG=qld-gov-au

if [ "$CKAN_VERSION" = "2.10" ]; then
CKAN_GIT_VERSION=ckan-2.10.1-qgov.4
CKAN_GIT_VERSION=ckan-2.10.1-qgov.10
PYTHON_VERSION=py3
PYTHON="${PYTHON}3"
else
Expand Down
4 changes: 2 additions & 2 deletions test/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def log_in_directly(context):
assert context.persona, "A persona is required to log in, found [{}] in context. Have you configured the personas in before_scenario?".format(context.persona)
context.execute_steps(u"""
When I attempt to log in with password "$password"
Then I should see an element with xpath "//a[@title='Log out']"
Then I should see an element with xpath "//*[@title='Log out']/i[contains(@class, 'fa-sign-out')]"
""")


Expand Down Expand Up @@ -513,7 +513,7 @@ def go_to_admin_config(context):
@when(u'I log out')
def log_out(context):
context.execute_steps(u"""
When I visit "/user/_logout"
When I press the element with xpath "//*[@title='Log out']"
Then I should see "Log in"
""")

Expand Down

0 comments on commit 148fc2a

Please sign in to comment.