Fix tests

This commit is contained in:
Charles Bochet
2023-06-01 01:09:48 +02:00
parent 5b545e5bc6
commit 1ff1dd252c
2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,9 @@ export const FilterByAccountOwner: Story = {
delay: 200,
});
const charlesChip = canvas.getByText('Charles Test', { selector: 'li' });
const charlesChip = canvas.getByText('Charles Test', {
selector: 'li > span',
});
await userEvent.click(charlesChip);
expect(await canvas.findByText('Airbnb')).toBeInTheDocument();

View File

@ -56,7 +56,7 @@ export const FilterByCompanyName: Story = {
delay: 200,
});
const qontoChip = canvas.getByText('Qonto', { selector: 'li' });
const qontoChip = canvas.getByText('Qonto', { selector: 'li > span' });
await userEvent.click(qontoChip);
expect(await canvas.findByText('Alexandre Prot')).toBeInTheDocument();