* fix: [#1079] adding max width to menu items and also the tooltip to show full text value * chore: removed max-width property * chore: fixed the interaction for people.sortby * chore: removed unused code * chore: fixed the interaction for companies.sortby
This commit is contained in:
@ -32,7 +32,9 @@ export const SortByName: Story = {
|
||||
const sortButton = await canvas.findByText('Sort');
|
||||
await userEvent.click(sortButton);
|
||||
|
||||
const nameSortButton = canvas.getByText('Name', { selector: 'li > div' });
|
||||
const nameSortButton = canvas.getByText('Name', {
|
||||
selector: 'li > div > div',
|
||||
});
|
||||
await userEvent.click(nameSortButton);
|
||||
|
||||
expect(await canvas.getByTestId('remove-icon-name')).toBeInTheDocument();
|
||||
|
||||
@ -33,7 +33,9 @@ export const Email: Story = {
|
||||
const sortButton = await canvas.findByText('Sort');
|
||||
await userEvent.click(sortButton);
|
||||
|
||||
const emailSortButton = canvas.getByText('Email', { selector: 'li > div' });
|
||||
const emailSortButton = canvas.getByText('Email', {
|
||||
selector: 'li > div > div',
|
||||
});
|
||||
await userEvent.click(emailSortButton);
|
||||
|
||||
expect(await canvas.getByTestId('remove-icon-email')).toBeInTheDocument();
|
||||
@ -49,7 +51,9 @@ export const Cancel: Story = {
|
||||
const sortButton = await canvas.findByText('Sort');
|
||||
await userEvent.click(sortButton);
|
||||
|
||||
const emailSortButton = canvas.getByText('Email', { selector: 'li > div' });
|
||||
const emailSortButton = canvas.getByText('Email', {
|
||||
selector: 'li > div > div',
|
||||
});
|
||||
await userEvent.click(emailSortButton);
|
||||
|
||||
expect(await canvas.getByTestId('remove-icon-email')).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user