reportportal / agent-js-playwright

Agent to integrate Playwright with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-playwright
Apache License 2.0
34 stars 14 forks source link

Add tags as attributes for tests automatically #151

Open avillanova opened 2 months ago

avillanova commented 2 months ago

Currently we need to add tags on each test and call ReportPortalApi, would be good to add this by default on src/reporter.ts

const startTestItem: StartTestObjType = {
        name: test.title,
        startTime: this.client.helpers.now(),
        type: TEST_ITEM_TYPES.STEP,
        attributes: test.tags
        codeRef,
        retry: test.results?.length > 1,
};