Skip to content

[Feature]: show Annotations in the Metadata tab in Trace Viewer #42035

Description

@Oscaruzzo

🚀 Feature Request

It would be useful if annotations were included in the Metadata tab in the trace viewer.

Right now annotations are shown in the test report, but not in the trace viewer.

Example

test("demo", {
    annotation: {
        type: "note1",
        description: "MY_TEST_NOTE_1",
    },
}, async ({ page }) => {
    await page.goto("https://playwright.dev/");

    test.info().annotations.push({ type: "note2", description: "MY_TEST_NOTE_2" });
});

Motivation

During nightly tests I only store failed test traces, but I don't use the html reporter, so annotations are lost.

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