Skip to content

[Feature]: Show Playwright steps in Sauce Labs report #3059

Open
@vitalets

Description

@vitalets

🚀 Feature Proposal

Have you read the contributing guidelines on issues?

  • Yes

Description

Currently, Sauce Labs report shows only test titles for kind: playwright executions.

Motivation

Having steps in the report improves test observability and helps in debugging.

Example

I've added Playwright step to the example.spec.js from saucectl-playwright-example:

test('homepage has Playwright in title and get started link linking to the intro page', async ({ page }, testInfo) => {
+  await test.step('Navigate to Playwright website', async () => {
    await page.goto('https://playwright.dev/');
+  });

After running on Sauce Cloud I see only test title without step:

Image

Additional Context

For playwright-cucumberjs executions Sauce shows BDD steps:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions