playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[BUG] Unable to execute tests in second iteration in playwright UI mode and when i tried the process is went to inprogress and unable to perform any action @latestPlaywright

Open ajaygoutham1995 opened this issue 2 years ago • 1 comments

System info

  • Playwright Version: [v1.XX]
  • Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]
  • Browser: [All, Chromium, Firefox, WebKit]
  • Other info:

Source code

  • [ ] I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  projects: [
    {
      name: 'chromium',
      use: { ...devices['Desktop Chrome'], },
    },
});

Test file (self-contained)

it('should check the box using setChecked', async ({ page }) => {
  await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
  await page.getByRole('checkbox').check();
  await expect(page.getByRole('checkbox')).toBeChecked();
});

Steps

  • [Run the test]
  • [...]

Expected

[Describe expected behavior]

Actual

[Describe actual behavior]

ajaygoutham1995 avatar May 15 '23 10:05 ajaygoutham1995

@ajaygoutham1995 I cannot repro the issue with the test you shared. Running tests from UI mode works multiple times in a row.

Could you please share a more detailed repro, with exact steps you perform?

dgozman avatar May 15 '23 17:05 dgozman

@ajaygoutham1995 I cannot repro the issue with the test you shared. Running tests from UI mode works multiple times in a row.

Could you please share a more detailed repro, with exact steps you perform?

Hi @dgozman

Unfortunately i could not able to share the report, but in my case i am having more then hundred testcases and am filtering them by grep command and for the first iteration the scripts are working fine but when i tried to rerun all or when i filtered with failures only to run am seeing this issue

And suprisingly in new repo i have tried filtering test with grep command via UI mode and it's showing like no tests found below is the command and code

Command : "test":"npx playwright test ./tests/practice.spec.ts --project=chromium -g '@smoke' --ui"

code test('Sample @smoke', async ({ page }) => { expect(200).toEqual(200) }) test('demo @smoke', async ({ page }) => { expect(200).toEqual(200) })

Some how i could not able to paste a snip here 😒

below are the project details am using Project Details : playwright with page object modal

ajaygoutham1995 avatar May 19 '23 12:05 ajaygoutham1995

@ajaygoutham1995 I tried to simulate your setup as close as possible, and still cannot reproduce the issue. Unfortunately, we cannot help without being able to reproduce the problem.

I will close this issue. Once you can share a self-contained repro that we can run locally, please file a new issue by filling in all details in the "Bug Report" template, and link to this one for context.

dgozman avatar May 19 '23 15:05 dgozman