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
Extra: [any specific details about your environment]
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
const{chromium, webkit, firefox}=require('playwright');(async()=>{constbrowser=awaitchromium.launch();// ... })();import{testassetup,expect}from'@playwright/test';import{getBaseUrl,getSddcId}from'../config';constauthFile='playwright/.auth/user.json';setup('authenticate as admin',async({page})=>{// Perform authentication steps. Replace these actions with your own.constenv: string=process.env.env||'stg';console.log("Running tc on sddc:",getSddcId());awaitpage.goto(getBaseUrl());awaitpage.goto(getBaseUrl()+'login?redirectPath=%2Fsearch');awaitpage.locator('[data-test-id="discovery_username"]').click({timeout: 30000});}
Describe the bug
The tcs is failing recently in playwright in headless mode and is passing headed mode.
The error it gives in headless :
Test timeout of 30000ms exceeded.
Error: locator.click: Target closed
=========================== logs ===========================
waiting for locator('[data-test-id="discovery_username"]')
locator resolved to <input type="text" autofocus="" autocomplete="email" id…/>
attempting click action
waiting for element to be visible, enabled and stable
element is not visible - waiting...
============================================================
11 | await page.goto(getBaseUrl());
12 | //await page.goto(getBaseUrl() + 'login?redirectPath=%2Fsearch');
> 13 | await page.locator('[data-test-id="discovery_username"]').click({timeout: 30000});
whereas when ran in headed mode
test_mode=stg npx playwright test --headed
Running 27 tests using 2 workers
✓ 1 [setup] › auth.setup.ts:6:6 › authenticate as admin (15.8s)
Running tc on sddc: SDDC_XYZ
Add any other details about the problem here.
The text was updated successfully, but these errors were encountered:
Context:
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
Describe the bug
The tcs is failing recently in playwright in headless mode and is passing headed mode.
The error it gives in headless :
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
whereas when ran in headed mode
test_mode=stg npx playwright test --headed
Running 27 tests using 2 workers
✓ 1 [setup] › auth.setup.ts:6:6 › authenticate as admin (15.8s)
Running tc on sddc: SDDC_XYZ
Add any other details about the problem here.
The text was updated successfully, but these errors were encountered: