flexpect - v0.9.0
    Preparing search index...
    • Asserts that the target element fits entirely within the bounds of the specified container element. The check ensures that all sides of the target element (top, bottom, left, right) are strictly within the bounds of the container, with no partial overlap allowed.

      Parameters

      • element: Locator
      • container: Locator

        The container element as a Locator within which the element is expected to fit.

      Returns Promise<MatcherReturnType>

      A Promise that resolves with the matcher result.

      await expect(locator).toFitContainer(parentLocator);