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', |
|
}); |
|
}); |
|
|
Previously this vrt test only existed in e2e for Percy snapshots. We need to add this to the existing story.
carbon/e2e/components/Pagination/Pagination-test.e2e.js
Lines 18 to 36 in 12c190a