mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 06:47:52 +01:00
Correcting more tests.
This commit is contained in:
parent
1dbae4cd62
commit
b634984ca6
3 changed files with 21 additions and 24 deletions
|
@ -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', () => {
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<div *ngIf="featuredAssets$ | async as featured; else loading" class="featuredBox">
|
||||
|
||||
<div *ngFor="let group of featured">
|
||||
<div class="card">
|
||||
<div class="card" *ngFor="let group of featured">
|
||||
<ng-template [ngIf]="group.assets" [ngIfElse]="singleAsset">
|
||||
<a [routerLink]="['/assets/asset-group', group.id]">
|
||||
<img class="assetIcon" [src]="'https://liquid.network/api/v1/asset/' + group.assets[0] + '/icon'">
|
||||
|
@ -19,7 +18,6 @@
|
|||
<div class="ticker">{{ group.ticker }}</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue