Skip to content

Commit

Permalink
test: fix tests to account for heading change
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Holland committed May 13, 2024
1 parent 7acc563 commit 118d26d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/FeedbackButton/FeedbackButton.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('<FeedbackButton />', () => {

const feedbackModal = await findByRole('dialog');

const heading = within(feedbackModal).getByRole('heading', { level: 5 });
const heading = within(feedbackModal).getByRole('heading', { level: 2 });
expect(heading.textContent).toEqual('Give Feedback');

const ratingSubtitle = within(feedbackModal).getByText(
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('<FeedbackButton />', () => {

const feedbackModal = await findByRole('dialog');

const heading = within(feedbackModal).getByRole('heading', { level: 5 });
const heading = within(feedbackModal).getByRole('heading', { level: 2 });
expect(heading.textContent).toEqual('Give Feedback2');

const ratingSubtitle = within(feedbackModal).getByText(
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('<FeedbackButton />', () => {

const feedbackModal = await findByRole('dialog');

const heading = within(feedbackModal).getByRole('heading', { level: 5 });
const heading = within(feedbackModal).getByRole('heading', { level: 2 });
expect(heading.textContent).toEqual('Give Feedback');

const feedbackModalRating = within(feedbackModal).getByTestId('feedback-modal-rating');
Expand Down Expand Up @@ -293,7 +293,7 @@ describe('<FeedbackButton />', () => {

const feedbackModal = await findByRole('dialog');

const heading = within(feedbackModal).getByRole('heading', { level: 5 });
const heading = within(feedbackModal).getByRole('heading', { level: 2 });
expect(heading.textContent).toEqual('Give Feedback');

within(feedbackModal).getByText('How could we improve the way this works for you?');
Expand Down Expand Up @@ -346,7 +346,7 @@ describe('<FeedbackButton />', () => {

const feedbackModal = await findByRole('dialog');

const heading = within(feedbackModal).getByRole('heading', { level: 5 });
const heading = within(feedbackModal).getByRole('heading', { level: 2 });
expect(heading.textContent).toEqual('Give Feedback');

within(feedbackModal).getByText('How could we improve the way this works for you?');
Expand Down

0 comments on commit 118d26d

Please sign in to comment.