Skip to content

Commit

Permalink
YOLO delays
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolinicolae committed Jan 23, 2025
1 parent 9235266 commit db581f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
18 changes: 6 additions & 12 deletions test/staging5646.studios04.com.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
import { delay } from "./utils";

describe("staging5646.studios04.com", () => {
this.tags = ["sqrd"];
this.siteKey = "staging5646.studios04.com";

before((browser) => browser.navigateTo("https://staging5646.studios04.com/"));

it("test staging5646.studios04.com", async (browser) => {
await browser
it("test staging5646.studios04.com", (browser) => {
browser
.waitForElementVisible("body")
.assert.titleContains(
"studios04 / La task-force dedicata al tuo successo."
);

await delay(1000);

await browser.assert.screenshotIdenticalToBaseline(
browser.assert.screenshotIdenticalToBaseline(
"body",
`${this.siteKey}-header`
);

expect(await browser.element.find("#hero-title").getText()).to.contain(
expect(browser.element.find("#hero-title").getText()).to.contain(
`oltre i limiti`
);

await browser.element("#booking").moveTo(0, 0);

await delay(2000);
browser.element("#booking").moveTo(0, 0);

await browser
browser
.waitForElementVisible("#booking")
.assert.screenshotIdenticalToBaseline(
"#booking",
Expand Down
1 change: 0 additions & 1 deletion test/utils.js

This file was deleted.

0 comments on commit db581f1

Please sign in to comment.