Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: tags are added to scenario name in "list" reporter starting from Playwright 1.49.x #251

Open
alescinskis opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working waiting playwright

Comments

@alescinskis
Copy link

alescinskis commented Dec 10, 2024

When running tests with playwright's "list" reporter in 1.49.x the tags are now added to the scenario title, e.g.

@playwright
Feature: Playwright Home Page

    Scenario: Check title
        Given I am on Playwright home page
        When I click link "Get started"
        Then I see in title "Installation"

When
Running npx bddgen && npx playwright test

Then

Running 1 test using 1 worker

  ✓  1 [chromium] › features/homepage.feature.spec.js:6:7 › Playwright Home Page › Check title @playwright (2.1s)

  1 passed (4.1s)

But I expect

Running 1 test using 1 worker

  ✓  1 [chromium] › features/homepage.feature.spec.js:6:7 › Playwright Home Page › Check title (2.2s)

  1 passed (6.6s)

Isolated demo
https://github.com/alescinskis/pw-bdd-pw-1.49.x-list-reporter

Environment

platform: darwin
node: v20.9.0
playwright-bdd: v7.5.0
@playwright/test: v1.49.1
@cucumber/cucumber: none
Playwright config file: playwright.config.ts

also reproducible in

platform: linux
node: v22.12.0
playwright-bdd: v7.5.0
@playwright/test: v1.49.0
@cucumber/cucumber: none
Playwright config file: playwright.config.ts
@vitalets
Copy link
Owner

This was intentionally added in Playwright: microsoft/playwright#32930.
I've opened another issue suggesting to make tags appending configurable: microsoft/playwright#33947

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting playwright
Projects
None yet
Development

No branches or pull requests

2 participants