-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Cypress seedless google flow (#2812)
* Add seedless google flow happy path tests
- Loading branch information
Showing
14 changed files
with
153 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const sideNavSettingsIcon = '[data-testid="settings-nav-icon"]' | ||
|
||
export function clickOnSideNavigation(option) { | ||
cy.get(option).should('exist').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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import * as constants from '../../support/constants' | ||
import * as main from '../pages/main.page' | ||
import * as createwallet from '../pages/create_wallet.pages' | ||
import * as owner from '../pages/owners.pages' | ||
import * as navigation from '../pages/navigation.page' | ||
|
||
describe('Safe creation Google tests', () => { | ||
beforeEach(() => { | ||
cy.visit(constants.welcomeUrl + '?chain=gor') | ||
cy.clearLocalStorage() | ||
main.acceptCookies() | ||
// TODO: Need credentials to finish API Google login | ||
// createwallet.loginGoogleAPI() | ||
}) | ||
|
||
it('Verify that "Connect with Google" option is disabled for the networks without Relay on the Welcome page', () => { | ||
owner.clickOnWalletExpandMoreIcon() | ||
owner.clickOnDisconnectBtn() | ||
createwallet.selectNetwork(constants.networks.polygon) | ||
createwallet.verifyGoogleConnectBtnIsDisabled() | ||
}) | ||
|
||
it.skip('Verify a successful connection with google', () => { | ||
createwallet.verifyGoogleSignin() | ||
}) | ||
|
||
it.skip('Verify Google account info in the header after account connection', () => { | ||
createwallet.verifyGoogleAccountInfoInHeader() | ||
}) | ||
|
||
it.skip('Verify a successful safe creation with a Google account', { defaultCommandTimeout: 90000 }, () => { | ||
createwallet.verifyGoogleSignin().click() | ||
createwallet.verifyOwnerInfoIsPresent() | ||
createwallet.clickOnReviewStepNextBtn() | ||
createwallet.verifySafeIsBeingCreated() | ||
createwallet.verifySafeCreationIsComplete() | ||
}) | ||
|
||
it.skip('Verify a successful transaction creation with Google account', { defaultCommandTimeout: 90000 }, () => { | ||
createwallet.verifyGoogleSignin().click() | ||
createwallet.clickOnReviewStepNextBtn() | ||
createwallet.verifySafeCreationIsComplete() | ||
navigation.clickOnSideNavigation(navigation.sideNavSettingsIcon) | ||
owner.openAddOwnerWindow() | ||
owner.typeOwnerAddress(constants.SEPOLIA_OWNER_2) | ||
owner.clickOnNextBtn() | ||
main.clickOnExecuteBtn() | ||
owner.verifyOwnerTransactionComplted() | ||
}) | ||
}) |
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