From 5afa9bfb3d3f65f4837f4fe1ed9fb372b8dac0c5 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Sat, 9 Sep 2023 12:29:03 -0700 Subject: [PATCH] Update taxonomy term test --- tests/codeception/acceptance/Content/PersonCest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/codeception/acceptance/Content/PersonCest.php b/tests/codeception/acceptance/Content/PersonCest.php index 9e9a83ecd..9f25e59de 100644 --- a/tests/codeception/acceptance/Content/PersonCest.php +++ b/tests/codeception/acceptance/Content/PersonCest.php @@ -151,8 +151,6 @@ public function testSpecialCharacters(AcceptanceTester $I) { * @group 4704 */ public function testD8Core2613Terms(AcceptanceTester $I) { - $I->logInWithRole('site_manager'); - $term1 = $I->createEntity([ 'name' => $this->faker->words(2, TRUE), 'vid' => 'stanford_person_types', @@ -166,25 +164,26 @@ public function testD8Core2613Terms(AcceptanceTester $I) { 'vid' => 'stanford_person_types', 'parent' => ['target_id' => $term1->id()], ], 'taxonomy_term'); - $I->amOnPage($term3->toUrl('edit-form')->toString()); - $I->click('Save'); - $I->canSee('Updated term'); $I->amOnPage($term3->toUrl()->toString()); $I->canSeeLink($term1->label()); $I->canSeeLink($term2->label()); $I->cantSeeLink($term3->label()); + $I->logInWithRole('site_manager'); $I->amOnPage($term3->toUrl('edit-form')->toString()); $I->selectOption('Parent term', ''); $I->click('Save'); + $I->amOnPage('/user/logout'); $I->amOnPage('/people'); $I->canSeeLink($term3->label()); + $I->logInWithRole('site_manager'); $I->amOnPage($term3->toUrl('edit-form')->toString()); $I->selectOption('Parent term', $term2->label()); $I->click('Save'); + $I->amOnPage('/user/logout'); $I->amOnPage('/people'); $I->cantSeeLink($term3->label());