Skip to content

Commit

Permalink
feat(test): add footer with repo source
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyhm committed Sep 12, 2023
1 parent 17e1b1c commit 5980a1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e/home.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ test('Body contains night entry', async ({ page }) => {
await page.goto('/');
expect(await page.innerText('body')).toContain('Night:');
});



test('Footer contains repo address', async ({ page }) => {
await page.goto('/');
expect(await page.innerText('footer')).toContain('https://github.com/freddyhm/myrepostats');
});
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ <h3>Afternoon: 60%</h3>
<h3>Evening: 20%</h3>
<h3>Night: 10%</h3>
</body>
<footer>
<p>Source: <a href="https://github.com/freddyhm/myrepostats">https://github.com/freddyhm/myrepostats</a></p>
</footer>
</html>

0 comments on commit 5980a1b

Please sign in to comment.