CIA Compliance Manager API Documentation - v0.8.22

    Variable TEST_HELPERSConst

    TEST_HELPERS: {
        findByText: (text: string) => null | Node;
        getValuePointsForLevel: (_level: SecurityLevel) => string[];
        matchTextAndClass: (
            text: string,
            className: string,
        ) => (content: string, element: Element) => boolean;
        toSecurityLevel: (level: string) => SecurityLevel;
    } = ...

    Test helpers for finding and matching elements

    Type declaration

    • findByText: (text: string) => null | Node

      Find an element by text

    • getValuePointsForLevel: (_level: SecurityLevel) => string[]

      Get value points for a security level

    • matchTextAndClass: (
          text: string,
          className: string,
      ) => (content: string, element: Element) => boolean

      Match an element by text and class

    • toSecurityLevel: (level: string) => SecurityLevel

      Convert string to SecurityLevel type safely

    MMNEPVFCICPMFPCPTTAAATR