From 85440eaa2e2dfd0214360d77de87dd1be3be4f8a Mon Sep 17 00:00:00 2001 From: Valentyna Dudchak Date: Sun, 24 Nov 2024 18:38:01 +0200 Subject: [PATCH] fixed tests --- .../professional-info-tab/ProfessionalInfoTab.spec.jsx | 2 +- .../about-tutor-accordion/AboutTutorAccordion.spec.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/containers/edit-profile/professional-info-tab/ProfessionalInfoTab.spec.jsx b/tests/unit/containers/edit-profile/professional-info-tab/ProfessionalInfoTab.spec.jsx index 489891a66..50c1680ed 100644 --- a/tests/unit/containers/edit-profile/professional-info-tab/ProfessionalInfoTab.spec.jsx +++ b/tests/unit/containers/edit-profile/professional-info-tab/ProfessionalInfoTab.spec.jsx @@ -128,7 +128,7 @@ describe('ProfessionalInfoTab for tutor', () => { it('should render about tutor block', () => { const aboutTutorTitle = screen.getByText( - 'editProfilePage.profile.professionalTab.aboutTheTutorTitle' + 'editProfilePage.profile.professionalTab.tutorAboutTitle' ) expect(aboutTutorTitle).toBeInTheDocument() diff --git a/tests/unit/containers/edit-profile/professional-info-tab/about-tutor-accordion/AboutTutorAccordion.spec.jsx b/tests/unit/containers/edit-profile/professional-info-tab/about-tutor-accordion/AboutTutorAccordion.spec.jsx index 88b6d6b58..a44bd8f30 100644 --- a/tests/unit/containers/edit-profile/professional-info-tab/about-tutor-accordion/AboutTutorAccordion.spec.jsx +++ b/tests/unit/containers/edit-profile/professional-info-tab/about-tutor-accordion/AboutTutorAccordion.spec.jsx @@ -18,7 +18,7 @@ describe('AboutTutorAccordion', () => { it('should open first accordion by default', () => { const textAreas = screen.getAllByLabelText( - 'editProfilePage.profile.professionalTab.accordion.textareaLabel' + 'editProfilePage.profile.professionalTab.accordionTutor.textareaLabel' ) expect(textAreas).toHaveLength(4) @@ -28,7 +28,7 @@ describe('AboutTutorAccordion', () => { it('should open corresponding accordion content', () => { const secondItemTitle = screen.getByText( - 'editProfilePage.profile.professionalTab.accordion.workExperience' + 'editProfilePage.profile.professionalTab.accordionTutor.workExperience' ) fireEvent.click(secondItemTitle)