Optional
toleranceAllowed tolerance for the horizontal alignment difference, expressed as a percentage (%) of the container element's width.
The matcher passes if the horizontal 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 width without failing the assertion.
If omitted, the default tolerance is 0
, requiring exact alignment.
Options for the toBeHorizontallyAlignedWith matcher.