vitalets / playwright-bdd

BDD testing with Playwright runner
https://vitalets.github.io/playwright-bdd/
MIT License
287 stars 33 forks source link

Bug: scenario using special tag @timeout display <anonymous> in playwright UI #139

Closed jzaratei closed 5 months ago

jzaratei commented 5 months ago

Given

Feature: Playwright Home Page

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

When I run the UI playwright

Then image

But I expect

Isolated demo

Environment

vitalets commented 5 months ago

Confirm the bug. Also in HTML report anonymous describe is trying to render:

I've searched Playwright issues but there no such reported. I will report it. On Playwright-bdd side we can set particular test timeout without wrapping into anonymous describe. But for retries we still need it, see https://github.com/microsoft/playwright/issues/10825#issuecomment-1851023643.

vitalets commented 5 months ago

Created two issues in the Playwright repo:

vitalets commented 5 months ago

On playwright-bdd side I've changed @timeout:XXX behavior in v6.3.0. Now it does not wrap test into anonymous describe. Instead it adds test.setTimeout(XXX) inside test body. @jzaratei could you check in your project?

jzaratei commented 5 months ago

Now, looks good!