Skip to content

Commit

Permalink
Set shorter timeout in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Aug 12, 2021
1 parent 1a3014c commit 767ef78
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/acceptance/pageObjects/FilesPageElement/appSideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ module.exports = {
return this.api.page.FilesPageElement.filesList()
},
activatePanel: async function(item) {
const timeout = this.api.globals.waitForNegativeConditionTimeout
await this.waitForElementVisible(this.api.page.personalPage().elements.sideBar)
const active = await this.isPanelActive(item, timeout)
const active = await this.isPanelActive(
item,
this.api.globals.waitForNegativeConditionTimeout
)
if (!active) {
let backBtnVisible = false
const backBtn = this.elements.sidebarBackBtn
await this.isVisible(
{ locateStrategy: backBtn.locateStrategy, selector: backBtn.selector, timeout },
{ locateStrategy: backBtn.locateStrategy, selector: backBtn.selector, timeout: 200 },
result => {
backBtnVisible = result.status === 0
}
Expand Down

0 comments on commit 767ef78

Please sign in to comment.