From b634984ca69e967a1d094e6e27b3c5664940a463 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 6 Feb 2022 18:48:25 +0400 Subject: [PATCH] Correcting more tests. --- .../cypress/integration/liquid/liquid.spec.ts | 5 +-- .../liquidtestnet/liquidtestnet.spec.ts | 2 +- .../assets-featured.component.html | 38 +++++++++---------- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/frontend/cypress/integration/liquid/liquid.spec.ts b/frontend/cypress/integration/liquid/liquid.spec.ts index 877b36dbd..d8d1c366d 100644 --- a/frontend/cypress/integration/liquid/liquid.spec.ts +++ b/frontend/cypress/integration/liquid/liquid.spec.ts @@ -115,10 +115,9 @@ describe('Liquid', () => { describe('assets', () => { it('shows the assets screen', () => { - cy.visit(`${basePath}`); - cy.get('#btn-assets'); + cy.visit(`${basePath}/assets`); cy.waitForSkeletonGone(); - cy.get('table tr').should('have.length.at.least', 5); + cy.get('.featuredBox .card').should('have.length.at.least', 5); }); it('allows searching assets', () => { diff --git a/frontend/cypress/integration/liquidtestnet/liquidtestnet.spec.ts b/frontend/cypress/integration/liquidtestnet/liquidtestnet.spec.ts index 3cb7ea217..b9c9ef6eb 100644 --- a/frontend/cypress/integration/liquidtestnet/liquidtestnet.spec.ts +++ b/frontend/cypress/integration/liquidtestnet/liquidtestnet.spec.ts @@ -76,7 +76,7 @@ describe('Liquid Testnet', () => { it('shows the assets screen', () => { cy.visit(`${basePath}/assets`); cy.waitForSkeletonGone(); - cy.get('table tr').should('have.length.at.least', 5); + cy.get('.featuredBox .card').should('have.length.at.least', 5); }); it('allows searching assets', () => { diff --git a/frontend/src/app/components/assets/assets-featured/assets-featured.component.html b/frontend/src/app/components/assets/assets-featured/assets-featured.component.html index c5d3d3b6c..f8ace8ef0 100644 --- a/frontend/src/app/components/assets/assets-featured/assets-featured.component.html +++ b/frontend/src/app/components/assets/assets-featured/assets-featured.component.html @@ -1,24 +1,22 @@
- -
-
- - - - - -
Group of {{ group.assets.length | number }} assets
-
- - - - - -
{{ group.ticker }}
-
-
+ +
+ + + + + +
Group of {{ group.assets.length | number }} assets
+
+ + + + + +
{{ group.ticker }}
+