Skip to content

The open alternative to Salesforce, designed for AI.

Fix tests

Charles Bochet043fe3a7abbe
diff --git a/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx b/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx
index 532c2b4c2e2..79150a88b14 100644
--- a/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx
+++ b/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx
@@ -41,8 +41,8 @@ export const SortByName: Story = {
expect(await canvas.findByText('Airbnb')).toBeInTheDocument();
- const cancelButton = canvas.getByText('Cancel');
- await userEvent.click(cancelButton);
+ const resetButton = canvas.getByText('Reset');
+ await userEvent.click(resetButton);
await expect(canvas.queryAllByTestId('remove-icon-name')).toStrictEqual([]);
},
diff --git a/front/src/pages/people/__stories__/People.sortBy.stories.tsx b/front/src/pages/people/__stories__/People.sortBy.stories.tsx
index 902f5e0fdd2..49a3779afbc 100644
--- a/front/src/pages/people/__stories__/People.sortBy.stories.tsx
+++ b/front/src/pages/people/__stories__/People.sortBy.stories.tsx
@@ -43,7 +43,7 @@ export const Email: Story = {
},
};
-export const Cancel: Story = {
+export const Reset: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
@@ -55,8 +55,8 @@ export const Cancel: Story = {
expect(await canvas.getByTestId('remove-icon-email')).toBeInTheDocument();
- const cancelButton = canvas.getByText('Cancel');
- await userEvent.click(cancelButton);
+ const resetButton = canvas.getByText('Reset');
+ await userEvent.click(resetButton);
await sleep(1000);