From 6a3523df5b5f7ba5fd6f15abe160aebea0145a02 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sun, 1 Feb 2026 19:05:53 +0100 Subject: [PATCH] Update snapshot-tools.test.ts --- playwriter/src/snapshot-tools.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwriter/src/snapshot-tools.test.ts b/playwriter/src/snapshot-tools.test.ts index 074b839..0ca38a5 100644 --- a/playwriter/src/snapshot-tools.test.ts +++ b/playwriter/src/snapshot-tools.test.ts @@ -633,7 +633,7 @@ describe('Snapshot & Screenshot Tests', () => { console.log('Button selector:', btnSelector) // Verify the selector works - const btnViaSelector = cdpPage!.locator('[data-testid="submit-btn"]') + const btnViaSelector = cdpPage!.locator(btnSelector!) const btnTextViaRef = await btnViaSelector.textContent() console.log('Button text via selector:', btnTextViaRef) expect(btnTextViaRef).toBe('Submit Form')