Skip to content

Commit

Permalink
Update taxonomy term test
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Sep 9, 2023
1 parent ea8ac22 commit 7aa9667
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/codeception/acceptance/Content/PersonCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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', '<root>');
$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());
Expand Down

0 comments on commit 7aa9667

Please sign in to comment.