From cb7036ea7d26fce7f9098c1d8326cc49fe564c0c Mon Sep 17 00:00:00 2001 From: Roene Date: Tue, 7 Apr 2026 14:19:55 +0200 Subject: [PATCH 1/4] Change button tags to anchor tags --- .../listing/partials/pagination.blade.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/views/listing/partials/pagination.blade.php b/resources/views/listing/partials/pagination.blade.php index 3d31af5b7..af56ae5b4 100644 --- a/resources/views/listing/partials/pagination.blade.php +++ b/resources/views/listing/partials/pagination.blade.php @@ -2,55 +2,55 @@ From 25f277b302f1d15abfbbac05bd5d98d1e6a03a41 Mon Sep 17 00:00:00 2001 From: Roene Date: Thu, 9 Apr 2026 15:06:42 +0200 Subject: [PATCH 2/4] Fix last page button --- resources/views/listing/partials/pagination.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/listing/partials/pagination.blade.php b/resources/views/listing/partials/pagination.blade.php index af56ae5b4..5ec782e01 100644 --- a/resources/views/listing/partials/pagination.blade.php +++ b/resources/views/listing/partials/pagination.blade.php @@ -41,8 +41,8 @@ class="flex items-center justify-center size-9 sm:size-10 rounded-sm border hove
  • From 58b5b39fe004ddc579c569a427e1b811c7fc1836 Mon Sep 17 00:00:00 2001 From: Roene Date: Thu, 9 Apr 2026 15:46:03 +0200 Subject: [PATCH 3/4] Change test because button is changed --- tests/playwright/category.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/category.spec.js b/tests/playwright/category.spec.js index fdb6ca261..64d0ad0c2 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').getByText('2').click() await page.waitForLoadState('networkidle') const firstProductPage2 = await page.getByTestId('listing-item').first().textContent() expect(firstProductPage1).not.toBe(firstProductPage2) From db02056953659ebfda5a9d286ff5a6165502a6f4 Mon Sep 17 00:00:00 2001 From: Roene Verbeek <85165259+Roene-JustBetter@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:32:00 +0200 Subject: [PATCH 4/4] Update tests/playwright/category.spec.js Co-authored-by: indykoning <15870933+indykoning@users.noreply.github.com> --- tests/playwright/category.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/category.spec.js b/tests/playwright/category.spec.js index 64d0ad0c2..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').getByText('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)