Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Sep 13, 2024
1 parent 80021fe commit 214424c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/codeception/acceptance/AuthenticatedPermissionsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ public function testSiteManagerEscalationSelf(AcceptanceTester $I) {
* Site Manager cannot escalate others' role above Site Manager.
*/
public function testSiteManagerEscalationOthers(AcceptanceTester $I) {
$name = $this->faker->words(3, TRUE);
$user = $I->createEntity(['name' => $name], 'user');
$I->logInWithRole('site_manager');
$I->amOnPage('/admin/users');
$I->canSee('Morgan');
$I->click('Morgan');
$I->click('.roles.tabs__tab a');
$I->amOnPage($user->toUrl('edit-form')->toString());
$I->canSeeInField('Username', $name);
$I->dontSee('Administrator');
$I->dontSee('Site Builder');
$I->dontSee('Site Developer');
Expand Down

0 comments on commit 214424c

Please sign in to comment.