From 1758afbd27b1093d632a6ab2555d07542a8d8cdb Mon Sep 17 00:00:00 2001 From: utchimakali-m Date: Sat, 1 Aug 2026 16:02:30 +0530 Subject: [PATCH] fix: update stale sidebar locator and align win playwright version The playwright.dev docs sidebar renamed "Components (experimental)" to "Component testing", so the locator in SampleTest1 and SampleTest2 no longer matched and both matrix tasks failed at the test level. Also bump the Windows pre step's npm playwright install from 1.23.0 to 1.57.0 to match pom.xml and yaml/linux. The tests connect to a remote browser over cdp.lambdatest.com and Java Playwright ships its own driver bundle, so this npm install is unused at runtime -- the bump is for consistency only and was not exercised by the passing run. Verified on HyperExecute win matrix job 8dad8be5: both tasks green, test stage 100% pass. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01NkXiQEUJmN37h5tnEX51V4 --- src/test/java/SampleTest1.java | 2 +- src/test/java/SampleTest2.java | 2 +- yaml/win/junit_hyperexecute_matrix_sample.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/SampleTest1.java b/src/test/java/SampleTest1.java index ebb429a..13ead60 100644 --- a/src/test/java/SampleTest1.java +++ b/src/test/java/SampleTest1.java @@ -39,7 +39,7 @@ public void sampleTest1(JsonObject capability) { page.locator("text=Visual comparisons").first().click(); page.locator("text=Fixtures").first().click(); page.locator("text=TypeScript").first().click(); - page.locator("text=Components (experimental)").first().click(); + page.locator("text=Component testing").first().click(); page.locator("text=Library").first().click(); page.locator("text=Auto-waiting").first().click(); page.locator("text=Authentication").first().click(); diff --git a/src/test/java/SampleTest2.java b/src/test/java/SampleTest2.java index 11e67fe..0236c61 100644 --- a/src/test/java/SampleTest2.java +++ b/src/test/java/SampleTest2.java @@ -39,7 +39,7 @@ public void sampleTest1(JsonObject capability) { page.locator("text=Visual comparisons").first().click(); page.locator("text=Fixtures").first().click(); page.locator("text=TypeScript").first().click(); - page.locator("text=Components (experimental)").first().click(); + page.locator("text=Component testing").first().click(); page.locator("text=Library").first().click(); page.locator("text=Auto-waiting").first().click(); page.locator("text=Authentication").first().click(); diff --git a/yaml/win/junit_hyperexecute_matrix_sample.yaml b/yaml/win/junit_hyperexecute_matrix_sample.yaml index d8cfd3d..f98f214 100644 --- a/yaml/win/junit_hyperexecute_matrix_sample.yaml +++ b/yaml/win/junit_hyperexecute_matrix_sample.yaml @@ -30,7 +30,7 @@ matrix: pre: # install playwright version to be used. - - npm install playwright@1.23.0 --save-exact + - npm install playwright@1.57.0 --save-exact # Download and install packages in the .m2 folder. # Skip execution of the tests in the pre step - mvn -Dmaven.repo.local=./.m2 -Dmaven.test.skip=true clean install