flexpect - v0.21.0
    Preparing search index...

    Options for the toBeWithinViewport matcher.

    interface ToBeWithinViewportOptions {
        marginPixel?: number;
    }
    Index

    Properties

    Properties

    marginPixel?: number

    Margin in pixels to apply around the viewport edges.

    This creates a "safe zone" inside the viewport. The element must be fully contained within this inner rectangle to pass the assertion.

    Useful for:

    • Avoiding sticky headers/footers
    • Accounting for floating action buttons
    • Ensuring visibility in scrollable containers with padding
    0