-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ui test for crypto payment flow initiation and return (#1933)
* add new ui tests for annual and monthly billing options * add new element identifiers for downgrade details modal * add test to downgrade subscription plan * address pr feedback * add test for returning to pay crypto invoice * fix misc mistakes * re-add accidentally removed test steps * Apply suggestions from code review * lingui extract Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Co-authored-by: GitHub Actions <actions@github.com>
- Loading branch information
1 parent
a3b9963
commit bac2ead
Showing
14 changed files
with
167 additions
and
23 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
24 changes: 24 additions & 0 deletions
24
packages/files-ui/cypress/support/page-objects/modals/billing/cryptoPaymentModal.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,24 @@ | ||
export const cryptoPaymentModal = { | ||
body: () => cy.get("[data-testid=modal-container-cryptoPayment]", { timeout: 10000 }), | ||
closeButton: () => cy.get("[data-testid=button-close-modal-cryptoPayment]"), | ||
payWithCryptoHeader: () => cy.get("[data-cy=header-pay-with-crypto]"), | ||
cryptoPaymentTimer: () => cy.get("[data-cy=container-crypto-time-remaining]"), | ||
totalLabel: () => cy.get("[data-cy=label-total-crypto-title]", { timeout: 10000 }), | ||
totalPriceLabel: () => cy.get("[data-cy=label-total-crypto-price]"), | ||
crypoPaymentErrorLabel: () => cy.get("[data-cy=label-crypto-payment-error]"), | ||
selectCryptocurrencyLabel: () => cy.get("[data-cy=label-select-cryptocurrency]"), | ||
cryptoPaymentButton: () => cy.get("[data-cy=container-crypto-payment-option]"), | ||
|
||
// elements below only shown after crypto payment button has been clicked | ||
receivingQrCodeContainer: () => cy.get("[data-cy=container-qr-code]"), | ||
currencyTypeWarning: () => cy.get("[data-cy=label-currency-type-warning]"), | ||
destinationAddressLabelTitle: () => cy.get("[data-cy=label-destination-address-title]"), | ||
destinationAddressLabel: () => cy.get("[data-cy=label-destination-address]"), | ||
cryptoAmountTitleLabel: () => cy.get("[data-cy=label-crypto-amount-title]"), | ||
cryptoAmountLabel: () => cy.get("[data-cy=label-crypto-amount]"), | ||
crypoFinalSaleWarningLabel: () => cy.get("[data-cy=label-crypto-final-sale-warning]"), | ||
goBackButton: () => cy.get("[data-testid=button-go-back-to-crypto-selection]"), | ||
switchNetworkButton: () => cy.get("[data-testid=button-switch-network]"), | ||
connectWalletButton: () => cy.get("[data-testid=button-connect-wallet]") | ||
} | ||
|
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
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
Oops, something went wrong.