-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multichain safe creation flow tests
- Loading branch information
Showing
7 changed files
with
118 additions
and
18 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
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,64 @@ | ||
import * as constants from '../../support/constants.js' | ||
import * as main from '../pages/main.page.js' | ||
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js' | ||
import * as wallet from '../../support/utils/wallet.js' | ||
import * as createwallet from '../pages/create_wallet.pages.js' | ||
import * as owner from '../pages/owners.pages.js' | ||
|
||
let staticSafes = [] | ||
|
||
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS')) | ||
const signer = walletCredentials.OWNER_4_PRIVATE_KEY | ||
|
||
describe('Multichain safe creation flow tests', () => { | ||
before(async () => { | ||
staticSafes = await getSafes(CATEGORIES.static) | ||
}) | ||
|
||
beforeEach(() => { | ||
cy.visit(constants.welcomeUrl + '?chain=sep') | ||
cy.wait(2000) | ||
wallet.connectSigner(signer) | ||
}) | ||
|
||
it('Verify Review screen for multichain safe creation flow', () => { | ||
createwallet.clickOnContinueWithWalletBtn() | ||
createwallet.clickOnCreateNewSafeBtn() | ||
createwallet.selectMultiNetwork(1, constants.networks.polygon.toLowerCase()) | ||
createwallet.clickOnNextBtn() | ||
createwallet.clickOnNextBtn() | ||
main.verifyElementsExist([ | ||
createwallet.payNowLaterMessageBox, | ||
createwallet.safeSetupOverview, | ||
createwallet.networksLogoList, | ||
createwallet.reviewStepOwnerInfo, | ||
createwallet.reviewStepSafeName, | ||
createwallet.reviewStepThreshold, | ||
createwallet.reviewStepNextBtn, | ||
]) | ||
createwallet.checkNetworkLogoInReviewStep([constants.networkKeys.polygon, constants.networkKeys.sepolia]) | ||
}) | ||
|
||
it('Verify that selected networks are displayed in preview multichain safe', () => { | ||
createwallet.clickOnContinueWithWalletBtn() | ||
createwallet.clickOnCreateNewSafeBtn() | ||
createwallet.selectMultiNetwork(1, constants.networks.polygon.toLowerCase()) | ||
createwallet.clickOnNextBtn() | ||
createwallet.clickOnNextBtn() | ||
createwallet.checkNetworkLogoInReviewStep([constants.networkKeys.polygon, constants.networkKeys.sepolia]) | ||
}) | ||
|
||
it('Verify Success safe creation screen for multichain creation', () => { | ||
createwallet.clickOnContinueWithWalletBtn() | ||
createwallet.clickOnCreateNewSafeBtn() | ||
createwallet.selectMultiNetwork(1, constants.networks.polygon.toLowerCase()) | ||
createwallet.clickOnNextBtn() | ||
owner.clickOnAddSignerBtn() | ||
owner.typeOwnerAddressCreateSafeStep(1, constants.SEPOLIA_OWNER_2) | ||
createwallet.clickOnNextBtn() | ||
createwallet.clickOnReviewStepNextBtn() | ||
main.verifyElementsExist([createwallet.cfSafeActivationMsg, createwallet.cfSafeCreationSuccessMsg]) | ||
createwallet.checkNetworkLogoInSafeCreationModal([constants.networkKeys.polygon, constants.networkKeys.sepolia]) | ||
createwallet.clickOnLetsGoBtn() | ||
}) | ||
}) |
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