Playwright reporter - Add ability to set the test description via annotations.
complete
S
Serhiy Pikho
Playwright Has the ability to set arbitrary metadata about the run test via annotations [https://playwright.dev/docs/test-annotations#annotate-tests]
Theses annotation are available in the reporter interface. https://playwright.dev/docs/api/class-testcase#test-case-annotations
It should be relatively easy to set the test description in this way. A rough mock-up of how it would be used might look like this.
import {QASE_DESCRIPTION} from "qase"
test("example test", {
annotation : {type: QASE_DESCRIPTION, description: "test description"}
} , async () => { // rest of the test
Manjunatha Reddy
complete
Manjunatha Reddy
Hi there!
The latest version of the
qase-playwright
reporter now supports adding descriptions through qase.fields()
. This allows you to add context to your tests, and the reporter can automatically include these descriptions in your Qase test cases.In addition to descriptions, you can also specify Pre and Post conditions and update other field values. Here’s an example test case for your reference: