Variable: ANNOTATION_TYPES
constANNOTATION_TYPES:object
Recognised Playwright annotation types carrying SAP metadata.
Type Declaration
CRITICALITY
readonlyCRITICALITY:"criticality"='criticality'
PROCESS
readonlyPROCESS:"process"='process'
SAP_MODULE
readonlySAP_MODULE:"sapModule"='sapModule'
SUBPROCESS
readonlySUBPROCESS:"subprocess"='subprocess'
TCODE
readonlyTCODE:"tcode"='tcode'
Remarks
Test authors annotate their tests via test.info().annotations.push()
or Playwright's built-in annotation API. The compliance reporter scans
for these types and propagates their descriptions into the compliance
report so downstream tooling (dashboards, Allure, CI gates) can slice
results by SAP process, criticality, or transaction code.
Example
import { ANNOTATION_TYPES } from 'playwright-praman/reporters';
test.info().annotations.push(
{ type: ANNOTATION_TYPES.PROCESS, description: 'Order-to-Cash' },
{ type: ANNOTATION_TYPES.TCODE, description: 'VA01' },
);