Skip to content

Commit

Permalink
[pf-589] Use the global class link
Browse files Browse the repository at this point in the history
  • Loading branch information
sbedeau committed May 13, 2019
1 parent 105cee6 commit 8547a27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions mon-pix/app/styles/pages/_profilv2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@
color: $black;
font-size: 1.8rem;
line-height: 2.1rem;

&__link {
cursor: pointer;
color: $pix-blue;
}
}
2 changes: 1 addition & 1 deletion mon-pix/app/templates/profilv2.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<h2 class="rounded-panel-header-text__content profilv2-panel-header-information">
Le profil Pix évolue.
<a class="profilv2-panel-header-information__link"
<a class="link"
href="https://pix.fr/actualites/votre-profil-evolue"
target="Actualité Pix">
Découvrez ce qui change.
Expand Down
4 changes: 2 additions & 2 deletions mon-pix/tests/acceptance/profilv2-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ describe('Acceptance | Profil v2 | Afficher profil v2', function() {
await visit('/profilv2');

// then
expect(document.querySelector('.profilv2-panel-header-information__link'))
expect(document.querySelector('.profilv2-panel-header-information > .link'))
.to.have.attr('href', 'https://pix.fr/actualites/votre-profil-evolue');

expect(document.querySelector('.profilv2-panel-header-information__link'))
expect(document.querySelector('.profilv2-panel-header-information > .link'))
.to.have.attr('target', 'Actualité Pix');
});

Expand Down

0 comments on commit 8547a27

Please sign in to comment.