Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszSzpyt committed Jan 20, 2025
1 parent e493d45 commit 0a54a10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/rollup-test/rollup-prod.withdraw.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* @group rollupWithdrawProd
* @group rollupWithdrawProdSkip
*/
import { jest } from "@jest/globals";
import { WebDriver } from "selenium-webdriver";
Expand Down
12 changes: 3 additions & 9 deletions utils/frontend/rollup-pages/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
buildXpathByText,
clickElement,
elementExists,
hoverElement,
isDisplayed,
waitForElementVisible,
} from "../utils/Helper";
Expand Down Expand Up @@ -42,18 +43,11 @@ export class Main {

async skipWelcomeMessage() {
const welcomeButton = buildXpathByElementText("button", "Start trading");
const welcomeButtonAlternate = buildXpathByElementText("button", "START TRADING");
await sleep(3000);

await waitForElementVisible(this.driver, welcomeButton, 3000);
await hoverElement(this.driver, welcomeButton);
await sleep(500);
await clickElement(this.driver, welcomeButton);

try {
await waitForElementVisible(this.driver, welcomeButtonAlternate, 3000);
await clickElement(this.driver, welcomeButton);
} catch (error) {
//Button not found - no action performed.
}
}

async skipLaunchMessage() {
Expand Down

0 comments on commit 0a54a10

Please sign in to comment.