fix: add list for query
This commit is contained in:
parent
066df51b58
commit
b48e0e1247
@ -25,10 +25,6 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
>
|
>
|
||||||
Заказы
|
Заказы
|
||||||
</a>
|
</a>
|
||||||
<hr
|
|
||||||
aria-orientation="vertical"
|
|
||||||
class="chakra-divider css-zw0v9u"
|
|
||||||
/>
|
|
||||||
<a
|
<a
|
||||||
class="chakra-button css-g11sl9"
|
class="chakra-button css-g11sl9"
|
||||||
data-testid="master-button"
|
data-testid="master-button"
|
||||||
@ -36,6 +32,12 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
>
|
>
|
||||||
Мастера
|
Мастера
|
||||||
</a>
|
</a>
|
||||||
|
<a
|
||||||
|
class="chakra-button css-19byqlw"
|
||||||
|
href="/map"
|
||||||
|
>
|
||||||
|
Карта заказов
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -46,7 +48,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
class="css-1glkkdp"
|
class="css-1glkkdp"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="css-sd3fvu"
|
class="css-1dvg3xs"
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
class="chakra-heading css-1jb3vzl"
|
class="chakra-heading css-1jb3vzl"
|
||||||
@ -62,6 +64,45 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
Добавить
|
Добавить
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="css-1u3smh"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="chakra-button css-ez23ye"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="chakra-icon css-onkibi"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
|
||||||
|
fill="currentColor"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<p
|
||||||
|
class="chakra-text css-52ukzg"
|
||||||
|
>
|
||||||
|
17.03.2025
|
||||||
|
</p>
|
||||||
|
<button
|
||||||
|
class="chakra-button css-ez23ye"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="chakra-icon css-onkibi"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
|
||||||
|
fill="currentColor"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<table
|
<table
|
||||||
class="chakra-table css-5605sr"
|
class="chakra-table css-5605sr"
|
||||||
>
|
>
|
||||||
@ -216,11 +257,11 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
class="css-zgoslk"
|
class="css-zgoslk"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-controls="menu-list-:r2:"
|
aria-controls="menu-list-:r3:"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-haspopup="menu"
|
aria-haspopup="menu"
|
||||||
class="chakra-button chakra-menu__menu-button css-13sr8jm"
|
class="chakra-button chakra-menu__menu-button css-13sr8jm"
|
||||||
id="menu-button-:r2:"
|
id="menu-button-:r3:"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
@ -251,7 +292,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
<div
|
<div
|
||||||
aria-orientation="vertical"
|
aria-orientation="vertical"
|
||||||
class="chakra-menu__menu-list css-s5t7bz"
|
class="chakra-menu__menu-list css-s5t7bz"
|
||||||
id="menu-list-:r2:"
|
id="menu-list-:r3:"
|
||||||
role="menu"
|
role="menu"
|
||||||
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.8) translateZ(0);"
|
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.8) translateZ(0);"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@ -260,7 +301,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
class="chakra-menu__menuitem css-y7jzs3"
|
class="chakra-menu__menuitem css-y7jzs3"
|
||||||
data-index="0"
|
data-index="0"
|
||||||
id="menu-list-:r2:-menuitem-:r3:"
|
id="menu-list-:r3:-menuitem-:r4:"
|
||||||
role="menuitem"
|
role="menuitem"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="button"
|
type="button"
|
||||||
@ -391,11 +432,11 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
class="css-zgoslk"
|
class="css-zgoslk"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-controls="menu-list-:r5:"
|
aria-controls="menu-list-:r6:"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-haspopup="menu"
|
aria-haspopup="menu"
|
||||||
class="chakra-button chakra-menu__menu-button css-13sr8jm"
|
class="chakra-button chakra-menu__menu-button css-13sr8jm"
|
||||||
id="menu-button-:r5:"
|
id="menu-button-:r6:"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
@ -426,7 +467,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
<div
|
<div
|
||||||
aria-orientation="vertical"
|
aria-orientation="vertical"
|
||||||
class="chakra-menu__menu-list css-s5t7bz"
|
class="chakra-menu__menu-list css-s5t7bz"
|
||||||
id="menu-list-:r5:"
|
id="menu-list-:r6:"
|
||||||
role="menu"
|
role="menu"
|
||||||
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.8) translateZ(0);"
|
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.8) translateZ(0);"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@ -435,7 +476,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
class="chakra-menu__menuitem css-y7jzs3"
|
class="chakra-menu__menuitem css-y7jzs3"
|
||||||
data-index="0"
|
data-index="0"
|
||||||
id="menu-list-:r5:-menuitem-:r6:"
|
id="menu-list-:r6:-menuitem-:r7:"
|
||||||
role="menuitem"
|
role="menuitem"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="button"
|
type="button"
|
||||||
@ -571,11 +612,11 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
class="css-zgoslk"
|
class="css-zgoslk"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-controls="menu-list-:r8:"
|
aria-controls="menu-list-:r9:"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-haspopup="menu"
|
aria-haspopup="menu"
|
||||||
class="chakra-button chakra-menu__menu-button css-13sr8jm"
|
class="chakra-button chakra-menu__menu-button css-13sr8jm"
|
||||||
id="menu-button-:r8:"
|
id="menu-button-:r9:"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
@ -606,7 +647,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
<div
|
<div
|
||||||
aria-orientation="vertical"
|
aria-orientation="vertical"
|
||||||
class="chakra-menu__menu-list css-s5t7bz"
|
class="chakra-menu__menu-list css-s5t7bz"
|
||||||
id="menu-list-:r8:"
|
id="menu-list-:r9:"
|
||||||
role="menu"
|
role="menu"
|
||||||
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.8) translateZ(0);"
|
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.8) translateZ(0);"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@ -615,7 +656,7 @@ exports[`Master Page should display master list and show details when master but
|
|||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
class="chakra-menu__menuitem css-y7jzs3"
|
class="chakra-menu__menuitem css-y7jzs3"
|
||||||
data-index="0"
|
data-index="0"
|
||||||
id="menu-list-:r8:-menuitem-:r9:"
|
id="menu-list-:r9:-menuitem-:ra:"
|
||||||
role="menuitem"
|
role="menuitem"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -25,10 +25,6 @@ exports[`Страница заказов должна корректно ото
|
|||||||
>
|
>
|
||||||
Заказы
|
Заказы
|
||||||
</a>
|
</a>
|
||||||
<hr
|
|
||||||
aria-orientation="vertical"
|
|
||||||
class="chakra-divider css-zw0v9u"
|
|
||||||
/>
|
|
||||||
<a
|
<a
|
||||||
class="chakra-button css-g11sl9"
|
class="chakra-button css-g11sl9"
|
||||||
data-testid="master-button"
|
data-testid="master-button"
|
||||||
@ -36,6 +32,12 @@ exports[`Страница заказов должна корректно ото
|
|||||||
>
|
>
|
||||||
Мастера
|
Мастера
|
||||||
</a>
|
</a>
|
||||||
|
<a
|
||||||
|
class="chakra-button css-g11sl9"
|
||||||
|
href="/auth/login"
|
||||||
|
>
|
||||||
|
Карта заказов
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -71,7 +73,7 @@ exports[`Страница заказов должна корректно ото
|
|||||||
<p
|
<p
|
||||||
class="chakra-text css-52ukzg"
|
class="chakra-text css-52ukzg"
|
||||||
>
|
>
|
||||||
12.03.2025
|
17.03.2025
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
class="chakra-button css-ez23ye"
|
class="chakra-button css-ez23ye"
|
||||||
@ -264,13 +266,9 @@ exports[`Страница заказов должна корректно ото
|
|||||||
<td
|
<td
|
||||||
class="css-zgoslk"
|
class="css-zgoslk"
|
||||||
>
|
>
|
||||||
<button
|
<a
|
||||||
aria-controls="popover-content-:r1:"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="dialog"
|
|
||||||
class="chakra-button css-ez23ye"
|
class="chakra-button css-ez23ye"
|
||||||
id="popover-trigger-:r1:"
|
href="/auth/login/arm//auth/login?lat=55.78&lon=49.12¤tDate=Mon Mar 17 2025 20:55:45 GMT+0300 (Moscow Standard Time)"
|
||||||
type="button"
|
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
class="chakra-icon css-onkibi"
|
class="chakra-icon css-onkibi"
|
||||||
@ -290,54 +288,7 @@ exports[`Страница заказов должна корректно ото
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</a>
|
||||||
<div
|
|
||||||
class="chakra-popover__popper css-iy22zq"
|
|
||||||
style="visibility: hidden; position: absolute; min-width: max-content; inset: 0 auto auto 0;"
|
|
||||||
>
|
|
||||||
<section
|
|
||||||
aria-describedby="popover-body-:r1:"
|
|
||||||
class="chakra-popover__content css-sjj62m"
|
|
||||||
id="popover-content-:r1:"
|
|
||||||
role="dialog"
|
|
||||||
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.95) translateZ(0);"
|
|
||||||
tabindex="-1"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="chakra-popover__arrow-positioner css-0"
|
|
||||||
data-popper-arrow=""
|
|
||||||
style="position: absolute;"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="chakra-popover__arrow css-0"
|
|
||||||
data-popper-arrow-inner=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
aria-label="Close"
|
|
||||||
class="chakra-popover__close-btn css-1o8qips"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="chakra-icon css-onkibi"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"
|
|
||||||
fill="currentColor"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
<div
|
|
||||||
class="chakra-popover__body css-45vz3u"
|
|
||||||
id="popover-body-:r1:"
|
|
||||||
>
|
|
||||||
Казань, ул. Баумана, 1
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr
|
||||||
@ -471,13 +422,9 @@ exports[`Страница заказов должна корректно ото
|
|||||||
<td
|
<td
|
||||||
class="css-zgoslk"
|
class="css-zgoslk"
|
||||||
>
|
>
|
||||||
<button
|
<a
|
||||||
aria-controls="popover-content-:r3:"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="dialog"
|
|
||||||
class="chakra-button css-ez23ye"
|
class="chakra-button css-ez23ye"
|
||||||
id="popover-trigger-:r3:"
|
href="/auth/login/arm//auth/login?lat=55.78&lon=49.12¤tDate=Mon Mar 17 2025 20:55:45 GMT+0300 (Moscow Standard Time)"
|
||||||
type="button"
|
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
class="chakra-icon css-onkibi"
|
class="chakra-icon css-onkibi"
|
||||||
@ -497,54 +444,7 @@ exports[`Страница заказов должна корректно ото
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</a>
|
||||||
<div
|
|
||||||
class="chakra-popover__popper css-iy22zq"
|
|
||||||
style="visibility: hidden; position: absolute; min-width: max-content; inset: 0 auto auto 0;"
|
|
||||||
>
|
|
||||||
<section
|
|
||||||
aria-describedby="popover-body-:r3:"
|
|
||||||
class="chakra-popover__content css-sjj62m"
|
|
||||||
id="popover-content-:r3:"
|
|
||||||
role="dialog"
|
|
||||||
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.95) translateZ(0);"
|
|
||||||
tabindex="-1"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="chakra-popover__arrow-positioner css-0"
|
|
||||||
data-popper-arrow=""
|
|
||||||
style="position: absolute;"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="chakra-popover__arrow css-0"
|
|
||||||
data-popper-arrow-inner=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
aria-label="Close"
|
|
||||||
class="chakra-popover__close-btn css-1o8qips"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="chakra-icon css-onkibi"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"
|
|
||||||
fill="currentColor"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
<div
|
|
||||||
class="chakra-popover__body css-45vz3u"
|
|
||||||
id="popover-body-:r3:"
|
|
||||||
>
|
|
||||||
Казань, ул. Баумана, 43
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -20,7 +20,7 @@ import { store } from '../../__data__/store';
|
|||||||
import Page from '../arm';
|
import Page from '../arm';
|
||||||
|
|
||||||
const server = setupServer(
|
const server = setupServer(
|
||||||
http.get('/api/arm/masters', () => {
|
http.post('/api/arm/masters/list', () => {
|
||||||
return HttpResponse.json({
|
return HttpResponse.json({
|
||||||
success: true,
|
success: true,
|
||||||
body: [
|
body: [
|
||||||
|
@ -25,7 +25,7 @@ const server = setupServer(
|
|||||||
body: [],
|
body: [],
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
http.get('/api/arm/masters', () => {
|
http.post('/api/arm/masters/list', () => {
|
||||||
return HttpResponse.json({
|
return HttpResponse.json({
|
||||||
success: true,
|
success: true,
|
||||||
body: [],
|
body: [],
|
||||||
|
@ -24,7 +24,7 @@ const server = setupServer(
|
|||||||
http.post('/api/arm/orders', () => {
|
http.post('/api/arm/orders', () => {
|
||||||
return HttpResponse.json({}, { status: 500 });
|
return HttpResponse.json({}, { status: 500 });
|
||||||
}),
|
}),
|
||||||
http.get('/api/arm/masters', () => {
|
http.post('/api/arm/masters/list', () => {
|
||||||
return HttpResponse.json({
|
return HttpResponse.json({
|
||||||
success: true,
|
success: true,
|
||||||
body: [
|
body: [
|
||||||
|
@ -55,7 +55,7 @@ const server = setupServer(
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
http.get('/api/arm/masters', () => {
|
http.post('/api/arm/masters/list', () => {
|
||||||
return HttpResponse.json({
|
return HttpResponse.json({
|
||||||
success: true,
|
success: true,
|
||||||
body: [
|
body: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user