More test tweaking

This commit is contained in:
n1474335 2024-03-26 16:10:44 +00:00
parent f1dcc339b3
commit ee77e0a1e4
No known key found for this signature in database
GPG key ID: D15457B7B4AF3F37

View file

@ -194,6 +194,9 @@ module.exports = {
// Open category // Open category
browser browser
.useCss()
.waitForElementNotVisible("#snackbar-container", 10000)
.useXpath()
.click(otherCat) .click(otherCat)
.expect.element(genUUID).to.be.visible; .expect.element(genUUID).to.be.visible;
@ -232,7 +235,7 @@ module.exports = {
browser browser
.waitForElementNotVisible("#snackbar-container") .waitForElementNotVisible("#snackbar-container")
.click("#copy-output") .click("#copy-output")
.waitForElementVisible("#snackbar-container .snackbar-content", 5000, 100, false) .waitForElementVisible("#snackbar-container .snackbar-content")
.expect.element("#snackbar-container .snackbar-content").text.to.equal("Copied raw output successfully."); .expect.element("#snackbar-container .snackbar-content").text.to.equal("Copied raw output successfully.");
// Alert bar disappears after the correct amount of time // Alert bar disappears after the correct amount of time