Fix tests trying to click on the TV button on the navbar
This commit is contained in:
		
							parent
							
								
									6d88790222
								
							
						
					
					
						commit
						e7a109d799
					
				@ -409,7 +409,7 @@ describe('Mainnet', () => {
 | 
			
		||||
 | 
			
		||||
    it('loads the tv screen - desktop', () => {
 | 
			
		||||
      cy.viewport('macbook-16');
 | 
			
		||||
      cy.visit('/');
 | 
			
		||||
      cy.visit('/graphs/mempool');
 | 
			
		||||
      cy.waitForSkeletonGone();
 | 
			
		||||
      cy.get('#btn-tv').click().then(() => {
 | 
			
		||||
        cy.viewport('macbook-16');
 | 
			
		||||
 | 
			
		||||
@ -63,7 +63,7 @@ describe('Signet', () => {
 | 
			
		||||
    describe('tv mode', () => {
 | 
			
		||||
      it('loads the tv screen - desktop', () => {
 | 
			
		||||
        cy.viewport('macbook-16');
 | 
			
		||||
        cy.visit('/signet');
 | 
			
		||||
        cy.visit('/signet/graphs');
 | 
			
		||||
        cy.waitForSkeletonGone();
 | 
			
		||||
        cy.get('#btn-tv').click().then(() => {
 | 
			
		||||
          cy.get('.chart-holder').should('be.visible');
 | 
			
		||||
@ -73,19 +73,17 @@ describe('Signet', () => {
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      it('loads the tv screen - mobile', () => {
 | 
			
		||||
        cy.visit('/signet');
 | 
			
		||||
        cy.visit('/signet/graphs');
 | 
			
		||||
        cy.waitForSkeletonGone();
 | 
			
		||||
        cy.get('#btn-tv').click().then(() => {
 | 
			
		||||
          cy.viewport('iphone-8');
 | 
			
		||||
          cy.get('.chart-holder').should('be.visible');
 | 
			
		||||
          cy.get('.tv-only').should('not.exist');
 | 
			
		||||
          //TODO: Remove comment when the bug is fixed
 | 
			
		||||
          //cy.get('#mempool-block-0').should('be.visible');
 | 
			
		||||
          cy.get('#mempool-block-0').should('be.visible');
 | 
			
		||||
        });
 | 
			
		||||
      });
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    it('loads the api screen', () => {
 | 
			
		||||
      cy.visit('/signet');
 | 
			
		||||
      cy.waitForSkeletonGone();
 | 
			
		||||
 | 
			
		||||
@ -63,18 +63,17 @@ describe('Testnet', () => {
 | 
			
		||||
    describe('tv mode', () => {
 | 
			
		||||
      it('loads the tv screen - desktop', () => {
 | 
			
		||||
        cy.viewport('macbook-16');
 | 
			
		||||
        cy.visit('/testnet');
 | 
			
		||||
        cy.visit('/testnet/graphs');
 | 
			
		||||
        cy.waitForSkeletonGone();
 | 
			
		||||
        cy.get('#btn-tv').click().then(() => {
 | 
			
		||||
          cy.wait(1000);
 | 
			
		||||
          cy.get('.tv-only').should('not.exist');
 | 
			
		||||
          //TODO: Remove comment when the bug is fixed
 | 
			
		||||
          //cy.get('#mempool-block-0').should('be.visible');
 | 
			
		||||
          cy.get('#mempool-block-0').should('be.visible');
 | 
			
		||||
        });
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      it('loads the tv screen - mobile', () => {
 | 
			
		||||
        cy.visit('/testnet');
 | 
			
		||||
        cy.visit('/testnet/graphs');
 | 
			
		||||
        cy.waitForSkeletonGone();
 | 
			
		||||
        cy.get('#btn-tv').click().then(() => {
 | 
			
		||||
          cy.viewport('iphone-6');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user