Files
faunosteo/apps/app/tests/unit/editor-no-loss.test.tsx
T
bchanot 4d2c64f57f feat(editor): creation on the drawing then the creation dialog
U2 Task 7 (A2, A4, A5, A7, A12, A15; R-3, R-4, R-12, R-13, R-14).
The work store's `creation` owns the new shape, its form, its view and
F: a click with the point tool, a closed tracing or a keyboard
« Ajouter … » opens « Nouveau point / zone / accès », a modal without
a history layer over the right column, mounted beside EditOnly so a
read-only flip keeps it (« Créer », « Replacer », « Reprendre » off).
A new zone or link is a creation from its first vertex. The ghost
takes the form's category colour; the point tool previews under a
mouse; the canvas carries data-creating (other markers dimmed,
unselectable). « Replacer le point » / « Reprendre le tracé » hide the
dialog and keep the form; the strip offers « Revenir aux propriétés »,
« Retirer le dernier sommet », « Abandonner ». « Créer »: one insert,
tool back to « Sélectionner », the new element selected, « Point
créé · Défaire », focus on its row. ✕, Échap, « Abandonner » and Back
always ask « Abandonner la création ? » (DiscardConfirm inside the
dialog; DrawingGuardDialog elsewhere); answerDrawing drops the
creation. Undo, its shortcuts and the line's « Défaire » are inactive
during a creation. missingFields replaces formProblem (MissingSummary
shared with the edit form); the C26 notice has no numbers.
CreationPanel, formProblem, withGeometry and the keys required.fields,
required.names and create_cancel are gone; GeometryGroup is imported
by RepairDialog only.

Removed or rewritten assertions:
- tab « holds a point at the frame centre »: « Centre x » = 50 ->
  the ghost circle cx = 50; plus tool back to Sélectionner, « Point
  créé », one undo step.
- tab « refuses a creation without laterality »: the general line
  « Choisissez la catégorie et la latéralité » -> only « Choisissez
  une latéralité. » and « À compléter : Latéralité. », focus on it.
- tab « applies the geometry group to a pending zone »: removed (A8,
  no coordinate field) -> « places a triangle at the centre: the ghost
  shows it, Créer inserts it »; vertex edits after Créer are the e2e
  keyboard test.
- tab C26 « proposes C »: « x = 15, y = 15 » in the notice -> the R-4
  text, the notice inside the dialog; cancel test « Centre x » = 0 ->
  ghost cx = 0.
- tab « offers the correction when the core refuses a pending point »
  (typed cx 98): removed, no typed coordinate is possible; the verdict
  path stays covered by the C26 click tests and correctionFor units.
- tab H5 « a typed radius shows the core issue »: removed (A8); the
  size refusal is the slider's (Task 4 tests).
- tab H6 « a second click moves the pending point »: -> « Replacer le
  point », then the click moves the ghost, the form kept.
- tab H7 « Centre x/y » = 30/50 -> ghost cx/cy.
- tab tracing Enter: « x du sommet 3 » -> ghost points; « drops the
  tracing on Escape » -> Escape asks first (board 32 row 3), Continuer
  keeps, Abandonner drops; new « Annuler le tracé acts at once ».
- keep-alive « a pending creation is kept and focused » and « a
  tracing … is kept and focused »: the tab now asks first (R-12) ->
  « Continuer » keeps the tracing / the form, « Abandonner » goes.
- sections « its panel takes the focus » -> its dialog's
  [data-creation-focus] takes it.
- no-loss « pending creation with its name » (hidden with the body) ->
  the dialog stays across the crossing, read-only, Créer off (R-14).
- point-edit A5 « Rayon » = 7 / 9 -> ghost r = 7 / 9.
- e2e editor-annotations keyboard test « numeric position » (cx field
  250) -> UX_TESTS Keyboard: zone added, vertex added and removed,
  moved by the move mode, validated, saved. The « Fermer le tracé »
  step runs under expectNoShift again (shortcut removed).
- e2e editor-geometry C26: the proposed x, y read from the notice
  text -> from the overlay's correction circle; the R-4 text checked
  in the dialog.
- e2e editor-deselect « Escape cancels the tracing only » -> Escape
  asks, « Abandonner » cancels it, the selection kept.
- e2e editor-shell-crossing « keeps its tool and its pending
  creation » (field hidden) -> the dialog stays read-only, Créer off,
  then editable on widening.
2026-11-17 23:32:42 +01:00

593 lines
21 KiB
TypeScript

/** U1 Lot B2b: a 1 024 px crossing or a recovery decision never loses typed input. */
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import {
act,
cleanup,
fireEvent,
screen,
waitFor,
within,
} from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { useAuthStore } from '@/state/authStore'
import { useLocaleStore } from '@/state/localeStore'
import { drawnText, emptyText, insert, point } from '../helpers/editorFixtures'
import {
SHEET,
USER,
VERSION,
baseText,
copyKeyOf,
resetStore,
serverHas,
storedCopy,
store,
sb,
} from '../helpers/editorHarness'
import {
adminAnswer,
grant,
mountDraft,
round,
setWidth,
} from '../helpers/editorRoute'
vi.mock('@/lib/supabase', () => ({ getSupabaseClient: () => ({}) }))
vi.mock('@faunosteo/supabase', async (orig) => ({
...(await orig<typeof import('@faunosteo/supabase')>()),
getSheetVersion: vi.fn(),
downloadSheetDrawing: vi.fn(),
saveSheetDraft: vi.fn(),
getOfficialSheetAdmin: vi.fn(),
submitSheetReview: vi.fn(),
}))
beforeEach(() => {
useLocaleStore.setState({ locale: 'fr' })
const identity = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 }
Object.defineProperty(window.SVGElement.prototype, 'getScreenCTM', {
configurable: true,
value: () => ({ ...identity, inverse: () => identity }),
})
})
afterEach(() => {
cleanup()
resetStore()
setWidth(1024)
})
const ready = () =>
screen.findByRole('heading', { level: 1, name: 'Brouillon, version 4' })
const tab = (name: string | RegExp) => screen.getByRole('tab', { name })
const button = (name: string | RegExp) => screen.getByRole('button', { name })
const place = (name: string) =>
document.querySelector<HTMLElement>(`[data-place="${name}"]`)!
const byId = (id: string) => document.getElementById(id) as HTMLInputElement
/** A real window resize across the 1 024 px edit threshold. */
function cross(width: number) {
act(() => {
setWidth(width)
window.dispatchEvent(new Event('resize'))
})
}
async function mount(text = baseText()) {
serverHas(text, 3)
const user = userEvent.setup()
mountDraft()
await ready()
return user
}
function duplicateIds(): string[] {
const seen = new Map<string, number>()
for (const element of document.querySelectorAll('[id]')) {
seen.set(element.id, (seen.get(element.id) ?? 0) + 1)
}
return [...seen].filter(([, count]) => count > 1).map(([id]) => id)
}
const detail = (extra: object = {}) =>
({
kind: 'view',
value: {
kind: 'detail',
id: 'view-d',
name: { fr: 'Détail', en: 'Detail' },
svg_asset_id: null,
view_box: { min_x: 0, min_y: 0, width: 50, height: 50 },
parent_view_id: 'view-main',
...extra,
},
}) as Parameters<typeof insert>[1]
const spareCategory = (text: string) =>
insert(text, {
kind: 'category',
value: { id: 'cat-spare', name: { fr: 'Libre', en: 'Free' }, color: null },
})
type User = ReturnType<typeof userEvent.setup>
/** Types in `#id`, crosses below 1 024 px, checks the part left the page, widens, checks it is back. */
async function keepsTypedValue(
user: User,
id: string,
controlName: string,
addName: string,
) {
const field = byId(id)
await user.type(field, 'Saisie')
cross(800)
expect(field.closest('[hidden]')).not.toBeNull()
expect(screen.queryByRole('textbox', { name: controlName })).toBeNull()
expect(screen.queryByRole('button', { name: addName })).toBeNull()
cross(1280)
expect(byId(id)).toBe(field)
expect(field).toBeVisible()
expect(field).toHaveValue('Saisie')
expect(store.getState().unsaved).toBe(false)
}
describe('typed values come back after a 1 024 px crossing', () => {
it('the category creation form', async () => {
const user = await mount()
await user.click(tab('Annotations'))
await user.click(button('Modifier les catégories'))
await keepsTypedValue(
user,
'category-new-fr',
'Nom de la catégorie (FR)',
'Ajouter la catégorie',
)
})
it('the region creation form', async () => {
const user = await mount()
await user.click(tab('Annotations'))
await user.click(
document.querySelector<HTMLElement>('[data-section-entry="regions"]')!,
)
await keepsTypedValue(user, 'region-new-code', 'Code', 'Ajouter la région')
})
it('the detail view creation form', async () => {
const user = await mount()
await user.click(tab('Annotations'))
await user.click(button('Gérer les vues'))
await keepsTypedValue(user, 'view-new-fr', 'Nom (FR)', 'Ajouter la vue')
})
it('the findings creation form: kept in its dialog, read-only while narrow, focus kept', async () => {
const user = await mount()
await user.click(tab('Constats'))
await user.click(button('Ajouter une zone'))
const field = byId('finding-new-name-fr')
await user.type(field, 'Saisie')
expect(field).toHaveFocus()
cross(900)
// no edit part leaves the page: the dialog keeps the draft, says why, writes nothing
expect(field).toBeVisible()
expect(field).toHaveAttribute('readonly')
expect(field).toHaveAttribute('aria-readonly', 'true')
expect(field).toHaveValue('Saisie')
expect(field).toHaveFocus()
expect(screen.getByText(/Élargissez la fenêtre/)).toBeInTheDocument()
expect(button('Créer')).toBeDisabled()
expect(store.getState().unsaved).toBe(false)
cross(1280)
expect(byId('finding-new-name-fr')).toBe(field)
expect(field).not.toHaveAttribute('readonly')
expect(field).toHaveValue('Saisie')
expect(field).toHaveFocus()
expect(screen.queryByText(/Élargissez la fenêtre/)).toBeNull()
expect(button('Créer')).toBeEnabled()
expect(store.getState().unsaved).toBe(false)
})
it('the submission note', async () => {
const user = await mount()
await user.click(tab(/Vérification/))
await keepsTypedValue(
user,
'verification-note',
'Note de soumission (obligatoire)',
'Soumettre à la revue',
)
})
it('the crop group editor, open, with the typed numbers', async () => {
const user = await mount(insert(drawnText(), detail()))
await user.click(tab('Annotations'))
await user.click(button('Gérer les vues'))
await user.click(button('Modifier le recadrage'))
const field = byId('view-view-d-crop-min_x')
await user.clear(field)
await user.type(field, '7x')
cross(800)
expect(field.closest('[hidden]')).not.toBeNull()
expect(screen.queryByRole('group', { name: 'Recadrage' })).toBeNull()
expect(byId('ro-view-view-d-crop-min_x')).toBeTruthy()
cross(1280)
expect(byId('view-view-d-crop-min_x')).toBe(field)
expect(field).toHaveValue('7x')
expect(store.getState().unsaved).toBe(false)
})
// U2 Task 7 (R-14): the creation dialog is mounted outside the edit-only body.
it('a creation open: a crossing keeps the dialog, its form and the ghost, « Créer » off', async () => {
const user = await mount(baseText())
const drawing = within(place('annotations.drawing'))
await waitFor(() =>
expect(drawing.getByRole('button', { name: 'Zone' })).toBeEnabled(),
)
await user.click(drawing.getByRole('button', { name: 'Zone' }))
await user.click(drawing.getByRole('button', { name: 'Ajouter un point' }))
const dialog = await screen.findByRole('dialog', { name: 'Nouveau point' })
const name = within(dialog).getByLabelText('Nom (FR)')
await user.type(name, 'Futur point')
cross(800)
const kept = screen.getByRole('dialog', { name: 'Nouveau point' })
expect(within(kept).getByLabelText('Nom (FR)')).toHaveValue('Futur point')
expect(within(kept).getByLabelText('Nom (FR)')).toHaveAttribute('readonly')
expect(within(kept).getByRole('button', { name: 'Créer' })).toBeDisabled()
expect(
within(kept).getByRole('button', { name: 'Replacer le point' }),
).toBeDisabled()
expect(screen.getByTestId('overlay-ghost')).toBeInTheDocument()
cross(1280)
const back = screen.getByRole('dialog', { name: 'Nouveau point' })
expect(within(back).getByLabelText('Nom (FR)')).toHaveValue('Futur point')
expect(within(back).getByLabelText('Nom (FR)')).not.toHaveAttribute(
'readonly',
)
expect(within(back).getByRole('button', { name: 'Créer' })).toBeEnabled()
expect(screen.getByTestId('overlay-ghost')).toBeInTheDocument()
expect(store.getState().unsaved).toBe(false)
})
})
describe('the guards of a width change', () => {
it('commits a typed, unblurred field before the editor turns read-only', async () => {
const user = await mount()
await user.click(tab('Général'))
const field = byId('general-name-fr')
await user.click(field)
fireEvent.change(field, { target: { value: 'Nom saisi' } })
expect(store.getState().unsaved).toBe(false)
cross(800)
expect(store.getState().undo).toHaveLength(1)
expect(JSON.parse(store.getState().documentText).name.fr).toBe('Nom saisi')
expect(store.getState().unsaved).toBe(true)
await waitFor(() => expect(storedCopy()).not.toBeNull())
expect(document.activeElement).toBe(tab('Général'))
})
it('the focus of an editing control goes to « Plus » when the shown tab left the row', async () => {
const user = await mount()
await user.click(tab('Références'))
const add = button('Ajouter une référence')
act(() => add.focus())
cross(500)
expect(document.activeElement).toBe(button('Plus'))
})
it('a focused button of a hidden part hands its focus to the shown tab', async () => {
const user = await mount()
await user.click(tab('Annotations'))
await user.click(button('Modifier les catégories'))
const add = button('Ajouter la catégorie')
act(() => add.focus())
cross(800)
expect(add.closest('[hidden]')).not.toBeNull()
expect(document.activeElement).toBe(tab('Annotations'))
})
it('a focused drawing tool hands its focus to the shown tab', async () => {
const user = await mount()
await waitFor(() => expect(button('Zone')).toBeEnabled())
await user.click(button('Zone'))
expect(document.activeElement).toBe(button('Zone'))
cross(800)
expect(document.activeElement).toBe(tab('Annotations'))
})
it('a focused tab button stays where it is', async () => {
await mount()
const findings = tab('Constats')
act(() => findings.focus())
cross(800)
expect(document.activeElement).toBe(findings)
})
it('the references search, shown in both modes, keeps its focus and its text', async () => {
const user = await mount()
await user.click(tab('Références'))
const body = screen.getByRole('tabpanel', { name: 'Références' })
const search = within(body).getByRole('searchbox', {
name: 'Rechercher une référence',
})
await user.type(search, 'code')
expect(document.activeElement).toBe(search)
cross(800)
expect(document.activeElement).toBe(search)
expect(search).toHaveValue('code')
cross(1280)
expect(document.activeElement).toBe(search)
})
it('a crossing with the focus on no field leaves the focus alone', async () => {
const user = await mount()
await user.click(tab('Général'))
;(document.activeElement as HTMLElement).blur()
cross(800)
expect(document.activeElement).toBe(document.body)
})
it('a field that switches in place loses a refused value, a field of a kept part keeps it', async () => {
const user = await mount()
await user.click(tab('Général'))
const general = byId('general-name-fr')
await user.clear(general)
cross(800)
cross(1280)
expect(byId('general-name-fr')).toHaveValue('Fiche')
await user.click(tab('Annotations'))
await user.click(button('Modifier les catégories'))
await user.type(byId('category-new-en'), 'Gardé')
cross(800)
cross(1280)
expect(byId('category-new-en')).toHaveValue('Gardé')
})
it('drops a drag in flight without a commit', async () => {
const user = await mount()
const drawing = place('annotations.drawing')
await user.click(
within(drawing).getAllByRole('button', { name: /Point|anno-a/ })[0],
)
const marker = () =>
drawing.querySelector<Element>('[data-anno-id="anno-a"]')!
await waitFor(() => expect(marker()).not.toBeNull())
fireEvent.pointerDown(marker(), {
clientX: 50,
clientY: 50,
button: 0,
pointerId: 1,
})
fireEvent.pointerMove(marker(), {
clientX: 70,
clientY: 50,
pointerId: 1,
buttons: 1,
})
const version = store.getState().handleVersion
cross(800)
cross(1280)
await waitFor(() => expect(marker()).not.toBeNull())
fireEvent.pointerUp(marker(), { clientX: 70, clientY: 50, pointerId: 1 })
expect(store.getState().handleVersion).toBe(version)
expect(store.getState().unsaved).toBe(false)
})
it('closes a delete confirmation and the discard confirmation when the editor turns read-only', async () => {
const user = await mount(spareCategory(baseText()))
await user.click(tab('Annotations'))
await user.click(button('Modifier les catégories'))
await user.click(screen.getAllByRole('button', { name: 'Supprimer' })[1])
expect(document.querySelectorAll('dialog[open]')).toHaveLength(1)
cross(800)
await waitFor(() =>
expect(document.querySelectorAll('dialog[open]')).toHaveLength(0),
)
cross(1280)
expect(document.querySelectorAll('dialog[open]')).toHaveLength(0)
expect(JSON.parse(store.getState().documentText).categories).toHaveLength(2)
// the discard confirmation: opened on unsaved work, closed by a recovery block
fireEvent.change(byId('category-new-fr'), { target: { value: 'x' } })
act(
() =>
void store.getState().commit({
op: 'update',
key: { kind: 'annotation', id: 'anno-a' },
element: point('anno-a', 60, 50, 5),
}),
)
await user.click(button('Abandonner les modifications'))
expect(document.querySelectorAll('dialog[open]')).toHaveLength(1)
act(() => store.setState({ recovery: 'pending' }))
await waitFor(() =>
expect(document.querySelectorAll('dialog[open]')).toHaveLength(0),
)
})
})
describe('ids stay unique', () => {
async function everyPlace(user: User) {
const names = ['Général', 'Constats', 'Références', /Vérification/]
for (const name of [...names, 'Annotations']) {
await user.click(tab(name))
}
await user.click(button('Gérer les vues'))
await user.click(button('Modifier le recadrage'))
await user.click(button('Retour au dessin'))
}
const text = () => insert(baseText(), detail())
it('in edit mode and after a crossing, nothing selected', async () => {
const user = await mount(text())
await everyPlace(user)
expect(duplicateIds()).toEqual([])
cross(800)
expect(duplicateIds()).toEqual([])
cross(1280)
expect(duplicateIds()).toEqual([])
})
it('with a selection, the read-only twin takes its own ids', async () => {
const user = await mount(text())
await everyPlace(user)
const list = within(place('annotations.drawing')).getByRole('list', {
name: 'Annotations de la vue',
})
await user.click(within(list).getAllByRole('button')[0])
expect(duplicateIds()).toEqual([])
cross(800)
expect(duplicateIds()).toEqual([])
const twin = screen
.getAllByRole('list', { name: 'Annotations de la vue' })
.find((candidate) => !candidate.closest('[hidden]'))!
await user.click(within(twin).getAllByRole('button')[0])
expect(duplicateIds()).toEqual([])
expect(screen.getByTestId('annotation-read')).toBeInTheDocument()
cross(1280)
expect(duplicateIds()).toEqual([])
// The properties dialog's edit form, kept through a flip (R-14): its own ids.
await user.click(screen.getByRole('button', { name: 'Propriétés' }))
const dialog = await screen.findByRole('dialog')
await user.click(within(dialog).getByRole('button', { name: 'Modifier' }))
expect(document.getElementById('annotation-edit-fr')).not.toBeNull()
expect(duplicateIds()).toEqual([])
cross(800)
expect(document.getElementById('annotation-edit-fr')).not.toBeNull()
expect(duplicateIds()).toEqual([])
})
})
describe('focus requests', () => {
it('go to the visible annotation body only', async () => {
const bare = point('anno-bare', 10, 10, 2)
const value = {
...bare.value,
geometry: null,
name: { fr: 'Sans tracé', en: 'Bare' },
}
const user = await mount(
insert(baseText(), { kind: 'annotation', value } as typeof bare),
)
cross(800)
await user.click(tab(/Vérification/))
fireEvent.click(
screen.getAllByRole('button', { name: 'Aller à Sans tracé' })[0],
)
const visible = (id: string) =>
[...document.querySelectorAll(`[data-testid="${id}"]`)].filter(
(element) => !element.closest('[hidden]'),
)
// Below 1 024 px the twin reads it inline (R-16; U2 Task 6: no properties panel).
await waitFor(() => expect(visible('annotation-read')).toHaveLength(1))
cross(1280)
expect(visible('annotation-read')).toHaveLength(0)
expect(visible('annotation-overview')).toHaveLength(1)
})
})
describe('edit-only parts of a page opened read-only', () => {
it('a page opened narrow has no edit body and no creation form', async () => {
serverHas(baseText(), 3)
mountDraft({ width: 800 })
await ready()
expect(document.querySelector('[data-place] [data-place]')).toBeNull()
expect(screen.queryByRole('button', { name: 'Zone' })).toBeNull()
expect(screen.queryByTestId('annotation-canvas')).toBeNull()
cross(1280)
await waitFor(() =>
expect(screen.getByTestId('annotation-canvas')).toBeVisible(),
)
})
})
describe('recovery decisions', () => {
function seedCopy() {
sessionStorage.setItem(
copyKeyOf(),
JSON.stringify({
v: 1,
user_id: USER,
version_id: VERSION,
sheet_id: SHEET,
sheet_name: 'Fiche',
revision: 3,
written_at: '2026-11-03T10:00:00Z',
document: JSON.parse(emptyText()),
drawings: [],
}),
)
}
it('a pending offer at opening: no edit part, empty forms after the answer', async () => {
seedCopy()
const user = await mount()
expect(byId('category-new-fr')).toBeNull()
expect(screen.getByTestId('catalogue-canvas')).toBeVisible()
await user.click(button('Ignorer la copie'))
await user.click(
within(await screen.findByRole('dialog')).getByRole('button', {
name: 'Abandonner la copie',
}),
)
await waitFor(() => expect(store.getState().recovery).toBe('none'))
await user.click(tab('Annotations'))
await user.click(button('Modifier les catégories'))
expect(byId('category-new-fr')).toHaveValue('')
})
it('rights to edit inside one mount with a copy: no edit part before the offer', async () => {
seedCopy()
serverHas(baseText(), 3)
mountDraft({ grants: [grant('sheet_reviewer')] })
await ready()
act(() => useAuthStore.setState({ catalogGrants: [grant('sheet_editor')] }))
await waitFor(() => expect(store.getState().recovery).toBe('pending'))
expect(byId('category-new-fr')).toBeNull()
expect(screen.getByTestId('catalogue-canvas')).toBeVisible()
})
it('an offer pending mid-session keeps the hidden drafts across the answer', async () => {
const user = await mount()
await user.click(tab('Annotations'))
await user.click(button('Modifier les catégories'))
await user.type(byId('category-new-fr'), 'Brouillon')
act(() =>
useAuthStore.setState({ catalogGrants: [grant('sheet_reviewer')] }),
)
await waitFor(() =>
expect(byId('category-new-fr').closest('[hidden]')).not.toBeNull(),
)
seedCopy()
act(() => useAuthStore.setState({ catalogGrants: [grant('sheet_editor')] }))
await waitFor(() => expect(store.getState().recovery).toBe('pending'))
expect(byId('category-new-fr').closest('[hidden]')).not.toBeNull()
await user.click(button('Ignorer la copie'))
await user.click(
within(await screen.findByRole('dialog')).getByRole('button', {
name: 'Abandonner la copie',
}),
)
await waitFor(() => expect(store.getState().recovery).toBe('none'))
expect(byId('category-new-fr')).toHaveValue('Brouillon')
expect(byId('category-new-fr')).toBeVisible()
})
})
describe('the route after a submission', () => {
it.each(['verification_failed', 'changes_requested', 'withdrawn'])(
'a refresh that keeps the draft editable (%s) re-enables editing',
async (status) => {
const user = await mount()
sb.submitSheetReview.mockResolvedValue('review-1' as never)
await user.click(tab(/Vérification/))
await user.type(byId('verification-note'), 'Prête')
sb.getOfficialSheetAdmin.mockResolvedValue(
adminAnswer({ rounds: [round(status)] }) as never,
)
await user.click(button('Soumettre à la revue'))
await waitFor(() => expect(sb.submitSheetReview).toHaveBeenCalled())
await waitFor(() => expect(store.getState().canEdit).toBe(true))
await waitFor(() => expect(byId('verification-note')).toBeVisible())
expect(button('Soumettre à la revue')).toBeTruthy()
},
)
})