2022-09-22 17:40:11 +00:00
|
|
|
import '@vegaprotocol/cypress';
|
|
|
|
import 'cypress-real-events/support';
|
|
|
|
import registerCypressGrep from 'cypress-grep';
|
2022-10-03 18:12:34 +00:00
|
|
|
import { aliasQuery } from '@vegaprotocol/cypress';
|
2022-10-04 22:24:27 +00:00
|
|
|
import { generateChainId } from './mocks/generate-chain-id';
|
2022-09-22 17:40:11 +00:00
|
|
|
registerCypressGrep();
|
2022-10-03 18:12:34 +00:00
|
|
|
|
2022-10-04 22:24:27 +00:00
|
|
|
before(() => {
|
2022-10-05 04:00:06 +00:00
|
|
|
// Mock chainId fetch which happens on every page wallet connection
|
2022-10-03 18:12:34 +00:00
|
|
|
cy.mockGQL((req) => {
|
2022-10-04 22:24:27 +00:00
|
|
|
aliasQuery(req, 'ChainId', generateChainId());
|
2022-10-03 18:12:34 +00:00
|
|
|
});
|
|
|
|
});
|