Fix querySelector

This commit is contained in:
Adam Gastineau 2025-01-08 10:24:10 -08:00
parent d217f00626
commit 948e445b23

View file

@ -134,7 +134,7 @@ function shouldPauseBeforeStep(metadata: CallMetadata): boolean {
// Always stop on 'close' // Always stop on 'close'
if (metadata.method === 'close') if (metadata.method === 'close')
return true; return true;
if (metadata.method === 'waitForSelector' || metadata.method === 'waitForEventInfo') if (metadata.method === 'waitForSelector' || metadata.method === 'waitForEventInfo' || metadata.method === 'querySelector' || metadata.method === 'querySelectorAll')
return false; // Never stop on those, primarily for the test harness. return false; // Never stop on those, primarily for the test harness.
const step = metadata.type + '.' + metadata.method; const step = metadata.type + '.' + metadata.method;
// Stop before everything that generates snapshot. But don't stop before those marked as pausesBeforeInputActions // Stop before everything that generates snapshot. But don't stop before those marked as pausesBeforeInputActions