Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/DegradedAccountTest.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | class DegradedAccountTest extends TestCaseDusk | ||||
/** | /** | ||||
* Test acting as an owner of a degraded account | * Test acting as an owner of a degraded account | ||||
*/ | */ | ||||
public function testDegradedAccountOwner(): void | public function testDegradedAccountOwner(): void | ||||
{ | { | ||||
// Add beta+distlist entitlements | // Add beta+distlist entitlements | ||||
$john = $this->getTestUser('john@kolab.org'); | $john = $this->getTestUser('john@kolab.org'); | ||||
$this->addBetaEntitlement($john, ['beta-distlists', 'beta-resources', 'beta-shared-folders']); | $this->addBetaEntitlement($john); | ||||
$this->browse(function (Browser $browser) { | $this->browse(function (Browser $browser) { | ||||
$browser->visit(new Home()) | $browser->visit(new Home()) | ||||
->submitLogon('john@kolab.org', 'simple123', true) | ->submitLogon('john@kolab.org', 'simple123', true) | ||||
->on(new Dashboard()) | ->on(new Dashboard()) | ||||
->assertSeeIn('#status-degraded p.alert', 'The account is degraded') | ->assertSeeIn('#status-degraded p.alert', 'The account is degraded') | ||||
->assertSeeIn('#status-degraded p.alert', 'Please, make a payment'); | ->assertSeeIn('#status-degraded p.alert', 'Please, make a payment'); | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |