// Asserting that page HTML satisfies the given constraint
result = await bs.page.content();
expect( result ).toIncludeSubstring( "demo", "page.assertContent" );
// Asserting that window scroll offset satisfies the given constraint
result = await ( await bs.page.evaluate( () => window.scrollX ) );
expect( result ).toPassCondition( "lt", 10000, "page.assertScroll" );
// Asserting that EMAIL_INPUT element is visible
result = await bs.target( await EMAIL_INPUT() ).isVisible();
expect( result ).toBeOk( "EMAIL_INPUT.assertVisible" );
// Asserting that the bounding box of the element satisfies the given constraint
result = await ( await SUBMIT_BTN() ).boundingBox();
expect( result ).toMatchBoundingBoxSnapshot( {
}, "SUBMIT_BTN.assertBoundingBox" );
// Asserting that the bounding box of the element satisfies the given constraint
target: await ( await DAY_SELECT() ).boundingBox(),
counterpart: await ( await MONTH_SELECT() ).boundingBox()
expect( result ).toMatchPosition( "left", "DAY_SELECT", "MONTH_SELECT", "DAY_SELECT.assertPosition" );