diff --git a/examples/new-dawn/cypress.config.ts b/examples/new-dawn/cypress.config.ts index 694eb9827..408814d76 100644 --- a/examples/new-dawn/cypress.config.ts +++ b/examples/new-dawn/cypress.config.ts @@ -1,4 +1,4 @@ -import { configureBeforeSynpress } from '@synthetixio/synpress/cypress' +import { configureSynpress } from '@synthetixio/synpress/cypress' import { defineConfig } from 'cypress' export default defineConfig({ @@ -9,7 +9,7 @@ export default defineConfig({ supportFile: 'test/cypress/support/e2e.{js,jsx,ts,tsx}', testIsolation: false, async setupNodeEvents(on, config) { - return configureBeforeSynpress(on, config) + return configureSynpress(on, config) } } }) diff --git a/wallets/ethereum-wallet-mock/cypress.config.ts b/wallets/ethereum-wallet-mock/cypress.config.ts index bbb872aac..77ff4d214 100644 --- a/wallets/ethereum-wallet-mock/cypress.config.ts +++ b/wallets/ethereum-wallet-mock/cypress.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from 'cypress' -import { configureBeforeSynpress } from './src/cypress' +import { configureSynpress } from './src/cypress' export default defineConfig({ chromeWebSecurity: false, @@ -10,7 +10,7 @@ export default defineConfig({ fixturesFolder: 'src/cypress/fixtures', testIsolation: false, async setupNodeEvents(on, config) { - return configureBeforeSynpress(on, config) + return configureSynpress(on, config) } } }) diff --git a/wallets/ethereum-wallet-mock/src/cypress/index.ts b/wallets/ethereum-wallet-mock/src/cypress/index.ts index 31cddcda6..3361e4350 100644 --- a/wallets/ethereum-wallet-mock/src/cypress/index.ts +++ b/wallets/ethereum-wallet-mock/src/cypress/index.ts @@ -1,2 +1,2 @@ -export { default as configureBeforeSynpress } from './utils/configureBeforeSynpress' +export { default as configureSynpress } from './utils/configureSynpress' export { default as EthereumWalletMock } from './EthereumWalletMock' diff --git a/wallets/ethereum-wallet-mock/src/cypress/utils/configureBeforeSynpress.ts b/wallets/ethereum-wallet-mock/src/cypress/utils/configureSynpress.ts similarity index 85% rename from wallets/ethereum-wallet-mock/src/cypress/utils/configureBeforeSynpress.ts rename to wallets/ethereum-wallet-mock/src/cypress/utils/configureSynpress.ts index 2ea15a399..1a473c0d1 100644 --- a/wallets/ethereum-wallet-mock/src/cypress/utils/configureBeforeSynpress.ts +++ b/wallets/ethereum-wallet-mock/src/cypress/utils/configureSynpress.ts @@ -4,7 +4,7 @@ import { initEthereumWalletMock } from './initEthereumWalletMock' let port: number -export default function configureBeforeSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) { +export default function configureSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) { const browsers = config.browsers.filter((b) => b.name === 'chrome') if (browsers.length === 0) { throw new Error('No Chrome browser found in the configuration') diff --git a/wallets/metamask/cypress.config.ts b/wallets/metamask/cypress.config.ts index 5a15e82e4..ba1e7f9f3 100644 --- a/wallets/metamask/cypress.config.ts +++ b/wallets/metamask/cypress.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from 'cypress' -import configureBeforeSynpress from './src/cypress/configureBeforeSynpress' +import configureSynpress from './src/cypress/configureSynpress' export default defineConfig({ chromeWebSecurity: false, @@ -9,7 +9,7 @@ export default defineConfig({ supportFile: 'src/cypress/support/e2e.{js,jsx,ts,tsx}', testIsolation: false, async setupNodeEvents(on, config) { - return configureBeforeSynpress(on, config) + return configureSynpress(on, config) } } }) diff --git a/wallets/metamask/src/cypress/configureBeforeSynpress.ts b/wallets/metamask/src/cypress/configureSynpress.ts similarity index 87% rename from wallets/metamask/src/cypress/configureBeforeSynpress.ts rename to wallets/metamask/src/cypress/configureSynpress.ts index 95a730cd0..654723260 100644 --- a/wallets/metamask/src/cypress/configureBeforeSynpress.ts +++ b/wallets/metamask/src/cypress/configureSynpress.ts @@ -4,7 +4,7 @@ import { initMetaMask } from './support/initMetaMask' let port: number -export default function configureBeforeSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) { +export default function configureSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) { const browsers = config.browsers.filter((b) => b.name === 'chrome') if (browsers.length === 0) { throw new Error('No Chrome browser found in the configuration')