From 118d26d8e8718da092652a9a81690b9ee617290c Mon Sep 17 00:00:00 2001
From: Brian Holland <56670523+Brian-Holland@users.noreply.github.com>
Date: Thu, 9 May 2024 11:57:23 -0500
Subject: [PATCH] test: fix tests to account for heading change
---
src/components/FeedbackButton/FeedbackButton.spec.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/FeedbackButton/FeedbackButton.spec.tsx b/src/components/FeedbackButton/FeedbackButton.spec.tsx
index 33dd6838c..63f26d256 100644
--- a/src/components/FeedbackButton/FeedbackButton.spec.tsx
+++ b/src/components/FeedbackButton/FeedbackButton.spec.tsx
@@ -28,7 +28,7 @@ describe('', () => {
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(
@@ -129,7 +129,7 @@ describe('', () => {
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(
@@ -217,7 +217,7 @@ describe('', () => {
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');
@@ -293,7 +293,7 @@ describe('', () => {
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?');
@@ -346,7 +346,7 @@ describe('', () => {
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?');