Skip to content

Commit

Permalink
feat(footer): open icon links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed May 7, 2024
1 parent ef427ee commit 81d75ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion apps/home-e2e/src/e2e/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('home', () => {
cy.get('@url').should('include', 'twitter')
cy.get('@url').should('include', 'MetropoleLille')
})
it('should display the partners icons', () => {
it('should display the partners icons as links', () => {
cy.get('@footer')
.children('footer')
.first()
Expand All @@ -95,6 +95,14 @@ describe('home', () => {
.eq(1)
.children('a')
.should('have.length', 2)
.each((el, index) => {
const urls = [
'https://next-generation-eu.europa.eu/index_fr',
'https://www.economie.gouv.fr/plan-de-relance',
]
cy.wrap(el).should('have.attr', 'href', urls[index])
cy.wrap(el).should('have.attr', 'target', '_blank')
})
})
it('should have a button to the newsletter subscription', () => {
cy.get('@footer')
Expand Down
4 changes: 2 additions & 2 deletions libs/mel/src/lib/footer/mel-datahub-footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@
</ul>
</div>
<div class="flex flex-row items-center flex-wrap">
<a href="https://next-generation-eu.europa.eu/index_fr">
<a href="https://next-generation-eu.europa.eu/index_fr" target="_blank">
<img
class="h-20 mr-8"
src="{{ iconsUrl }}finance_ue.png"
[alt]="'mel.common.footer.logo.financeUE' | translate"
/>
</a>
<a href="https://www.economie.gouv.fr/plan-de-relance">
<a href="https://www.economie.gouv.fr/plan-de-relance" target="_blank">
<img
class="h-24"
src="{{ iconsUrl }}france_relance.png"
Expand Down

0 comments on commit 81d75ef

Please sign in to comment.