fix: rename event module into analytics and clean (#482)
This commit is contained in:
@ -189,16 +189,6 @@ MediumSize.parameters = {
|
||||
// Small size
|
||||
export const SmallSize: Story = {
|
||||
render: getRenderWrapperForComponent(<ButtonContainer size="small" />),
|
||||
play: async ({ canvasElement }) => {
|
||||
const canvas = within(canvasElement);
|
||||
|
||||
expect(clickJestFn).toHaveBeenCalledTimes(0);
|
||||
|
||||
const button = canvas.getByTestId('primary-button-default');
|
||||
await userEvent.click(button);
|
||||
|
||||
expect(clickJestFn).toHaveBeenCalledTimes(1);
|
||||
},
|
||||
};
|
||||
SmallSize.parameters = {
|
||||
pseudo: {
|
||||
|
||||
@ -65,15 +65,6 @@ export const DefaultSecondary: Story = {
|
||||
variant="secondary"
|
||||
/>,
|
||||
),
|
||||
play: async ({ canvasElement }) => {
|
||||
const canvas = within(canvasElement);
|
||||
|
||||
expect(clickJestFn).toHaveBeenCalledTimes(0);
|
||||
const button = canvas.getByRole('button');
|
||||
await userEvent.click(button);
|
||||
|
||||
expect(clickJestFn).toHaveBeenCalledTimes(1);
|
||||
},
|
||||
};
|
||||
|
||||
export const WithIconSecondary: Story = {
|
||||
|
||||
Reference in New Issue
Block a user