From 14636206a0a51310c02730dc88198638fda0a656 Mon Sep 17 00:00:00 2001 From: Pavan Patil <44057535+pavanpatil1@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:39:54 +0530 Subject: [PATCH] Fix selector for purge cache link --- tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js b/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js index 18654c3..85e45b1 100644 --- a/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js +++ b/tests/e2e-playwright/specs/03_purge-backendcache-test.spec.js @@ -9,11 +9,11 @@ await page.waitForTimeout(1000); - await page.click('role=link[name="Purge Cache"i]'); + await page.click("a[title='Purge Cache']"); await page.waitForTimeout(2000); expect( page.locator( "div[class='updated'] p" )).toHaveText( 'Purge initiated' ); }); }); - \ No newline at end of file +