From ec29d6995760eda1d3a1b1e36f83a941974f3523 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Fri, 20 Oct 2023 12:08:53 -0700 Subject: [PATCH] Adjust acceptance tests --- .../functional/Contrib/ExtLinkCest.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/codeception/functional/Contrib/ExtLinkCest.php b/tests/codeception/functional/Contrib/ExtLinkCest.php index 4caa570a4..f0a002179 100644 --- a/tests/codeception/functional/Contrib/ExtLinkCest.php +++ b/tests/codeception/functional/Contrib/ExtLinkCest.php @@ -1,5 +1,6 @@ _after($I); } + /** + * Test Constructor. + */ + public function __construct() { + $this->faker = Factory::create(); + } + /** * Always cleanup the config after testing. * @@ -37,10 +51,22 @@ public function _after(FunctionalTester $I) { * Test external links get the added class and svg. */ public function testExtLink(FunctionalTester $I) { + $org_term = $I->createEntity([ + 'vid' => 'site_owner_orgs', + 'name' => $this->faker->words(2, TRUE), + ], 'taxonomy_term'); + $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/basic-site-settings'); $I->uncheckOption('Hide External Link Icons'); + + $I->click('Contact Details'); + $I->fillField('Site Owner Contact (value 1)', $this->faker->email); + $I->fillField('Technical Contact (value 1)', $this->faker->email); + $I->fillField('Accessibility Contact (value 1)', $this->faker->email); + $I->selectOption('Org Code', $org_term->id()); $I->click('Save'); + $I->cansee('has been updated'); $I->amOnPage('/admin/config/system/local-footer'); $I->checkOption('#edit-su-footer-enabled-value');