Update snapshot-tools.test.ts

This commit is contained in:
Tommy D. Rossi
2026-02-01 19:05:53 +01:00
parent 51704a0922
commit 6a3523df5b
+1 -1
View File
@@ -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')