Skip to content

Commit

Permalink
Updating checkPatternExistence selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hayward committed Oct 20, 2023
1 parent 8cf6edb commit 249911b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
const checkPatternExistence = async ( name, available = true ) => {
await searchForPattern( name );
const patternElement = await page.waitForXPath(
`//div[@role = 'option']//div[contains(text(), '${ name }')]`,
`//div[@role = 'button']//div[contains(text(), '${ name }')]`,
{ timeout: 5000, visible: available, hidden: ! available }
);
const patternExists = !! patternElement;
Expand Down

0 comments on commit 249911b

Please sign in to comment.