Skip to content

Commit

Permalink
[QOLDEV-1005] update scenario test expectations to handle Bootstrap t…
Browse files Browse the repository at this point in the history
…itle attribute
  • Loading branch information
ThrawnCA committed Nov 14, 2024
1 parent 046ab85 commit 1eb5125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if: always()

- name: Upload screenshots
if: failure()
if: always()
uses: actions/upload-artifact@v4
with:
name: CKAN ${{ matrix.ckan-version }} screenshots
Expand Down
5 changes: 3 additions & 2 deletions test/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ 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)
logout_link = "*[@title='Log out' or @data-bs-title='Log out']/i[contains(@class, 'fa-sign-out')]"
context.execute_steps(u"""
When I attempt to log in with password "$password"
Then I should see an element with xpath "//*[@title='Log out']/i[contains(@class, 'fa-sign-out')]"
""")
Then I should see an element with xpath "//{}"
""".format(logout_link))


@when(u'I attempt to log in with password "{password}"')
Expand Down

0 comments on commit 1eb5125

Please sign in to comment.