Skip to content

Commit

Permalink
do not wait for oC authorize page
Browse files Browse the repository at this point in the history
remove authorizePage, fix steps
  • Loading branch information
saw-jan committed Feb 18, 2022
1 parent 5a43820 commit 25bc699
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 70 deletions.
1 change: 0 additions & 1 deletion tests/acceptance/features/webUILogin/oauthLogin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Feature: login users
Scenario: admin login
Given the user has browsed to the login page
When the user logs in with username "admin" and password "admin" using the webUI
And the user authorizes access to web
Then the files table should be displayed
And the files table should not be empty

Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/helpers/loginHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = {
await client.page.ocisLoginPage().login(userId, password)
} else {
await client.page.ownCloudLoginPage().login(userId, password)
await client.page.ownCloudAuthorizePage().authorize()
}
await client.page
.webPage()
Expand Down
57 changes: 0 additions & 57 deletions tests/acceptance/pageObjects/ownCloudAuthorizePage.js

This file was deleted.

12 changes: 1 addition & 11 deletions tests/acceptance/stepDefinitions/loginContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Given(/^the user has browsed to the login page$/, () => {
return client.page.loginPage().navigate()
})

Given('the user has clicked the authenticate button', () => client.page.loginPage().authenticate())

When('the user clicks the authenticate button', () => client.page.loginPage().authenticate())

When(
Expand All @@ -33,10 +31,6 @@ When(

When('user {string} logs in using the webUI', (username) => loginHelper.loginAsUser(username))

When('the user authorizes access to web', () => {
return client.page.ownCloudAuthorizePage().authorize()
})

Then('the files table should not be empty', () => {
return (
client.page.FilesPageElement.filesList()
Expand Down Expand Up @@ -110,11 +104,7 @@ Then('the user should be redirected to the user disabled page', function () {
})

Then('the user should be redirected to the IdP login page', function () {
if (client.globals.openid_login) {
return client.page.ocisLoginPage().waitForPage()
}

return client.page.ownCloudAuthorizePage().waitForPage()
return client.page.ocisLoginPage().waitForPage()
})

Then('the user should be redirected to the login error page', function () {
Expand Down

0 comments on commit 25bc699

Please sign in to comment.