-
Notifications
You must be signed in to change notification settings - Fork 357
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 #8879 from LedgerHQ/support/QAA-420
[QAA-420] - Adding e2e test - reset app
- Loading branch information
Showing
8 changed files
with
90 additions
and
3 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
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
20 changes: 20 additions & 0 deletions
20
apps/ledger-live-desktop/tests/page/modal/settings.modal.ts
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { expect } from "@playwright/test"; | ||
import { Modal } from "../../component/modal.component"; | ||
import { step } from "tests/misc/reporters/step"; | ||
|
||
export class SettingsModal extends Modal { | ||
readonly warningMessage = this.page.getByTestId("warning-message"); | ||
|
||
@step("Check Reset Modal") | ||
async checkResetModal() { | ||
await expect(this.title).toHaveText("Reset Ledger Live"); | ||
await expect(this.warningMessage).toHaveText( | ||
"Resetting Ledger Live will erase your swap transaction history for all your accounts.", | ||
); | ||
} | ||
|
||
@step("Click on Confirm Button") | ||
async clickOnConfirmButton() { | ||
await this.confirmButton.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
38f7d5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Testing with 'Nitrogen' ✅ 2 txs ❌ 1 txs ($8.10) ⏲ 81.2s
❌ 1 mutation errors
Details of the 3 mutations
Spec Algorand (6)
Details of the 2 uncovered mutations
Spec Algorand (2)
Portfolio ($8.10) – Details of the 1 currencies
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
Performance ⏲ 81.2s
Time spent for each spec: (total across mutations)