Skip to content

Commit

Permalink
Add contact link to homepage (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: mmarchois < [email protected]>
  • Loading branch information
mmarchois and mmarchois authored Feb 21, 2023
1 parent f9ae209 commit cd29274
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{ 'landing.jumbotron.login'|trans }}
</a>
{% endif %}
<a href="#" class="fr-btn fr-btn--secondary">
<a href="mailto:[email protected]" class="fr-btn fr-btn--secondary" data-testid="contact-link">
{{ 'landing.jumbotron.contact'|trans }}
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public function testLanding(): void
$enterLink = $crawler->filter('[data-testid="enter-link"]');
$this->assertSame('Se connecter', $enterLink->text());
$this->assertSame('/login', $enterLink->attr('href'));

$contactLink = $crawler->filter('[data-testid="contact-link"]');
$this->assertSame('Nous contacter', $contactLink->text());
$this->assertSame('mailto:[email protected]', $contactLink->attr('href'));
}

public function testLandingWithLoggedUser(): void
Expand Down

0 comments on commit cd29274

Please sign in to comment.