Praman — Agent-First SAP UI5 Test Automation Plugin - v1.3.5
    Preparing search index...

    Interface VisualRegressionFixture

    Visual regression fixture API.

    visualRegression.fixture

    await visualRegression.compareScreenshot('overview.png', {
    mask: visualRegression.maskFLPChrome(),
    threshold: 0.15,
    });
    interface VisualRegressionFixture {
        compareScreenshot(
            name: string,
            options?: VisualRegressionOptions,
        ): Promise<void>;
        maskFLPChrome(): Locator[];
    }
    Index
    • Compares a screenshot of the current page against a stored baseline.

      Parameters

      • name: string

        Snapshot file name (e.g. 'po-list.png').

      • Optionaloptions: VisualRegressionOptions

        Optional comparison settings.

      Returns Promise<void>

      await visualRegression.compareScreenshot('login-page.png');
      
    • Returns locators for the three standard FLP shell chrome elements.

      Returns Locator[]

      Pass the returned array as the mask option to compareScreenshot to exclude session-specific shell content from visual comparisons.

      const flpMask = visualRegression.maskFLPChrome();
      await visualRegression.compareScreenshot('detail.png', { mask: flpMask });