Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanWatanabe committed Mar 30, 2022
1 parent 179ba50 commit 557da66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/components/Coachmark/Coachmark.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe('Coachmark', () => {
/>,
);

//coachmark is hidden since it has a parent wrapper with role=presentation when not in a collapsed state.
const coachmark = getByRole('dialog', { hidden: true });
expect(coachmark.getAttribute('aria-labelledby')).toBe('aria label');
expect(within(coachmark).queryByText('aria text')).toBeTruthy();
Expand All @@ -85,6 +86,7 @@ describe('Coachmark', () => {
/>,
);

//coachmark is hidden since it has a parent wrapper with role=presentation when not in a collapsed state.
const coachmark = getByRole('dialog', { hidden: true });
expect(coachmark.getAttribute('aria-describedby')).toBe('aria description');
expect(within(coachmark).queryByText('aria description text')).toBeTruthy();
Expand Down

0 comments on commit 557da66

Please sign in to comment.