You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.beforeEach(async({ page })=>{// Runs before each test and signs in each page.constassetsPage=newAnyPage(page);constloginPage=newLoginPage(page);awaitloginPage.visit()awaitassetsPage.menuTopNavComponent.clickAnyMenuItemNav();});test('Creating an Element - Any Type',async({ page })=>{constanyPage=newAnyPage(page);awaitanyPage.anyGridLoads()awaitanyPage.createElementAnyType();});
Pre-condition
Having Storage state enabled and being used to sign in during the beforeEach hook
Steps
Run the test with the new flag --ui
npx playwright test --ui
Expected
UI Should be displayed as per the new feature is intended to work
Actual
After executing the command with the new flag --ui, terminal shows the following error:
/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:159
this._page.mainFrame().evaluateExpression(dispatchFuncSource, true, message).catch(e => this._originalStderr(String(e)));
^
TypeError: Cannot read properties of undefined (reading 'mainFrame')
at UIMode._dispatchEvent (/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:159:16)
at Timeout._onTimeout (/Users/clundstedt/Documents/zf-playwright/node_modules/@playwright/test/lib/runner/uiMode.js:69:14)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7)
Node.js v19.4.0
The text was updated successfully, but these errors were encountered:
System info
Config file
Test file (self-contained)
Pre-condition
Steps
Expected
UI Should be displayed as per the new feature is intended to work
Actual
After executing the command with the new flag --ui, terminal shows the following error:
The text was updated successfully, but these errors were encountered: