Skip to content

Commit

Permalink
Fix UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albinazs committed Aug 16, 2024
1 parent 5628d7e commit 6bc8436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/tests/integration/homepage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Homepage', () => {
it('has the right heading', async () => {
const pageHeader = await page.$('h1');
const pageHeaderValue = await pageHeader.evaluate((el) => el.textContent);
expect(pageHeaderValue).toContain('Welcome to the Test Site Wagtail CMS');
expect(pageHeaderValue).toContain('Test Site');
});

it('axe', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% avatar_url user 80 as avatar %}
<div class="w-header__glyph avatar xlarge">
<img src="{{ avatar }}" alt="" />
<a class="edit-link"
<a class="edit-link" aria-label="Edit account avatar"
href="{{ base_url }}{% url 'wagtailadmin_account' %}#avatar-section">{% icon name="edit" %}</a>
</div>
<div>
Expand Down

0 comments on commit 6bc8436

Please sign in to comment.