chore: attempt to fix home tests (#1311)
* chore: attempt to fix home tests * chore: revert timeout increase * chore: visit homepage in hook
This commit is contained in:
parent
846f9114d8
commit
8b08e48840
@ -4,17 +4,15 @@ import { mockTradingPage } from '../support/trading';
|
||||
|
||||
describe('home', () => {
|
||||
const selectMarketOverlay = 'select-market-list';
|
||||
|
||||
beforeEach('load homepage', () => {
|
||||
beforeEach(() => {
|
||||
cy.mockGQL((req) => {
|
||||
mockTradingPage(req, MarketState.STATE_ACTIVE);
|
||||
});
|
||||
cy.visit('/');
|
||||
});
|
||||
|
||||
describe('default market found', () => {
|
||||
it('redirects to a default market with the landing dialog open', () => {
|
||||
cy.mockGQL((req) => {
|
||||
// Mock all market page queries
|
||||
mockTradingPage(req, MarketState.STATE_ACTIVE);
|
||||
});
|
||||
cy.visit('/');
|
||||
cy.wait('@Market');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user