Skip to content

Commit 1a38165

Browse files
authored
fix see (#4006)
1 parent 3ec908a commit 1a38165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/Playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3449,7 +3449,7 @@ async function proceedSee(assertType, text, context, strict = false) {
34493449
if (!context) {
34503450
const el = await this.context;
34513451

3452-
allText = el.constructor.name ? [await el.locator('body').innerText()] : [await el.innerText()];
3452+
allText = el.constructor.name !== 'Locator' ? [await el.locator('body').innerText()] : [await el.innerText()];
34533453

34543454
description = 'web application';
34553455
} else {

0 commit comments

Comments
 (0)