From b7cc25249bf2703205f78a256874f6e9f694fc9f Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Mon, 9 Oct 2023 11:45:37 -0700 Subject: [PATCH] Update chosen issue --- config/sync/chosen.settings.yml | 4 ++-- ....config_pages.stanford_basic_site_settings.default.yml | 2 +- .../functional/Navigation/NavigationDropDownsCest.php | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/sync/chosen.settings.yml b/config/sync/chosen.settings.yml index 81a07ed88..7ca9b04b2 100644 --- a/config/sync/chosen.settings.yml +++ b/config/sync/chosen.settings.yml @@ -6,15 +6,15 @@ disable_search_threshold: 0 minimum_width: 300 max_shown_results: null use_relative_width: false -jquery_selector: 'select:visible' +jquery_selector: "select:not([class*='simpler-select']):visible" search_contains: false disable_search: false allow_single_deselect: false disabled_themes: claro: '0' - stanford_profile_admin: '0' minimally_branded_subtheme: '0' stanford_basic: '0' + stanford_profile_admin: '0' chosen_include: 2 placeholder_text_multiple: 'Choose some options' placeholder_text_single: 'Choose an option' diff --git a/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml b/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml index 270db4b8f..bb2ca9322 100644 --- a/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml +++ b/config/sync/core.entity_form_display.config_pages.stanford_basic_site_settings.default.yml @@ -238,7 +238,7 @@ content: save_lineage: false force_deepest: false parent: null - level_labels: '' + level_labels: 'Org Code, Group' hierarchy_depth: 0 required_depth: 0 none_label: '- Please select -' diff --git a/tests/codeception/functional/Navigation/NavigationDropDownsCest.php b/tests/codeception/functional/Navigation/NavigationDropDownsCest.php index f9ab2ef52..25138414a 100644 --- a/tests/codeception/functional/Navigation/NavigationDropDownsCest.php +++ b/tests/codeception/functional/Navigation/NavigationDropDownsCest.php @@ -6,6 +6,7 @@ * Test for the lockup settings. * * @group navigation + * @group foobar */ class NavigationDropDownsCest { @@ -53,13 +54,16 @@ public function testDropdownMenus(FunctionalTester $I) { ], 'menu_link_content'); $I->logInWithRole('site_manager'); - $I->resizeWindow(1400, 700); + $I->resizeWindow(1400, 2000); $I->amOnPage('/admin/config/system/basic-site-settings'); $I->uncheckOption('Use drop down menus'); + + $I->click('Contact Details'); + $I->waitForElementVisible('[data-drupal-selector="edit-group-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('Organization', $org_term->id()); + $I->selectOption('Org Code', $org_term->id()); $I->click('Save'); $I->amOnPage('/'); $I->cantSeeElement('button', ['class' => 'su-nav-toggle']);