playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[REGRESSION]: Incorrect wrapping steps

Open apis3445 opened this issue 2 years ago • 0 comments

Context:

  • GOOD Playwright Version: 1.32.0
  • BAD Playwright Version: >1.33.0
  • Operating System: Any
  • Extra: None

Code Snippet

   await test.step("Description", async () => {
            await this.page.route('**/api/articles?limit=10&offset=0', async route => {
                const response = await route.fetch();
                await route.fulfill({
                    status: 200,
                    contentType: 'application/json',
                    headers: response.headers(),
                    body: JSON.stringify(
                        articles
                    )
                });
            });
        });

Describe the bug

Incorrect wrapping in test steps. In version 1.32 I can wrap correctly test steps to add one step for the mock, but after 1.33 and 1.34 the wrapping is incorrect for the HTML report

Version 1.32

image

Version >=1.33 image

Too last version is adding step: tracing.stopChunk

Link with public repo: https://github.com/apis3445/playwright-sample

apis3445 avatar May 20 '23 17:05 apis3445