diff --git a/resources/views/listing/partials/pagination.blade.php b/resources/views/listing/partials/pagination.blade.php index 3d31af5b7..5ec782e01 100644 --- a/resources/views/listing/partials/pagination.blade.php +++ b/resources/views/listing/partials/pagination.blade.php @@ -2,55 +2,55 @@ diff --git a/tests/playwright/category.spec.js b/tests/playwright/category.spec.js index fdb6ca261..a87eb193b 100644 --- a/tests/playwright/category.spec.js +++ b/tests/playwright/category.spec.js @@ -15,7 +15,7 @@ test('category pagination', BasePage.tags, async ({ page }) => { await page.goto(process.env.CATEGORY_URL_SIMPLE) await expect(page.getByTestId('listing-item')).toHaveCount(12) const firstProductPage1 = await page.getByTestId('listing-item').first().textContent() - await page.getByTestId('pagination').getByRole('button', { name: '2' }).click() + await page.getByTestId('pagination').getByRole('link', { name: '2' }).click() await page.waitForLoadState('networkidle') const firstProductPage2 = await page.getByTestId('listing-item').first().textContent() expect(firstProductPage1).not.toBe(firstProductPage2)