Skip to content

Commit

Permalink
TW-1162: Fix e2e tests. + 'visible' param
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tsx committed Nov 3, 2023
1 parent 60e16a7 commit 9ec9152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/src/utils/search.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const findChildElement = async (
};

export const findElementBySelectors = async (selectors: string, timeout = MEDIUM_TIMEOUT, errorTitle?: string) => {
const element = await BrowserContext.page.waitForSelector(selectors, { timeout }).catch(error => {
const element = await BrowserContext.page.waitForSelector(selectors, { visible: true, timeout }).catch(error => {
if (errorTitle && error instanceof Error) {
error.message = `${errorTitle}\n` + error.message;
}
Expand Down

0 comments on commit 9ec9152

Please sign in to comment.