Correcting more tests.
This commit is contained in:
		
							parent
							
								
									ee3e77bb6c
								
							
						
					
					
						commit
						548e9a8e64
					
				@ -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,24 +1,22 @@
 | 
			
		||||
<div *ngIf="featuredAssets$ | async as featured; else loading" class="featuredBox">
 | 
			
		||||
    
 | 
			
		||||
  <div *ngFor="let group of featured">
 | 
			
		||||
    <div class="card">
 | 
			
		||||
      <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'">
 | 
			
		||||
        </a>
 | 
			
		||||
        <div class="title"><a [routerLink]="['/assets/asset-group', group.id]">{{ group.name }}</a></div>
 | 
			
		||||
        <div class="sub-title" i18n>Group of {{ group.assets.length | number }} assets</div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
      <ng-template #singleAsset>
 | 
			
		||||
        <a [routerLink]="['/assets/asset/', group.asset]">
 | 
			
		||||
          <img class="assetIcon" [src]="'https://liquid.network/api/v1/asset/' + group.asset + '/icon'">
 | 
			
		||||
        </a>
 | 
			
		||||
        <div class="title">
 | 
			
		||||
          <a [routerLink]="['/assets/asset/', group.asset]">{{ group.name }}</a>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="ticker">{{ group.ticker }}</div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
  <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'">
 | 
			
		||||
      </a>
 | 
			
		||||
      <div class="title"><a [routerLink]="['/assets/asset-group', group.id]">{{ group.name }}</a></div>
 | 
			
		||||
      <div class="sub-title" i18n>Group of {{ group.assets.length | number }} assets</div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
    <ng-template #singleAsset>
 | 
			
		||||
      <a [routerLink]="['/assets/asset/', group.asset]">
 | 
			
		||||
        <img class="assetIcon" [src]="'https://liquid.network/api/v1/asset/' + group.asset + '/icon'">
 | 
			
		||||
      </a>
 | 
			
		||||
      <div class="title">
 | 
			
		||||
        <a [routerLink]="['/assets/asset/', group.asset]">{{ group.name }}</a>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="ticker">{{ group.ticker }}</div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user