The container element as a Locator relative to which alignment is checked.
The axis along which to check alignment (horizontal or vertical).
The alignment mode to check (start, center, or end).
Optional alignment options.
A Promise that resolves with the matcher result.
Asserts that the target element is aligned with the specified container element based on the provided axis and alignment mode, considering an optional tolerance percentage.
This assertion compares the position of the element relative to the container along the given axis (horizontal or vertical) and verifies if it matches the expected alignment mode (start, center, or end).
If the alignment falls outside the allowed tolerance, a detailed message is returned to help diagnose the misalignment.
Horizontal axis (
axis = 'horizontal'
):mode = start'
):mode = 'center'
):mode = 'end'
):Vertical axis (
axis = 'vertical'
):mode = 'start'
):mode = 'center'
):mode = 'end'
):