From 837e714b1f7d329bff412b97753b3fd99c1ed71c Mon Sep 17 00:00:00 2001 From: Miguel Medeiros Date: Thu, 29 Jul 2021 20:28:43 -0300 Subject: [PATCH] Fix show blocks on small screen. (#674) --- .../integration/mainnet/mainnet.spec.ts | 34 ++++++++----------- .../television/television.component.scss | 5 --- 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/frontend/cypress/integration/mainnet/mainnet.spec.ts b/frontend/cypress/integration/mainnet/mainnet.spec.ts index c9515cba8..90b8667d1 100644 --- a/frontend/cypress/integration/mainnet/mainnet.spec.ts +++ b/frontend/cypress/integration/mainnet/mainnet.spec.ts @@ -72,28 +72,24 @@ describe('Mainnet', () => { }); }); - describe('tv mode', () => { - it('loads the tv screen - desktop', () => { + it('loads the tv screen - desktop', () => { + cy.viewport('macbook-16'); + cy.visit('/'); + cy.waitForSkeletonGone(); + cy.get('li:nth-of-type(4) > a').click().then(() => { cy.viewport('macbook-16'); - cy.visit('/'); - cy.waitForSkeletonGone(); - cy.get('li:nth-of-type(4) > a').click().then(() => { - cy.viewport('macbook-16'); - cy.get('.chart-holder'); - cy.get('.blockchain-wrapper').should('be.visible'); - cy.get('#mempool-block-0').should('be.visible'); - }); + cy.get('.chart-holder'); + cy.get('.blockchain-wrapper').should('be.visible'); + cy.get('#mempool-block-0').should('be.visible'); }); + }); - it('loads the tv screen - mobile', () => { - cy.visit('/'); - cy.waitForSkeletonGone(); - cy.get('li:nth-of-type(4) > a').click().then(() => { - cy.viewport('iphone-6'); - cy.get('.chart-holder'); - cy.get('.blockchain-wrapper').should('not.be.visible'); - }); - }); + it('loads the tv screen - mobile', () => { + cy.viewport('iphone-6'); + cy.visit('/tv'); + cy.waitForSkeletonGone(); + cy.get('.chart-holder'); + cy.get('.blockchain-wrapper').should('be.visible'); }); it('loads the api screen', () => { diff --git a/frontend/src/app/components/television/television.component.scss b/frontend/src/app/components/television/television.component.scss index 48a83e1a1..f45908655 100644 --- a/frontend/src/app/components/television/television.component.scss +++ b/frontend/src/app/components/television/television.component.scss @@ -89,9 +89,4 @@ display: flex; margin-top: 0px; flex-direction: column; - @media(max-height: 700px) { - .blockchain-wrapper{ - display: none !important; - } - } } \ No newline at end of file