+
+ Заказ №{{number}}
+
-
- Заказ №{{number}}
- (
- Sunday, January 19, 2025 5:04 PM
- )
-
+ 19 января 2025 г., 17:04
+
@@ -60,7 +62,7 @@ exports[`Страница просмотра заказа отображает
- А123АА16, Хэтчбек, #ffffff
+ А123АА16, Хэтчбек, Красный
С вами свяжется оператор насчет оплаты по указанному номеру телефона
+
+
+

+
+
+
+
+ Уровень загрязнения машины:
+
+
+
+ Стоимость мойки:
+
+
+ 1 800,00 ₽
+
+
+
+
+ Автомобиль имеет среднюю степень загрязнения, особенно заметно это на передней части машины, где слой грязи покрывает фары и капот. Задняя часть автомобиля также загрязнена, но не так сильно. Колеса также покрыты грязью. Судя по всему, автомобиль использовался в условиях бездорожья.
+
+
+
+
diff --git a/src/pages/__tests__/__snapshots__/ordersList.test.tsx.snap b/src/pages/__tests__/__snapshots__/ordersList.test.tsx.snap
index dd611ff..7874ebb 100644
--- a/src/pages/__tests__/__snapshots__/ordersList.test.tsx.snap
+++ b/src/pages/__tests__/__snapshots__/ordersList.test.tsx.snap
@@ -36,12 +36,6 @@ exports[`Страница заказов должна корректно ото
>
Мастера
-
- Карта заказов
-
@@ -77,7 +71,7 @@ exports[`Страница заказов должна корректно ото
- 09.03.2025
+ 12.03.2025
+
+
+
+
+
+ Казань, ул. Баумана, 1
+
+
+
-
-
+
+
+
+
+
+
+ Казань, ул. Баумана, 43
+
+
+
diff --git a/src/pages/__tests__/notFound.test.tsx b/src/pages/__tests__/notFound.test.tsx
new file mode 100644
index 0000000..28cbf2c
--- /dev/null
+++ b/src/pages/__tests__/notFound.test.tsx
@@ -0,0 +1,63 @@
+import React from 'react';
+import { render, screen } from '@testing-library/react';
+import { BrowserRouter } from 'react-router-dom';
+import { ChakraProvider } from '@chakra-ui/react';
+
+import NotFound from '../notFound/notFound';
+
+// Mock the translation hook
+jest.mock('react-i18next', () => ({
+ useTranslation: () => ({
+ t: (key: string) => {
+ const translations = {
+ 'notFound.title': 'Page Not Found',
+ 'notFound.description': 'The page you are looking for does not exist',
+ 'notFound.button.back': 'Back to Home'
+ };
+ return translations[key] || key;
+ }
+ })
+}));
+
+// Mock the Lottie Player component
+jest.mock('@lottiefiles/react-lottie-player', () => ({
+ Player: () =>
Animation Mock
+}));
+
+describe('NotFound Component', () => {
+ const renderNotFound = () => {
+ return render(
+
+
+
+
+
+ );
+ };
+
+ it('renders without crashing', () => {
+ renderNotFound();
+ });
+
+ it('displays the correct content', () => {
+ renderNotFound();
+
+ // Check if title is present
+ expect(screen.getByText('Page Not Found')).toBeInTheDocument();
+
+ // Check if description is present
+ expect(screen.getByText('The page you are looking for does not exist')).toBeInTheDocument();
+
+ // Check if back button is present
+ expect(screen.getByText('Back to Home')).toBeInTheDocument();
+
+ // Check if Lottie animation is rendered
+ expect(screen.getByTestId('lottie-animation')).toBeInTheDocument();
+ });
+
+ it('contains a link to the dry-wash page', () => {
+ renderNotFound();
+ const backButton = screen.getByText('Back to Home');
+ expect(backButton.closest('a')).toHaveAttribute('href', '/dry-wash');
+ });
+});
\ No newline at end of file
diff --git a/stubs/json/landing-order-view/id1-success-pending.json b/stubs/json/landing-order-view/id1-success-pending.json
index 8e4d176..b4c4264 100644
--- a/stubs/json/landing-order-view/id1-success-pending.json
+++ b/stubs/json/landing-order-view/id1-success-pending.json
@@ -4,7 +4,7 @@
"phone": "+79876543210",
"carNumber": "А123АА16",
"carBody": 2,
- "carColor": "#ffffff",
+ "carColor": 5,
"startWashTime": "2025-01-19T14:03:00.000Z",
"endWashTime": "2025-01-19T14:03:00.000Z",
"location": "55.793833888711006,49.19037910644527 Республика Татарстан (Татарстан), Казань, жилой район Седьмое Небо",
diff --git a/stubs/json/landing-order-view/id1-success-working.json b/stubs/json/landing-order-view/id1-success-working.json
index 5b1ee41..6256fb8 100644
--- a/stubs/json/landing-order-view/id1-success-working.json
+++ b/stubs/json/landing-order-view/id1-success-working.json
@@ -4,7 +4,7 @@
"phone": "+79876543210",
"carNumber": "А123АА16",
"carBody": 2,
- "carColor": "#ffffff",
+ "carColor": "мокрый асфальт",
"startWashTime": "2025-01-19T14:03:00.000Z",
"endWashTime": "2025-01-19T14:03:00.000Z",
"location": "55.793833888711006,49.19037910644527 Республика Татарстан (Татарстан), Казань, жилой район Седьмое Небо",