-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c27bc6c
commit e348e6a
Showing
11 changed files
with
6,724 additions
and
1,034 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,28 @@ | ||
describe('Bridge | Connect | MestaMask', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:8080'); | ||
cy.changeMetamaskNetwork('sepolia'); | ||
}); | ||
|
||
it('should change connect to MM on sepolia network', () => { | ||
cy.get('[data-testid="connect-wallet-button"]') | ||
.contains('Connect wallets') | ||
.click(); | ||
cy.get('[ data-testid="connect-metamask-button"]').click(); | ||
cy.get('div').contains('MetaMask').click(); | ||
cy.acceptMetamaskAccess().should('be.true'); | ||
cy.get('[data-testid="tag"]').contains('Connected'); | ||
}); | ||
|
||
// it('Connects with Metamask and switches the network automatically', () => { | ||
// cy.visit('http://localhost:8080'); | ||
// cy.switchToCypressWindow(); | ||
// cy.get('[data-testid="connect-wallet-button"]') | ||
// .contains('Connect wallets') | ||
// .click(); | ||
// cy.get('[ data-testid="connect-metamask-button"]').click(); | ||
// cy.get('div').contains('MetaMask').click(); | ||
// cy.acceptMetamaskAccess().should('be.true'); | ||
// cy.allowMetamaskToSwitchNetwork().should('be.true'); | ||
// }); | ||
}); |
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,11 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
import synpressPlugins from '@synthetixio/synpress/plugins'; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
const pluginsConfig = (on, config) => { | ||
synpressPlugins(on, config); | ||
}; | ||
|
||
export default pluginsConfig; |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,28 @@ | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
import { defineConfig } from 'cypress'; | ||
|
||
import setupNodeEvents from './cypress/plugins'; | ||
|
||
export default defineConfig({ | ||
video: false, | ||
userAgent: 'synpress', | ||
retries: { | ||
openMode: 0, | ||
runMode: 0, | ||
}, | ||
fixturesFolder: './cypress/fixtures', | ||
screenshotsFolder: './cypress/screenshots', | ||
chromeWebSecurity: true, | ||
viewportWidth: 1920, | ||
viewportHeight: 1080, | ||
defaultCommandTimeout: 30000, | ||
pageLoadTimeout: 30000, | ||
requestTimeout: 30000, | ||
projectId: 'massaBridge', | ||
e2e: { | ||
setupNodeEvents, | ||
supportFile: './cypress/support/e2e.ts', | ||
specPattern: './cypress/e2e/**/*.spec.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