Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/DomainTest.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | public function testDomainInfo(): void | ||||
$browser->assertSeeIn('pre', $domain->namespace) | $browser->assertSeeIn('pre', $domain->namespace) | ||||
->assertSeeIn('pre', $domain->hash()) | ->assertSeeIn('pre', $domain->hash()) | ||||
->click('button'); | ->click('button'); | ||||
}) | }) | ||||
->whenAvailable('@config', function ($browser) use ($domain) { | ->whenAvailable('@config', function ($browser) use ($domain) { | ||||
$browser->assertSeeIn('pre', $domain->namespace); | $browser->assertSeeIn('pre', $domain->namespace); | ||||
}) | }) | ||||
->assertMissing('@verify') | ->assertMissing('@verify') | ||||
->with(new Toast(Toast::TYPE_SUCCESS), function ($browser) { | ->assertToast(Toast::TYPE_SUCCESS, 'Domain verified successfully.'); | ||||
$browser->assertToastTitle('') | |||||
->assertToastMessage('Domain verified successfully') | |||||
->closeToast(); | |||||
}); | |||||
// Check that confirmed domain page contains only the config box | // Check that confirmed domain page contains only the config box | ||||
$browser->visit('/domain/' . $domain->id) | $browser->visit('/domain/' . $domain->id) | ||||
->on(new DomainInfo()) | ->on(new DomainInfo()) | ||||
->assertMissing('@verify') | ->assertMissing('@verify') | ||||
->assertPresent('@config'); | ->assertPresent('@config'); | ||||
}); | }); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |