Skip to content

[BUG] Parameterized tests are not displayed in the UI mode #21953

Closed

Description

System info

  • Playwright Version: 1.32
  • Operating System: macOS 13.2
  • Browser: All

Source code

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)

// cmp.test.ts
import test from '@playwright/test'

enum URLs {
  FR = 'https://www.vinted.fr',
  LT = 'https://www.vinted.lt',
  DE = 'https://www.vinted.de',
}

test.describe('cookies', () => {
  for (const [country, baseURL] of Object.entries(URLs)) {
    test.describe(() => {
      test.use({ baseURL })

      test(`test accepting cookies in ${country}`, async ({ page }) => {
        // test
      })
    })
  }
})

Expected

  • Test names in UI mode to be displayed the same like in VS Code plugin - with variable names.
  • All parameterized tests to be displayed

VS Code plugin 🟢
SCR-20230324-i0j

Actual
Currently it shows one correct name plus nested titles with project name but those do not run the tests.

UI Mode 🔴
SCR-20230324-i5o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions