Skip to content

Commit

Permalink
try e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed May 21, 2024
1 parent 46ef85e commit 21fa1b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/remix-ide-e2e/src/tests/runAndDeploy_injected.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ const checkAlerts = function (browser: NightwatchBrowser){
browser.end()
}
})
browser.isVisible({
selector: '//*[contains(.,"Introducing the ")]',
locateStrategy: 'xpath',
suppressNotFoundErrors: true,
timeout: 3000
}, (okVisible) => {
if (okVisible.value) {
browser.waitForElementVisible('*[data-testid="popover-close"]')
.click('*[data-testid="popover-close"]')
browser.end()
}
})
}

module.exports = {
Expand Down

0 comments on commit 21fa1b9

Please sign in to comment.