UI/UX - Add skeleton for blocks preload. (#615)

* Add skeleton for blocks preload.

* Add e2e testing for skeleton blocks preloader.

* Fix reduce mempool blocks to fit the screen.

* Fix variable naming.
This commit is contained in:
Miguel Medeiros
2021-07-10 10:04:15 -03:00
committed by GitHub
parent 652f88770e
commit 71cf41362f
7 changed files with 99 additions and 18 deletions

View File

@@ -16,6 +16,17 @@ describe('Mainnet', () => {
cy.wait(1000);
});
it('loads the dashboard with the skeleton blocks', () => {
cy.visit('/');
cy.get('#mempool-block-0').should('be.visible');
cy.get('#mempool-block-1').should('be.visible');
cy.get('#mempool-block-2').should('be.visible');
cy.get(':nth-child(1) > #bitcoin-block-0').should('be.visible');
cy.get(':nth-child(2) > #bitcoin-block-0').should('be.visible');
cy.get(':nth-child(3) > #bitcoin-block-0').should('be.visible');
cy.wait(1000);
});
it('loads the blocks screen', () => {
cy.visit('/');
cy.get('li:nth-of-type(2) > a').click().then(() => {