Skip to content

[Pagination]: Add snapshot for Tooltip visibility on hover #21930

@maradwan26

Description

@maradwan26

Previously this vrt test only existed in e2e for Percy snapshots. We need to add this to the existing story.

test('pagination @vrt', async ({ page }) => {
await snapshotStory(page, {
component: 'Pagination',
id: 'components-pagination--default',
theme,
});
const nextButton = page.getByRole('button', { name: /next/i });
await nextButton.hover();
await expect(page.getByText(/next/i)).toBeVisible();
await snapshot(page, {
theme,
component: 'Pagination',
id: 'components-pagination--default | tooltip hover',
});
});

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions