diff --git a/apps/datahub-e2e/src/e2e/dataset.cy.ts b/apps/datahub-e2e/src/e2e/dataset.cy.ts index 6b9607ac..f442d5d1 100644 --- a/apps/datahub-e2e/src/e2e/dataset.cy.ts +++ b/apps/datahub-e2e/src/e2e/dataset.cy.ts @@ -46,7 +46,7 @@ describe('datasets', () => { cy.get('mel-datahub-text-expand') .find('mel-datahub-button-primary') .find('img') - .should('have.attr', 'src', '/assets/icons/arrow.svg') + .should('have.attr', 'src', 'assets/icons/arrow.svg') cy.get('mel-datahub-text-expand') .find('.bg-gradient-to-b') .should('have.css', 'max-height', '72px') @@ -63,7 +63,7 @@ describe('datasets', () => { cy.get('mel-datahub-text-expand') .find('mel-datahub-button-primary') .find('img') - .should('have.attr', 'src', '/assets/icons/arrow-up.svg') + .should('have.attr', 'src', 'assets/icons/arrow-up.svg') cy.get('mel-datahub-text-expand') .find('.bg-gradient-to-b') .should('not.exist') @@ -83,11 +83,11 @@ describe('datasets', () => { cy.get('mel-datahub-button-primary').eq(0).as('favoriteButton') cy.get('@favoriteButton') .find('img') - .should('have.attr', 'src', '/assets/icons/heart.svg') + .should('have.attr', 'src', 'assets/icons/heart.svg') cy.get('@favoriteButton').click() cy.get('@favoriteButton') .find('img') - .should('have.attr', 'src', '/assets/icons/heart-filled.svg') + .should('have.attr', 'src', 'assets/icons/heart-filled.svg') }) }) }) diff --git a/apps/datahub/src/app/common/button-primary/button-primary.component.ts b/apps/datahub/src/app/common/button-primary/button-primary.component.ts index 484164cb..b8b90533 100644 --- a/apps/datahub/src/app/common/button-primary/button-primary.component.ts +++ b/apps/datahub/src/app/common/button-primary/button-primary.component.ts @@ -10,7 +10,7 @@ export class ButtonPrimaryComponent { @Input() label: string @Input() set icon(fileName: string) { if (fileName) { - this.src = `/assets/icons/${fileName}.svg` + this.src = `assets/icons/${fileName}.svg` this.placeholder = fileName } } diff --git a/apps/datahub/src/app/common/metadata-quality/mel-datahub-metadata-quality.component.html b/apps/datahub/src/app/common/metadata-quality/mel-datahub-metadata-quality.component.html index 25d3b38c..100fa7f0 100644 --- a/apps/datahub/src/app/common/metadata-quality/mel-datahub-metadata-quality.component.html +++ b/apps/datahub/src/app/common/metadata-quality/mel-datahub-metadata-quality.component.html @@ -14,7 +14,7 @@ {{ (qualityScore / 10).toFixed(1) }} - +