Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Reseller/DomainTest.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | class DomainTest extends TestCaseDusk | ||||
/** | /** | ||||
* Test domain info page | * Test domain info page | ||||
*/ | */ | ||||
public function testDomainInfo(): void | public function testDomainInfo(): void | ||||
{ | { | ||||
$this->browse(function (Browser $browser) { | $this->browse(function (Browser $browser) { | ||||
$domain = $this->getTestDomain('kolab.org'); | $domain = $this->getTestDomain('kolab.org'); | ||||
$domain_page = new DomainPage($domain->id); | $domain_page = new DomainPage($domain->id); | ||||
$reseller = $this->getTestUser('reseller@kolabnow.com'); | $reseller = $this->getTestUser('reseller@' . \config('app.domain')); | ||||
$user = $this->getTestUser('john@kolab.org'); | $user = $this->getTestUser('john@kolab.org'); | ||||
$user_page = new UserPage($user->id); | $user_page = new UserPage($user->id); | ||||
// Goto the domain page | // Goto the domain page | ||||
$browser->visit(new Home()) | $browser->visit(new Home()) | ||||
->submitLogon('reseller@kolabnow.com', 'reseller', true) | ->submitLogon('reseller@' . \config('app.domain'), \App\Utils::generatePassphrase(), true) | ||||
->on(new Dashboard()) | ->on(new Dashboard()) | ||||
->visit($user_page) | ->visit($user_page) | ||||
->on($user_page) | ->on($user_page) | ||||
->click('@nav #tab-domains') | ->click('@nav #tab-domains') | ||||
->pause(1000) | ->pause(1000) | ||||
->click('@user-domains table tbody tr:first-child td a'); | ->click('@user-domains table tbody tr:first-child td a'); | ||||
$browser->on($domain_page) | $browser->on($domain_page) | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |