Skip to main content
Version: 1.x

Variable: ANNOTATION_TYPES

const ANNOTATION_TYPES: object

Recognised Playwright annotation types carrying SAP metadata.

Type Declaration​

CRITICALITY​

readonly CRITICALITY: "criticality" = 'criticality'

PROCESS​

readonly PROCESS: "process" = 'process'

SAP_MODULE​

readonly SAP_MODULE: "sapModule" = 'sapModule'

SUBPROCESS​

readonly SUBPROCESS: "subprocess" = 'subprocess'

TCODE​

readonly TCODE: "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' },
);