Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/react/src/components/Pagination/Pagination.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Pagination from './Pagination';
import React from 'react';
import { action } from 'storybook/actions';
import mdx from './Pagination.mdx';
import userEvent from '@testing-library/user-event';

const props = () => ({
disabled: false,
Expand Down Expand Up @@ -150,6 +151,20 @@ Default.argTypes = {
},
};

export const TooltipHover = {
...Default,
tags: ['!autodocs', '!dev'],
parameters: {
chromatic: { delay: 100 },
},
play: async ({ canvasElement }) => {
const nextButton = canvasElement.querySelector(
'.cds--pagination__button--forward'
);
await userEvent.hover(nextButton);
},
Comment thread
riddhybansal marked this conversation as resolved.
};

export const MultiplePaginationComponents = (args) => {
return (
<div>
Expand Down
Loading