Skip to content

Commit

Permalink
Fe e2e liq id locators updates (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszSzpyt authored Oct 30, 2024
1 parent 5746ba7 commit 89e5935
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/gasp-prod-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,18 @@ jobs:
testmo report: https://mangata-finance.testmo.net/automation/runs/view/${{needs.setup-report.outputs.testmo-run-id}}"
GITHUB_REF: "https://mangata-finance.github.io/mangata-e2e/${{ github.run_number }}"

# slack-notify-nook:
# needs: [e2e-tm]
# if: failure()
# runs-on: ubuntu-latest

# steps:
# - name: Slack Notification - Error
# uses: bryannice/[email protected]
# env:
# SLACK_INCOMING_WEBHOOK: ${{ secrets.STG_SLACK_WEBHOOK }}
# SLACK_TITLE: "PROD GASP smoke UI tests - results - NOOK"
# SLACK_COLOR: "#ff0011"
# SLACK_MESSAGE: "Test failures [ ${{ env.TEST_SCRIPT }} ]
# testmo report: https://mangata-finance.testmo.net/automation/runs/view/${{needs.setup-report.outputs.testmo-run-id}}"
# GITHUB_REF: "https://mangata-finance.github.io/mangata-e2e/${{ github.run_number }}"
slack-notify-nook:
needs: [e2e-tm]
if: failure()
runs-on: ubuntu-latest

steps:
- name: Slack Notification - Error
uses: bryannice/[email protected]
env:
SLACK_INCOMING_WEBHOOK: ${{ secrets.STG_SLACK_WEBHOOK }}
SLACK_TITLE: "PROD GASP smoke UI tests - results - NOOK"
SLACK_COLOR: "#ff0011"
SLACK_MESSAGE: "Test failures [ ${{ env.TEST_SCRIPT }} ]
testmo report: https://mangata-finance.testmo.net/automation/runs/view/${{needs.setup-report.outputs.testmo-run-id}}"
GITHUB_REF: "https://mangata-finance.github.io/mangata-e2e/${{ github.run_number }}"
2 changes: 1 addition & 1 deletion test/rollup-test/rollup-main.my-positions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let acc_addr_short = "";
const ETH_ASSET_NAME = "ETH";
const GASP_ASSET_NAME = "GASPV2";

describe("Gasp UI swap tests", () => {
describe("Gasp UI my positions tests", () => {
let sidebar: Sidebar;
let myPositionsPage: MyPositionsPage;

Expand Down
12 changes: 12 additions & 0 deletions utils/frontend/rollup-pages/MyPositionsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export class MyPositionsPage {
}

async isLiqPoolDisplayed(firstTokenName: string, secondTokenName: string) {
const PoolName = firstTokenName + " / " + secondTokenName;
const xpath = buildXpathByElementText("span", PoolName);
return isDisplayed(this.driver, xpath);
}

async isLiqPoolDisplayedIds(firstTokenName: string, secondTokenName: string) {
const PoolName = "pool-" + firstTokenName + "-" + secondTokenName;
const itemXpath = buildDataTestIdXpath(PoolName);
return isDisplayed(this.driver, itemXpath);
Expand All @@ -73,6 +79,12 @@ export class MyPositionsPage {
}

async clickPoolPosition(firstTokenName: string, secondTokenName: string) {
const PoolName = firstTokenName + " / " + secondTokenName;
const xpath = buildXpathByElementText("span", PoolName);
await clickElement(this.driver, xpath);
}

async clickPoolPositionHref(firstTokenName: string, secondTokenName: string) {
const PoolName = "/positions/" + firstTokenName + "-" + secondTokenName;
const hrefXpath = buildHrefXpath(PoolName);
await clickElement(this.driver, hrefXpath);
Expand Down

0 comments on commit 89e5935

Please sign in to comment.