Skip to content

Commit

Permalink
Add extra visibility checks
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Dec 20, 2024
1 parent afa1850 commit 39964c5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/e2e-tests/src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ export class ChannelContextMenu {
`Channel context menu couldn't be located within timeout`,
500
)
await this.driver.wait(
until.elementIsVisible(menu),
15_000,
`Channel context menu was not visibile within timeout`,
500
)
await menu.click()
}

Expand All @@ -229,6 +235,12 @@ export class ChannelContextMenu {
`Channel context menu channel deletion modal couldn't be located within timeout`,
500
)
await this.driver.wait(
until.elementIsVisible(tab),
15_000,
`Channel context menu channel deletion tab was not visibile within timeout`,
500
)
await tab.click()
}

Expand All @@ -240,6 +252,12 @@ export class ChannelContextMenu {
`Channel deletion button couldn't be located within timeout`,
500
)
await this.driver.wait(
until.elementIsVisible(button),
15_000,
`Channel context menu delete channel button was not visibile within timeout`,
500
)
await button.click()
await sleep(5000)
}
Expand Down

0 comments on commit 39964c5

Please sign in to comment.