Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/FaqTest.php
Show All 11 Lines | class FaqTest extends TestCaseDusk | ||||
* Test FAQ widget | * Test FAQ widget | ||||
*/ | */ | ||||
public function testFaq(): void | public function testFaq(): void | ||||
{ | { | ||||
$this->browse(function (Browser $browser) { | $this->browse(function (Browser $browser) { | ||||
$browser->visit(new Signup()) | $browser->visit(new Signup()) | ||||
->whenAvailable('#faq', function ($browser) { | ->whenAvailable('#faq', function ($browser) { | ||||
$browser->assertSeeIn('h5', 'FAQ') | $browser->assertSeeIn('h5', 'FAQ') | ||||
->assertElementsCount('ul > li', 4) | ->assertElementsCount('ul > li', 1) | ||||
->assertSeeIn('li:last-child a', 'Need support?') | ->assertSeeIn('li:last-child a', 'Need support?') | ||||
->click('li:last-child a'); | ->click('li:last-child a'); | ||||
}) | }) | ||||
->waitForLocation('/support'); | ->waitForLocation('/support'); | ||||
}); | }); | ||||
} | } | ||||
} | } |