Correcting more tests.

This commit is contained in:
softsimon 2022-02-06 18:48:25 +04:00
parent 1dbae4cd62
commit b634984ca6
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7
3 changed files with 21 additions and 24 deletions

View file

@ -115,10 +115,9 @@ describe('Liquid', () => {
describe('assets', () => { describe('assets', () => {
it('shows the assets screen', () => { it('shows the assets screen', () => {
cy.visit(`${basePath}`); cy.visit(`${basePath}/assets`);
cy.get('#btn-assets');
cy.waitForSkeletonGone(); 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', () => { it('allows searching assets', () => {

View file

@ -76,7 +76,7 @@ describe('Liquid Testnet', () => {
it('shows the assets screen', () => { it('shows the assets screen', () => {
cy.visit(`${basePath}/assets`); cy.visit(`${basePath}/assets`);
cy.waitForSkeletonGone(); 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', () => { it('allows searching assets', () => {

View file

@ -1,7 +1,6 @@
<div *ngIf="featuredAssets$ | async as featured; else loading" class="featuredBox"> <div *ngIf="featuredAssets$ | async as featured; else loading" class="featuredBox">
<div *ngFor="let group of featured"> <div class="card" *ngFor="let group of featured">
<div class="card">
<ng-template [ngIf]="group.assets" [ngIfElse]="singleAsset"> <ng-template [ngIf]="group.assets" [ngIfElse]="singleAsset">
<a [routerLink]="['/assets/asset-group', group.id]"> <a [routerLink]="['/assets/asset-group', group.id]">
<img class="assetIcon" [src]="'https://liquid.network/api/v1/asset/' + group.assets[0] + '/icon'"> <img class="assetIcon" [src]="'https://liquid.network/api/v1/asset/' + group.assets[0] + '/icon'">
@ -19,7 +18,6 @@
<div class="ticker">{{ group.ticker }}</div> <div class="ticker">{{ group.ticker }}</div>
</ng-template> </ng-template>
</div> </div>
</div>
</div> </div>