Skip to content

Commit

Permalink
Gasp smoke tests branch back to main (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszSzpyt authored Sep 5, 2024
1 parent 3edb5e2 commit c6cbf10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/gasp-prod-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ jobs:
--args "-timeout 300s" --browsers 'chrome:110.0;chrome:112.0;chrome:114.0'
- uses: actions/checkout@v3
with:
ref: ci/temp-main

- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
9 changes: 5 additions & 4 deletions test/rollup-test/rollup-prod.deposit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ describe("Gasp Prod UI deposit tests", () => {
const isOriginFeeDisplayed = await depositModal.isOriginFeeDisplayed();
expect(isOriginFeeDisplayed).toBeTruthy();

const isNetworkButtonEnabled = await depositModal.isNetworkButtonEnabled();
expect(isNetworkButtonEnabled).toBeTruthy();
// Skip until we have same behaviour on dev and prod
// const isNetworkButtonEnabled = await depositModal.isNetworkButtonEnabled();
// expect(isNetworkButtonEnabled).toBeTruthy();

await depositModal.clickDepositButtonByText(DepositActionType.Network);
await acceptNetworkSwitchInNewWindow(driver);
// await depositModal.clickDepositButtonByText(DepositActionType.Network);
// await acceptNetworkSwitchInNewWindow(driver);

// await depositModal.clickDepositButtonByText(DepositActionType.Approve);
// await waitForActionNotification(driver, TransactionType.ApproveContract);
Expand Down
10 changes: 5 additions & 5 deletions test/rollup-test/rollup-prod.withdraw.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { WebDriver } from "selenium-webdriver";
import { getApi, initApi } from "../../utils/api";
import { DriverBuilder } from "../../utils/frontend/utils/Driver";
import {
acceptNetworkSwitchInNewWindow,
addExtraLogs,
importMetamaskExtension,
uiStringToNumber,
Expand Down Expand Up @@ -94,11 +93,12 @@ describe("Gasp Prod UI withdraw tests", () => {
await withdrawModal.isDestinationFeeDisplayed();
expect(isOriginFeeDisplayed).toBeTruthy();

const isNetworkButtonEnabled = await withdrawModal.isNetworkButtonEnabled();
expect(isNetworkButtonEnabled).toBeTruthy();
// Skip until we have same behaviour on dev and prod
// const isNetworkButtonEnabled = await withdrawModal.isNetworkButtonEnabled();
// expect(isNetworkButtonEnabled).toBeTruthy();

await withdrawModal.clickWithdrawButtonByText(WithdrawActionType.Network);
await acceptNetworkSwitchInNewWindow(driver);
// await withdrawModal.clickWithdrawButtonByText(WithdrawActionType.Network);
// await acceptNetworkSwitchInNewWindow(driver);

await withdrawModal.clickWithdrawButtonByText(WithdrawActionType.Withdraw);
await waitForActionNotification(driver, TransactionType.Withdraw);
Expand Down

0 comments on commit c6cbf10

Please sign in to comment.