Skip to content

Commit

Permalink
YDA-5550: UI test for pam user not in iRODS
Browse files Browse the repository at this point in the history
  • Loading branch information
claravox authored Nov 30, 2023
1 parent c4dad2e commit 19c5375
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/features/ui/ui_login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ Feature: Login UI
| user |
| chewbacca@yoda.test |

Scenario Outline: PAM user not in iRODS flow
Given user is not logged in
And the user is at the login gate
When user <user> enters email address
And user <user> logs in
Then user not in Yoda message is shown

Examples:
| user |
| pamuser |


Scenario Outline: Redirected to login page
Given user is not logged in
Expand Down
5 changes: 5 additions & 0 deletions tests/step_defs/ui/test_ui_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def ui_user_incorrect(browser):
assert browser.is_text_present("Username/password was incorrect", wait_time=10)


@then("user not in Yoda message is shown")
def ui_user_not_in_instance(browser):
assert browser.is_element_present_by_id("alert-user-not-in-instance", wait_time=10)


@then(parsers.parse("the user is redirected to page {page}"))
def ui_user_redirected(browser, page):
target = "{}{}".format(portal_url, page)
Expand Down

0 comments on commit 19c5375

Please sign in to comment.