From 7c01b47f4fac798c19744ee6f26b06a3a971859b Mon Sep 17 00:00:00 2001 From: Mikhail-Kolpakov Date: Tue, 24 Sep 2024 02:00:56 +0300 Subject: [PATCH 1/2] feat: the description of the line for entering transliteration for the URL has been corrected --- .../NewStreetcode/MainBlock/MainBlockAdmin.component.tsx | 6 +++--- .../AdminPage/NewsPage/NewsModal/NewsModal.component.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/AdminPage/NewStreetcode/MainBlock/MainBlockAdmin.component.tsx b/src/features/AdminPage/NewStreetcode/MainBlock/MainBlockAdmin.component.tsx index aa39f9fdb..33ff0c3c5 100644 --- a/src/features/AdminPage/NewStreetcode/MainBlock/MainBlockAdmin.component.tsx +++ b/src/features/AdminPage/NewStreetcode/MainBlock/MainBlockAdmin.component.tsx @@ -253,14 +253,14 @@ const MainBlockAdmin = React.memo(({ /> { diff --git a/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.tsx b/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.tsx index 14a65378c..c52d58d92 100644 --- a/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.tsx +++ b/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.tsx @@ -278,13 +278,13 @@ const NewsModal: React.FC<{ { From 0e1f4b9d12cbd8758c3ab4de3ee3dc647129c089 Mon Sep 17 00:00:00 2001 From: Mikhail-Kolpakov Date: Sun, 20 Oct 2024 23:25:48 +0300 Subject: [PATCH 2/2] feat: fixed tests --- .../NewsPage/NewsModal/NewsModal.component.spec.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.spec.tsx b/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.spec.tsx index 376416362..433305358 100644 --- a/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.spec.tsx +++ b/src/features/AdminPage/NewsPage/NewsModal/NewsModal.component.spec.tsx @@ -126,7 +126,7 @@ describe('NewsModal', () => { ); const titleInput = screen.getByLabelText('Заголовок:') as HTMLInputElement; - const urlInput = screen.getByLabelText('Посилання:') as HTMLInputElement; + const urlInput = screen.getByLabelText('Транслітерація для URL:') as HTMLInputElement; const textInput = screen.getByTestId('mockEditor') as HTMLTextAreaElement; const fileUpload = screen.getByTestId('fileuploader') as HTMLInputElement; const button = screen.getByRole('button', { name: 'Зберегти' }); @@ -192,7 +192,7 @@ describe('NewsModal', () => { render( { }} />); const titleInput = screen.getByLabelText('Заголовок:') as HTMLInputElement; - const urlInput = screen.getByLabelText('Посилання:') as HTMLInputElement; + const urlInput = screen.getByLabelText('Транслітерація для URL:') as HTMLInputElement; const textInput = screen.getByTestId('mockEditor') as HTMLTextAreaElement; const fileUpload = screen.getByTestId('fileuploader') as HTMLInputElement; @@ -242,7 +242,7 @@ describe('NewsModal', () => { ); const titleInput = screen.getByLabelText('Заголовок:') as HTMLInputElement; - const urlInput = screen.getByLabelText('Посилання:') as HTMLInputElement; + const urlInput = screen.getByLabelText('Транслітерація для URL:') as HTMLInputElement; const dateInput = screen.getByRole('textbox', { name: "date" }) as HTMLInputElement; const button = screen.getByRole('button', { name: 'Зберегти' }); @@ -299,7 +299,7 @@ describe('NewsModal', () => { ); const titleInput = screen.getByLabelText('Заголовок:') as HTMLInputElement; - const urlInput = screen.getByLabelText('Посилання:') as HTMLInputElement; + const urlInput = screen.getByLabelText('Транслітерація для URL:') as HTMLInputElement; const textInput = screen.getByTestId('mockEditor') as HTMLTextAreaElement; const dateInput = screen.getByRole('textbox', { name: "date" }) as HTMLInputElement; const fileUpload = screen.getByTestId('fileuploader') as HTMLInputElement;