diff --git a/tests/codeception/acceptance/SystemCest.php b/tests/codeception/acceptance/SystemCest.php index c8319a7eb..46660e72b 100644 --- a/tests/codeception/acceptance/SystemCest.php +++ b/tests/codeception/acceptance/SystemCest.php @@ -13,7 +13,7 @@ class SystemCest { public function testSiteStatus(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/reports/status'); - $I->canSee('9.5', '.system-status-general-info'); + $I->canSee('10.1', '.system-status-general-info'); if ($I->grabMultiple('.system-status-counter--error')) { $I->canSee('1 Error', '.system-status-counter--error'); $I->canSee('Access to update.php ', '.system-status-report__status-icon--error'); diff --git a/tests/codeception/functional/Contrib/RedirectImportCest.php b/tests/codeception/functional/Contrib/RedirectImportCest.php index cc46b70e2..5eddf8ec1 100644 --- a/tests/codeception/functional/Contrib/RedirectImportCest.php +++ b/tests/codeception/functional/Contrib/RedirectImportCest.php @@ -20,6 +20,9 @@ public function __after() { * An imported redirect csv will create the redirects we need. */ public function testRedirectImports(FunctionalTester $I) { + if (!file_exists(codecept_data_dir())) { + mkdir(codecept_data_dir()); + } $file = fopen(codecept_data_dir('redirects.csv'), 'w+'); fputcsv($file, ['source', 'destination', 'language', 'status_code']); diff --git a/tests/codeception/functional/Navigation/NavigationDropDownsCest.php b/tests/codeception/functional/Navigation/NavigationDropDownsCest.php index 8a882d09e..7e6d01952 100644 --- a/tests/codeception/functional/Navigation/NavigationDropDownsCest.php +++ b/tests/codeception/functional/Navigation/NavigationDropDownsCest.php @@ -48,7 +48,7 @@ public function testDropdownMenus(FunctionalTester $I) { ], 'menu_link_content'); $I->logInWithRole('site_manager'); - $I->resizeWindow(1400, 700); + $I->resizeWindow(2500, 1000); $I->amOnPage('/admin/config/system/basic-site-settings'); $I->uncheckOption('Use drop down menus'); $I->click('Save'); @@ -67,8 +67,7 @@ public function testDropdownMenus(FunctionalTester $I) { $I->checkOption('Provide a menu link'); $I->fillField('Menu link title', $node_title); // The label on the menu parent changes in D9 vs D8 - $I->selectOption('.menu-link-form .select-wrapper--level-0 select', '
'); - $I->selectOption('.menu-link-form .select-wrapper--level-1 select', $parent_menu_title); + $I->selectOption('field_menulink[0][menu_parent]', $parent_menu_title); $I->waitForText("Change the weight of the links within the $parent_menu_title menu"); $I->click('Save');