flexpect - v0.9.0
    Preparing search index...

    Interface ToBeVerticallyAlignedWithOptions

    Options for the toBeVerticallyAlignedWith matcher.

    interface ToBeVerticallyAlignedWithOptions {
        tolerancePercent?: number;
    }
    Index

    Properties

    tolerancePercent?: number

    Allowed tolerance for the vertical alignment difference, expressed as a percentage (%) of the container element's height.

    The matcher passes if the vertical difference between the aligned edges or points of the target and container is within this percentage.

    For example, a tolerancePercent of 5 allows the elements to be misaligned by up to 5% of the container's height without failing the assertion.

    If omitted, the default tolerance is 0, requiring exact alignment.

    0