Skip to content

Commit

Permalink
fix: proceedSee (#3939)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Oct 21, 2023
1 parent 8f9aebf commit 80e4351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -3408,7 +3408,8 @@ async function proceedSee(assertType, text, context, strict = false) {
if (!context) {
const el = await this.context;

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

description = 'web application';
} else {
const locator = new Locator(context, 'css');
Expand Down

0 comments on commit 80e4351

Please sign in to comment.