Skip to content

Commit

Permalink
refactor(mon-pix): use presentation role on empty alt imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand committed Jul 19, 2024
1 parent ff01aa3 commit bd9474d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module('Integration | Component | Module | Details', function (hooks) {

// then
assert.ok(screen.getByRole('heading', { name: module.title, level: 1 }));
assert.ok(screen.getByRole('img').hasAttribute('src', module.details.image));
assert.ok(screen.getByRole('presentation').hasAttribute('src', module.details.image));
assert.ok(screen.getByText(module.details.description));
assert.ok(screen.getByText(`${module.details.duration} min`));
assert.ok(screen.getByText(module.details.level));
Expand Down
2 changes: 1 addition & 1 deletion mon-pix/tests/integration/components/steps_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module('Integration | Component | steps', function (hooks) {
.exists();
assert.dom(screen.getByRole('heading', { name: 'Le nombre de questions ?', level: 3 })).exists();
assert.dom(screen.getByRole('heading', { name: 'La durée du test ?', level: 3 })).exists();
const images = screen.getAllByRole('img');
const images = screen.getAllByRole('presentation');
assert.strictEqual(
images[0].getAttribute('src'),
'/images/illustrations/certification-instructions-steps/clock.svg',
Expand Down

0 comments on commit bd9474d

Please sign in to comment.