From d313f3753b108d27832b46ae0a64960d8bdc10c0 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Fri, 8 Sep 2023 15:45:33 -0700 Subject: [PATCH] Fixed codeception select steps --- ...w_display.node.stanford_course.default.yml | 4 ++-- ...ew_display.node.stanford_event.default.yml | 16 ++++++------- ...lay.node.stanford_event_series.default.yml | 12 +++++----- ...iew_display.node.stanford_news.default.yml | 24 +++++++++---------- ...iew_display.node.stanford_page.default.yml | 6 ++--- ...w_display.node.stanford_person.default.yml | 4 ++-- ...w_display.node.stanford_policy.default.yml | 16 ++++++------- ...play.node.stanford_publication.default.yml | 12 +++++----- config/sync/editor.editor.stanford_html.yml | 4 ++-- .../field.field.node.stanford_course.body.yml | 1 + .../field.field.node.stanford_event.body.yml | 1 + .../field.field.node.stanford_person.body.yml | 1 + .../acceptance/Content/BasicPageCest.php | 2 +- .../acceptance/Content/EventsCest.php | 2 +- .../acceptance/Content/NewsCest.php | 2 +- .../acceptance/Content/PersonCest.php | 2 +- 16 files changed, 56 insertions(+), 53 deletions(-) diff --git a/config/sync/core.entity_view_display.node.stanford_course.default.yml b/config/sync/core.entity_view_display.node.stanford_course.default.yml index b91b4fd2c..b8ab66a31 100644 --- a/config/sync/core.entity_view_display.node.stanford_course.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_course.default.yml @@ -30,11 +30,11 @@ third_party_settings: - layout_id: defaults layout_settings: + label: 'Courses data' + context_mapping: { } extra_classes: '' centered: centered-container columns: default - label: 'Courses data' - context_mapping: { } components: 4739a874-31bb-46c9-91bd-a0bcdbb79636: uuid: 4739a874-31bb-46c9-91bd-a0bcdbb79636 diff --git a/config/sync/core.entity_view_display.node.stanford_event.default.yml b/config/sync/core.entity_view_display.node.stanford_event.default.yml index 7192e6e2b..45bad1e5b 100644 --- a/config/sync/core.entity_view_display.node.stanford_event.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_event.default.yml @@ -51,11 +51,11 @@ third_party_settings: - layout_id: defaults layout_settings: + label: 'Editorial Content' + context_mapping: { } extra_classes: section-editorial-content centered: centered-container columns: default - label: 'Editorial Content' - context_mapping: { } components: cee36061-b3bc-4171-92d5-299e62b7d0f2: uuid: cee36061-b3bc-4171-92d5-299e62b7d0f2 @@ -455,11 +455,11 @@ third_party_settings: - layout_id: defaults layout_settings: + label: 'Body Content' + context_mapping: { } extra_classes: su-events-body centered: centered-container columns: flex-8-of-12 - label: 'Body Content' - context_mapping: { } components: 11df73c4-8beb-43be-b1d2-4ddc537f90b1: uuid: 11df73c4-8beb-43be-b1d2-4ddc537f90b1 @@ -506,11 +506,11 @@ third_party_settings: - layout_id: defaults layout_settings: + label: 'Event type and Schedule' + context_mapping: { } extra_classes: su-events-type-schedule centered: centered-container columns: flex-10-of-12 - label: 'Event type and Schedule' - context_mapping: { } components: d64439dc-f59e-4822-aba0-cdca5a9dc331: uuid: d64439dc-f59e-4822-aba0-cdca5a9dc331 @@ -550,11 +550,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: 'More Events' + context_mapping: { } extra_classes: section-event-more-block centered: centered-container columns: default - label: 'More Events' - context_mapping: { } components: 8e277083-0c99-44f4-ad5f-9f800d0b602e: uuid: 8e277083-0c99-44f4-ad5f-9f800d0b602e diff --git a/config/sync/core.entity_view_display.node.stanford_event_series.default.yml b/config/sync/core.entity_view_display.node.stanford_event_series.default.yml index afb8e7b0d..a618adae2 100644 --- a/config/sync/core.entity_view_display.node.stanford_event_series.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_event_series.default.yml @@ -30,11 +30,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: Header + context_mapping: { } extra_classes: section-event-series--header centered: centered-container columns: flex-10-of-12 - label: Header - context_mapping: { } components: 88ffc4d3-879c-40a2-ae71-c51f2782a54e: uuid: 88ffc4d3-879c-40a2-ae71-c51f2782a54e @@ -114,11 +114,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: Components + context_mapping: { } extra_classes: section-event-series--components centered: centered-container columns: flex-10-of-12 - label: Components - context_mapping: { } components: 678616f1-e2ff-41c7-8725-c5a446077121: uuid: 678616f1-e2ff-41c7-8725-c5a446077121 @@ -145,11 +145,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: 'Event Items' + context_mapping: { } extra_classes: section-event-series--items centered: centered-container columns: flex-8-of-12 - label: 'Event Items' - context_mapping: { } components: 69413f91-a5e0-4afd-805e-bd7b048d576c: uuid: 69413f91-a5e0-4afd-805e-bd7b048d576c diff --git a/config/sync/core.entity_view_display.node.stanford_news.default.yml b/config/sync/core.entity_view_display.node.stanford_news.default.yml index 3626cbd98..e4becdb83 100644 --- a/config/sync/core.entity_view_display.node.stanford_news.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_news.default.yml @@ -39,11 +39,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: Header + context_mapping: { } extra_classes: section-header centered: centered-container columns: flex-10-of-12 - label: Header - context_mapping: { } components: bc326bbf-ff93-4c18-ab2c-ee15c6427f3c: uuid: bc326bbf-ff93-4c18-ab2c-ee15c6427f3c @@ -165,11 +165,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: 'Banner Media' + context_mapping: { } extra_classes: section-banner-media centered: centered-container columns: default - label: 'Banner Media' - context_mapping: { } components: 05c3062a-6e09-4b3b-b8f9-fa797362fb67: uuid: 05c3062a-6e09-4b3b-b8f9-fa797362fb67 @@ -228,11 +228,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: Components + context_mapping: { } extra_classes: section-components centered: centered-container columns: flex-8-of-12 - label: Components - context_mapping: { } components: 4f1a1e3a-caf2-4368-8271-35321c76d216: uuid: 4f1a1e3a-caf2-4368-8271-35321c76d216 @@ -259,11 +259,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: 'Subscribe Form' + context_mapping: { } extra_classes: section-subscribe-form centered: centered-container columns: default - label: 'Subscribe Form' - context_mapping: { } components: e3fd25d5-2528-419b-b34e-a4d0f0b46566: uuid: e3fd25d5-2528-419b-b34e-a4d0f0b46566 @@ -281,11 +281,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: 'More Topics' + context_mapping: { } extra_classes: section-more-topics centered: centered-container columns: flex-10-of-12 - label: 'More Topics' - context_mapping: { } components: 32d871db-85f0-4445-afb8-4d19c97ac98f: uuid: 32d871db-85f0-4445-afb8-4d19c97ac98f @@ -314,11 +314,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: 'Extra Views' + context_mapping: { } extra_classes: section-supporting-content centered: centered-container columns: default - label: 'Extra Views' - context_mapping: { } components: d43e60bd-c832-439e-8151-1b2fd851b98e: uuid: d43e60bd-c832-439e-8151-1b2fd851b98e diff --git a/config/sync/core.entity_view_display.node.stanford_page.default.yml b/config/sync/core.entity_view_display.node.stanford_page.default.yml index 1d7fc2b73..6d2e3f357 100644 --- a/config/sync/core.entity_view_display.node.stanford_page.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_page.default.yml @@ -32,10 +32,10 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + context_mapping: { } extra_classes: '' centered: null columns: default - context_mapping: { } components: da20ed40-0f0f-4103-bda1-29d84c24975f: uuid: da20ed40-0f0f-4103-bda1-29d84c24975f @@ -60,10 +60,10 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + context_mapping: { } extra_classes: '' centered: centered-container columns: default - context_mapping: { } components: af0809fe-fe61-4e78-be4e-4837cd773c26: uuid: af0809fe-fe61-4e78-be4e-4837cd773c26 @@ -88,10 +88,10 @@ third_party_settings: - layout_id: jumpstart_ui_two_column layout_settings: + context_mapping: { } extra_classes: '' centered: centered-container orientation: right - context_mapping: { } components: 582a6898-7096-40c2-bb65-99a556ada919: uuid: 582a6898-7096-40c2-bb65-99a556ada919 diff --git a/config/sync/core.entity_view_display.node.stanford_person.default.yml b/config/sync/core.entity_view_display.node.stanford_person.default.yml index c1b903170..180fbfa32 100644 --- a/config/sync/core.entity_view_display.node.stanford_person.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_person.default.yml @@ -597,11 +597,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: '' + context_mapping: { } extra_classes: '' centered: centered-container columns: default - label: '' - context_mapping: { } components: 500a8acd-f0fc-4021-81f8-61e665df0d70: uuid: 500a8acd-f0fc-4021-81f8-61e665df0d70 diff --git a/config/sync/core.entity_view_display.node.stanford_policy.default.yml b/config/sync/core.entity_view_display.node.stanford_policy.default.yml index 96e457186..ed2a77b47 100644 --- a/config/sync/core.entity_view_display.node.stanford_policy.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_policy.default.yml @@ -38,11 +38,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: '' + context_mapping: { } extra_classes: '' centered: centered-container columns: default - label: '' - context_mapping: { } components: 350c64f9-fcab-4cf1-b5a0-999ed83696ed: uuid: 350c64f9-fcab-4cf1-b5a0-999ed83696ed @@ -59,11 +59,11 @@ third_party_settings: - layout_id: jumpstart_ui_two_column layout_settings: + label: '' + context_mapping: { } extra_classes: su-policy--top centered: centered-container orientation: left - label: '' - context_mapping: { } components: e088bc90-d693-4c57-8c0a-0f2645df81c1: uuid: e088bc90-d693-4c57-8c0a-0f2645df81c1 @@ -102,11 +102,11 @@ third_party_settings: - layout_id: jumpstart_ui_two_column layout_settings: + label: '' + context_mapping: { } extra_classes: main-policy--content centered: centered-container orientation: right - label: '' - context_mapping: { } components: e41989aa-33de-4c81-877f-4839205895a2: uuid: e41989aa-33de-4c81-877f-4839205895a2 @@ -258,11 +258,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: '' + context_mapping: { } extra_classes: '' centered: centered-container columns: default - label: '' - context_mapping: { } components: 9239f3b1-86c9-4d97-8e6c-f1ded39f2a02: uuid: 9239f3b1-86c9-4d97-8e6c-f1ded39f2a02 diff --git a/config/sync/core.entity_view_display.node.stanford_publication.default.yml b/config/sync/core.entity_view_display.node.stanford_publication.default.yml index 0b2ba0431..de80347bc 100644 --- a/config/sync/core.entity_view_display.node.stanford_publication.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_publication.default.yml @@ -30,11 +30,11 @@ third_party_settings: - layout_id: defaults layout_settings: + label: '' + context_mapping: { } extra_classes: '' centered: centered-container columns: default - label: '' - context_mapping: { } components: 4df7625d-a934-4076-a6ff-d70bf5aa9f2e: uuid: 4df7625d-a934-4076-a6ff-d70bf5aa9f2e @@ -76,11 +76,11 @@ third_party_settings: - layout_id: jumpstart_ui_two_column layout_settings: + label: '' + context_mapping: { } extra_classes: '' centered: centered-container orientation: left - label: '' - context_mapping: { } components: 42ec0a5c-ba15-4be4-9d66-9fecee9a3912: uuid: 42ec0a5c-ba15-4be4-9d66-9fecee9a3912 @@ -154,11 +154,11 @@ third_party_settings: - layout_id: jumpstart_ui_one_column layout_settings: + label: '' + context_mapping: { } extra_classes: '' centered: centered-container columns: flex-12-of-12 - label: '' - context_mapping: { } components: 797a272b-885d-4772-a161-853409dca684: uuid: 797a272b-885d-4772-a161-853409dca684 diff --git a/config/sync/editor.editor.stanford_html.yml b/config/sync/editor.editor.stanford_html.yml index 7aabc6d77..91ad965a6 100644 --- a/config/sync/editor.editor.stanford_html.yml +++ b/config/sync/editor.editor.stanford_html.yml @@ -42,10 +42,10 @@ settings: plugins: ckeditor5_alignment: enabled_alignments: - - left - center - - right - justify + - left + - right ckeditor5_codeBlock: languages: - diff --git a/config/sync/field.field.node.stanford_course.body.yml b/config/sync/field.field.node.stanford_course.body.yml index f2874d983..bd60d2e5f 100644 --- a/config/sync/field.field.node.stanford_course.body.yml +++ b/config/sync/field.field.node.stanford_course.body.yml @@ -22,4 +22,5 @@ default_value_callback: '' settings: display_summary: true required_summary: false + allowed_formats: { } field_type: text_with_summary diff --git a/config/sync/field.field.node.stanford_event.body.yml b/config/sync/field.field.node.stanford_event.body.yml index f9c771af5..6cee392d2 100644 --- a/config/sync/field.field.node.stanford_event.body.yml +++ b/config/sync/field.field.node.stanford_event.body.yml @@ -20,4 +20,5 @@ default_value_callback: '' settings: display_summary: true required_summary: false + allowed_formats: { } field_type: text_with_summary diff --git a/config/sync/field.field.node.stanford_person.body.yml b/config/sync/field.field.node.stanford_person.body.yml index 3f239da2b..8f0146265 100644 --- a/config/sync/field.field.node.stanford_person.body.yml +++ b/config/sync/field.field.node.stanford_person.body.yml @@ -20,4 +20,5 @@ default_value_callback: '' settings: display_summary: true required_summary: false + allowed_formats: { } field_type: text_with_summary diff --git a/tests/codeception/acceptance/Content/BasicPageCest.php b/tests/codeception/acceptance/Content/BasicPageCest.php index 82e47544a..217ea16e8 100644 --- a/tests/codeception/acceptance/Content/BasicPageCest.php +++ b/tests/codeception/acceptance/Content/BasicPageCest.php @@ -211,7 +211,7 @@ public function testClone(AcceptanceTester $I) { $I->checkOption('tr:contains("' . $title . '") input[name^="views_bulk_operations_bulk_form"]'); $I->selectOption('Action', 'Clone selected content'); $I->click('Apply to selected items'); - $I->selectOption('Clone how many times', 2); + $I->selectOption('Clone how many times', '2'); $I->click('Apply'); $links = $I->grabMultiple('a:contains("' . $title . '")'); $I->assertCount(3, $links); diff --git a/tests/codeception/acceptance/Content/EventsCest.php b/tests/codeception/acceptance/Content/EventsCest.php index a4449cc90..855cc597e 100644 --- a/tests/codeception/acceptance/Content/EventsCest.php +++ b/tests/codeception/acceptance/Content/EventsCest.php @@ -324,7 +324,7 @@ public function testClone(AcceptanceTester $I) { $I->checkOption('tr:contains("' . $node->label() . '") input[name^="views_bulk_operations_bulk_form"]'); $I->selectOption('Action', 'Clone selected content'); $I->click('Apply to selected items'); - $I->selectOption('Clone how many times', 2); + $I->selectOption('Clone how many times', '2'); $I->selectOption('Increment Amount', '3'); $I->selectOption('Units', 'Month'); $I->click('Apply'); diff --git a/tests/codeception/acceptance/Content/NewsCest.php b/tests/codeception/acceptance/Content/NewsCest.php index 90866a53d..293c9d319 100644 --- a/tests/codeception/acceptance/Content/NewsCest.php +++ b/tests/codeception/acceptance/Content/NewsCest.php @@ -135,7 +135,7 @@ public function testXMLMetaDataRevisions(AcceptanceTester $I) { $I->amOnPage("/admin/config/search/xmlsitemap/settings"); $I->see("News"); $I->amOnPage("/admin/config/search/xmlsitemap/settings/node/stanford_news"); - $I->selectOption("#edit-xmlsitemap-status", 1); + $I->selectOption("#edit-xmlsitemap-status", '1'); // Metatags. $I->amOnPage("/admin/config/search/metatag/node__stanford_news"); diff --git a/tests/codeception/acceptance/Content/PersonCest.php b/tests/codeception/acceptance/Content/PersonCest.php index f69c00dd2..9e9a83ecd 100644 --- a/tests/codeception/acceptance/Content/PersonCest.php +++ b/tests/codeception/acceptance/Content/PersonCest.php @@ -104,7 +104,7 @@ public function testXMLMetaDataRevisions(AcceptanceTester $I) { $I->amOnPage('/admin/config/search/xmlsitemap/settings'); $I->see('Person'); $I->amOnPage('/admin/config/search/xmlsitemap/settings/node/stanford_person'); - $I->selectOption('#edit-xmlsitemap-status', 1); + $I->selectOption('#edit-xmlsitemap-status', '1'); // Metatags. $I->amOnPage('/admin/config/search/metatag/node__stanford_person');