Can I set up an assertion to verify value of an element in PHP - Laravel?
Hi Emma,
assertVisible makes sure the element is in the visible view-port of the web-page. You can refer to the code snippet below:
/** @test */
public function assert_that_home_page_opens_up(){
$this->browse(function ($browser) {
$browser->visit('/')
->assertPresent('#my-wrapper')
->assertVisible('.my-class-element')
});
}