Fix tests
This commit is contained in:
@ -59,7 +59,9 @@ export const FilterByAccountOwner: Story = {
|
|||||||
delay: 200,
|
delay: 200,
|
||||||
});
|
});
|
||||||
|
|
||||||
const charlesChip = canvas.getByText('Charles Test', { selector: 'li' });
|
const charlesChip = canvas.getByText('Charles Test', {
|
||||||
|
selector: 'li > span',
|
||||||
|
});
|
||||||
await userEvent.click(charlesChip);
|
await userEvent.click(charlesChip);
|
||||||
|
|
||||||
expect(await canvas.findByText('Airbnb')).toBeInTheDocument();
|
expect(await canvas.findByText('Airbnb')).toBeInTheDocument();
|
||||||
|
|||||||
@ -56,7 +56,7 @@ export const FilterByCompanyName: Story = {
|
|||||||
delay: 200,
|
delay: 200,
|
||||||
});
|
});
|
||||||
|
|
||||||
const qontoChip = canvas.getByText('Qonto', { selector: 'li' });
|
const qontoChip = canvas.getByText('Qonto', { selector: 'li > span' });
|
||||||
await userEvent.click(qontoChip);
|
await userEvent.click(qontoChip);
|
||||||
|
|
||||||
expect(await canvas.findByText('Alexandre Prot')).toBeInTheDocument();
|
expect(await canvas.findByText('Alexandre Prot')).toBeInTheDocument();
|
||||||
|
|||||||
Reference in New Issue
Block a user