From 0a54a10b891d1c4355221a0fb1c3a7fd0af7c5a4 Mon Sep 17 00:00:00 2001 From: MariuSZ Date: Mon, 20 Jan 2025 12:06:30 +0100 Subject: [PATCH] test4 --- test/rollup-test/rollup-prod.withdraw.test.ts | 2 +- utils/frontend/rollup-pages/Main.ts | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/test/rollup-test/rollup-prod.withdraw.test.ts b/test/rollup-test/rollup-prod.withdraw.test.ts index 18394e2cb..169afe645 100644 --- a/test/rollup-test/rollup-prod.withdraw.test.ts +++ b/test/rollup-test/rollup-prod.withdraw.test.ts @@ -1,6 +1,6 @@ /* * - * @group rollupWithdrawProd + * @group rollupWithdrawProdSkip */ import { jest } from "@jest/globals"; import { WebDriver } from "selenium-webdriver"; diff --git a/utils/frontend/rollup-pages/Main.ts b/utils/frontend/rollup-pages/Main.ts index b67d9f651..c0c7a2a3c 100644 --- a/utils/frontend/rollup-pages/Main.ts +++ b/utils/frontend/rollup-pages/Main.ts @@ -6,6 +6,7 @@ import { buildXpathByText, clickElement, elementExists, + hoverElement, isDisplayed, waitForElementVisible, } from "../utils/Helper"; @@ -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() {