Skip to content

Commit

Permalink
fix see (#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
hatufacci authored Nov 19, 2023
1 parent 3ec908a commit 1a38165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,7 @@ async function proceedSee(assertType, text, context, strict = false) {
if (!context) {
const el = await this.context;

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

description = 'web application';
} else {
Expand Down

0 comments on commit 1a38165

Please sign in to comment.