diff --git a/frontend/cypress/integration/mainnet/mainnet.spec.ts b/frontend/cypress/integration/mainnet/mainnet.spec.ts index 90b8667d1..91cce9868 100644 --- a/frontend/cypress/integration/mainnet/mainnet.spec.ts +++ b/frontend/cypress/integration/mainnet/mainnet.spec.ts @@ -1,4 +1,4 @@ -import { emitMempoolInfo } from "../../support/websocket"; +import { emitMempoolInfo, emitWithoutMempoolInfo } from "../../support/websocket"; describe('Mainnet', () => { beforeEach(() => { @@ -51,6 +51,7 @@ describe('Mainnet', () => { loaded: true } }); + cy.get(':nth-child(1) > #bitcoin-block-0').should('not.exist'); cy.get(':nth-child(2) > #bitcoin-block-0').should('not.exist'); cy.get(':nth-child(3) > #bitcoin-block-0').should('not.exist'); diff --git a/frontend/cypress/support/websocket.ts b/frontend/cypress/support/websocket.ts index 74b065116..ce971fae9 100644 --- a/frontend/cypress/support/websocket.ts +++ b/frontend/cypress/support/websocket.ts @@ -70,15 +70,15 @@ export const emitMempoolInfo = ({ default: win.mockSocket.send('{"action":"init"}'); win.mockSocket.send('{"action":"want","data":["blocks","stats","mempool-blocks","live-2h-chart"]}'); - cy.readFile('cypress/fixtures/mainnet_mempoolInfo.json', 'ascii').then((fixture) => { - win.mockSocket.send(JSON.stringify(fixture)); - }); win.mockSocket.send('{"conversions":{"USD":32365.338815782445}}'); cy.readFile('cypress/fixtures/mainnet_live2hchart.json', 'ascii').then((fixture) => { win.mockSocket.send(JSON.stringify(fixture)); }); + cy.readFile('cypress/fixtures/mainnet_mempoolInfo.json', 'ascii').then((fixture) => { + win.mockSocket.send(JSON.stringify(fixture)); + }); } }); cy.waitForSkeletonGone(); return cy.get('#mempool-block-0'); -}; +}; \ No newline at end of file diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html index 99b8d4cce..c0c036dda 100644 --- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html +++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html @@ -1,4 +1,4 @@ -