-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8737 from LedgerHQ/support/qaa-383
[QAA-383] Swap tests - Entry points
- Loading branch information
Showing
7 changed files
with
205 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
import { step } from "tests/misc/reporters/step"; | ||
import { AppPage } from "tests/page/abstractClasses"; | ||
|
||
export class AssetPage extends AppPage { | ||
private stakeButton = this.page.getByTestId("asset-page-stake-button"); | ||
private buyButton = this.page.getByTestId("asset-page-buy-button"); | ||
private swapButton = this.page.getByTestId("asset-page-swap-button"); | ||
|
||
@step("Start stake flow") | ||
async startStakeFlow() { | ||
await this.stakeButton.click(); | ||
await this.page.getByText("Choose Account").waitFor({ state: "visible" }); | ||
} | ||
|
||
@step("Start buy flow") | ||
async startBuyFlow() { | ||
await this.buyButton.click(); | ||
} | ||
|
||
@step("Start swap flow") | ||
async startSwapFlow() { | ||
await this.swapButton.click(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters