Refactor fast follow on column move feature (#1665)

* Refactor fast follow on column move feature

* Fix lint
This commit is contained in:
Charles Bochet
2023-09-19 16:42:11 -07:00
committed by GitHub
parent cb05b1fbc9
commit 8c21dc8bba
12 changed files with 66 additions and 75 deletions

View File

@ -46,17 +46,16 @@ export const FilterByName: Story = {
delay: 200,
});
await sleep(50);
await sleep(200);
expect(await canvas.findByText('Airbnb')).toBeInTheDocument();
expect(await canvas.findByText('Aircall')).toBeInTheDocument();
await sleep(50);
await expect(canvas.queryAllByText('Qonto')).toStrictEqual([]);
expect(await canvas.queryAllByText('Qonto')).toStrictEqual([]);
const accountOwnerFilter = canvas.getAllByText('Name').find((item) => {
const nameFilter = canvas.getAllByText('Name').find((item) => {
return item.parentElement?.textContent?.includes('Name: Air');
});
expect(accountOwnerFilter).toBeInTheDocument();
expect(nameFilter).toBeInTheDocument();
},
};

View File

@ -280,7 +280,7 @@ export const SelectRelationWithKeys: Story = {
await userEvent.type(relationInput, '{enter}');
await sleep(50);
await sleep(200);
const allAirbns = await canvas.findAllByText('Aircall');
expect(allAirbns.length).toBe(1);