Skip to content

Commit

Permalink
feat(mon-pix): edit link role with button for item in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
dianeCdrPix authored and yannbertrand committed Jan 30, 2025
1 parent 95a077f commit 31c64a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mon-pix/tests/integration/components/module/passage_test.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ module('Integration | Component | Module | Passage', function (hooks) {
const screen = await render(<template><ModulePassage @module={{module}} @passage={{passage}} /></template>);
await clickByName('Afficher les étapes du module');
await waitForDialog();
const item = screen.getByRole('link', { name: 'Découverte' });
const item = screen.getByRole('button', { name: 'Découverte' });
await click(item);

// then
Expand Down Expand Up @@ -1157,7 +1157,7 @@ module('Integration | Component | Module | Passage', function (hooks) {
const screen = await render(<template><ModulePassage @module={{module}} @passage={{passage}} /></template>);
await clickByName('Afficher les étapes du module');
await waitForDialog();
const item = screen.getByRole('link', { name: 'Découverte' });
const item = screen.getByRole('button', { name: 'Découverte' });
await click(item);

// then
Expand Down

0 comments on commit 31c64a9

Please sign in to comment.