Skip to content

Commit

Permalink
add step implementation for oauth2 login
Browse files Browse the repository at this point in the history
  • Loading branch information
Salipa-Gurung committed Sep 18, 2023
1 parent 7b102e9 commit dcd06ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/gui/shared/scripts/pageObjects/EnterPassword.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def enterPassword(password):
squish.clickButton(squish.waitForObject(EnterPassword.LOGIN_BUTTON))

@staticmethod
def oidcReLogin(username, password, login_type=None):
def oidcReLogin(username, password, login_type='oidc'):
# wait 500ms for copy button to fully load
squish.snooze(1 / 2)
squish.clickButton(
Expand Down
5 changes: 5 additions & 0 deletions test/gui/shared/steps/account_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,8 @@ def step(context, username):
EnterPassword.oidcReLogin(
username, getPasswordForUser(username), login_type='oauth'
)


@When('the user starts the client')
def step(context):
startClient()
4 changes: 2 additions & 2 deletions test/gui/tst_loginLogout/test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ Feature: Logout users
| server | %local_server% |
| user | Alice |
| password | 1234 |
When user quits the client
And user starts the client
And the user quits the client
When the user starts the client
Then user "Alice" should be connect to the client-UI

0 comments on commit dcd06ad

Please sign in to comment.