Scenario
I am linking Playwright tests with Xray props so that I can use Xray rest apis to send the executed automated test results to Xray.
Problem
I want to add some more test info like browser name, execution environment, etc to test case.
At present, I am adding testInfo annotation like this to Playwright test:
test('some test', async () => {
testInfo.annotations.push({ type: 'test_key', description: testKeyValue });
// my test body
});
I am not sure what are the string to define in `type` key here so that I can display testInfo like browser, environment, etc.
Also, is there any other better way to map testInfo prop for each test in Playwright? Like we are doing it for every test, would be better if that can be done once for all the tests.