Skip to content

Commit

Permalink
fix(icons): use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Feb 8, 2024
1 parent a155970 commit 9b46e48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/datahub-e2e/src/e2e/dataset.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand All @@ -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')
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<span class="text-[12px] font-bold">{{
(qualityScore / 10).toFixed(1)
}}</span>
<img [src]="'/assets/info.svg'" [alt]="'info'" />
<img [src]="'assets/icons/info.svg'" [alt]="'info'" />
</div>

<div
Expand Down
File renamed without changes

0 comments on commit 9b46e48

Please sign in to comment.