Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Components/ListInput.php
Show All 28 Lines | class ListInput extends BaseComponent | ||||
* Assert that the browser page contains the component. | * Assert that the browser page contains the component. | ||||
* | * | ||||
* @param \Laravel\Dusk\Browser $browser | * @param \Laravel\Dusk\Browser $browser | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function assert($browser) | public function assert($browser) | ||||
{ | { | ||||
$browser->assertVisible($this->selector()) | $browser->assertVisible($this->selector) | ||||
->assertVisible('@input') | ->assertVisible("{$this->selector} @input") | ||||
->assertVisible('@add-btn'); | ->assertVisible("{$this->selector} @add-btn"); | ||||
} | } | ||||
/** | /** | ||||
* Get the element shortcuts for the component. | * Get the element shortcuts for the component. | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
public function elements() | public function elements() | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |