Rework tel input (#1316)

* Rework tel input

* Fix lint
This commit is contained in:
Charles Bochet
2023-08-25 20:54:00 +02:00
committed by GitHub
parent 4f7e1fb60e
commit 67cf6cd7e2
10 changed files with 127 additions and 226 deletions

View File

@ -51,13 +51,21 @@ export const InteractWithManyRows: Story = {
canvas.queryByTestId('editable-cell-edit-mode-container'),
).toBeNull();
await userEvent.click(firstRowEmailCell);
if (!firstRowEmailCell.parentElement) {
throw new Error('No parent node');
}
await userEvent.click(firstRowEmailCell.parentElement);
expect(
canvas.queryByTestId('editable-cell-edit-mode-container'),
).toBeInTheDocument();
await userEvent.click(secondRowEmailCell);
if (!secondRowEmailCell.parentElement) {
throw new Error('No parent node');
}
await userEvent.click(secondRowEmailCell.parentElement);
await sleep(25);
@ -65,7 +73,7 @@ export const InteractWithManyRows: Story = {
canvas.queryByTestId('editable-cell-edit-mode-container'),
).toBeNull();
await userEvent.click(secondRowEmailCell);
await userEvent.click(secondRowEmailCell.parentElement);
await sleep(25);