Open NidhiSharma02 opened 2 days ago
Do you have a globalSetup
? Like a traditional one, not project dependencies. My suspicion is because the browser you are running has no --headless
argument, that looks might be caused that you are launching a browser (launch()
) somewhere manually. Would it be possible to share the entire repository with us?
Unrelated, you can remove the Install required dependencies
since you are doing playwright install --with-deps
- also we recommend ubuntu-24.04
.
Do you have a
globalSetup
? Like a traditional one, not project dependencies. My suspicion is because the browser you are running has no--headless
argument, that looks might be caused that you are launching a browser (launch()
) somewhere manually. Would it be possible to share the entire repository with us?Unrelated, you can remove the
Install required dependencies
since you are doingplaywright install --with-deps
- also we recommendubuntu-24.04
.
yes i do have a global setup file
const __dirname = path.dirname(__filename);
setup("do login", async ({ page }) => {
await page.goto("/", { waitUntil: "networkidle" });
// Check if the login heading is visible
await expect(page.getByRole("heading", { name: "Login" })).toBeVisible();
// Fill in the login form
await page.fill("input#email", "mayank.kumar@zeitview.com");
await page.fill("input#password", "@Testing5624");
// Click on the submit button
await page.click("#login");
await page.waitForURL("http://localhost:3000/");
const storageState = path.join(__dirname, "./auth.json");
// Save storage state for authentication persistence
await page.context().storageState({ path: storageState });
});
It is not possible to share the entire github with you because it is private
Does it work without --headless=new
?
No it doesn't work.
We need more information to act on this bug report. I recommend trying if it reproduces with a new project and reducing the size of your project to a minimal one by removing files to see what is causing it. Also there might be a headless: false
somewhere in your code, which would explain why the browser tries to launch headed (assumption). It looks like the CLI arguments from your screenshot in https://github.com/microsoft/playwright/issues/32712#issue-2536357162 were cut off - would it be possible to share the logs as text? Maybe you can click on "Download log archive".
I don't see a particular error on your screenshot besides browser warnings, so maybe there are more relevant logs below?
Thanks!
Version
1.46.1
Steps to reproduce
I want to run test on github actions but they are failing. All tests are getting passed in local in ui mode as well as in Headless Mode.
Here is playwright.yml file
Here is config file
Expected behavior
I'm expecting that all test should get pass.
Actual behavior
Additional context
No response
Environment