We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32de263 commit 51dab56Copy full SHA for 51dab56
1 file changed
packages/react/src/components/Pagination/Pagination.stories.js
@@ -9,6 +9,7 @@ import Pagination from './Pagination';
9
import React from 'react';
10
import { action } from 'storybook/actions';
11
import mdx from './Pagination.mdx';
12
+import userEvent from '@testing-library/user-event';
13
14
const props = () => ({
15
disabled: false,
@@ -150,6 +151,20 @@ Default.argTypes = {
150
151
},
152
};
153
154
+export const TooltipHover = {
155
+ ...Default,
156
+ tags: ['!autodocs', '!dev'],
157
+ parameters: {
158
+ chromatic: { delay: 100 },
159
+ },
160
+ play: async ({ canvasElement }) => {
161
+ const nextButton = canvasElement.querySelector(
162
+ '.cds--pagination__button--forward'
163
+ );
164
+ await userEvent.hover(nextButton);
165
166
+};
167
+
168
export const MultiplePaginationComponents = (args) => {
169
return (
170
<div>
0 commit comments