Skip to content

Commit

Permalink
update acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Sep 9, 2023
1 parent 210db36 commit 26de2f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/codeception/acceptance/SystemCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions tests/codeception/functional/Contrib/RedirectImportCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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', '<main>');
$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');
Expand Down

0 comments on commit 26de2f2

Please sign in to comment.