Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszSzpyt committed Jan 20, 2025
1 parent 70f4ee4 commit d0b9213
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/gasp-prod-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ jobs:
--args "-timeout 300s" --browsers 'chrome:119.0;chrome:129.0'
- uses: actions/checkout@v3
with:
ref: ci/temp-prod-fe-branch
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
16 changes: 7 additions & 9 deletions utils/frontend/rollup-pages/Main.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { WebDriver } from "selenium-webdriver";
import { getEnvironmentRequiredVars, sleep } from "../../utils";
import { getEnvironmentRequiredVars } from "../../utils";
import {
buildDataTestIdXpath,
buildXpathByElementText,
buildXpathByText,
clickElement,
elementExists,
hoverElement,
isDisplayed,
waitForElementToDissapear,
waitForElementVisible,
} from "../utils/Helper";

Expand Down Expand Up @@ -44,12 +42,12 @@ export class Main {

async skipWelcomeMessage() {
const welcomeButton = buildXpathByElementText("button", "Start trading");

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

async skipLaunchMessage() {
Expand Down

0 comments on commit d0b9213

Please sign in to comment.