From 71f2248780113730a33707483bce07a8136e916e Mon Sep 17 00:00:00 2001 From: pookmish Date: Tue, 25 Jun 2024 09:32:05 -0700 Subject: [PATCH] Update to drupal 10.3.0 (#794) --- .github/workflows/tests.yml | 6 ++++++ composer.json | 6 +++--- config/sync/autologout.settings.yml | 1 + .../sync/block_content.type.stanford_component_block.yml | 2 +- config/sync/chosen.settings.yml | 1 + config/sync/colorbox.settings.yml | 1 + ...core.entity_view_display.media.embeddable.default.yml | 8 ++++++-- config/sync/core.extension.yml | 1 + config/sync/diff.settings.yml | 1 + config/sync/editor.editor.stanford_html.yml | 6 ------ config/sync/editor.editor.stanford_minimal_html.yml | 6 ------ config/sync/extlink.settings.yml | 1 + config/sync/imagemagick.settings.yml | 1 + config/sync/next.settings.yml | 1 - config/sync/node.type.stanford_course.yml | 2 +- config/sync/node.type.stanford_event.yml | 2 +- config/sync/node.type.stanford_event_series.yml | 2 +- config/sync/node.type.stanford_news.yml | 4 ++-- config/sync/node.type.stanford_page.yml | 4 ++-- config/sync/node.type.stanford_person.yml | 2 +- config/sync/node.type.stanford_policy.yml | 2 +- config/sync/node.type.stanford_publication.yml | 4 ++-- config/sync/system.cron.yml | 2 +- config/sync/system.date.yml | 2 +- config/sync/taxonomy.vocabulary.basic_page_types.yml | 1 + config/sync/taxonomy.vocabulary.cap_org_codes.yml | 3 ++- config/sync/taxonomy.vocabulary.event_audience.yml | 1 + config/sync/taxonomy.vocabulary.media_tags.yml | 3 ++- config/sync/taxonomy.vocabulary.site_owner_orgs.yml | 3 ++- .../sync/taxonomy.vocabulary.stanford_event_groups.yml | 3 ++- .../sync/taxonomy.vocabulary.stanford_event_keywords.yml | 3 ++- .../sync/taxonomy.vocabulary.stanford_event_subject.yml | 3 ++- config/sync/taxonomy.vocabulary.stanford_event_types.yml | 1 + config/sync/taxonomy.vocabulary.stanford_news_topics.yml | 1 + .../sync/taxonomy.vocabulary.stanford_person_types.yml | 1 + .../taxonomy.vocabulary.stanford_publication_topics.yml | 1 + config/sync/taxonomy.vocabulary.su_course_quarters.yml | 1 + config/sync/taxonomy.vocabulary.su_course_subjects.yml | 1 + config/sync/taxonomy.vocabulary.su_course_tags.yml | 1 + config/sync/taxonomy.vocabulary.su_shared_tags.yml | 1 + config/sync/views.view.authmap.yml | 1 + config/sync/views.view.block_content.yml | 1 + config/sync/views.view.content.yml | 1 + config/sync/views.view.editoria11y_dismissals.yml | 1 + config/sync/views.view.editoria11y_results.yml | 5 +++++ config/sync/views.view.files.yml | 2 ++ config/sync/views.view.locked_content.yml | 1 + config/sync/views.view.media.yml | 1 + config/sync/views.view.media_library.yml | 1 + config/sync/views.view.redirect.yml | 1 + config/sync/views.view.samlauth_map.yml | 1 + config/sync/views.view.scheduler_scheduled_content.yml | 4 +++- config/sync/views.view.scheduler_scheduled_media.yml | 4 +++- config/sync/views.view.search.yml | 1 + config/sync/views.view.stanford_basic_pages.yml | 2 ++ config/sync/views.view.stanford_courses.yml | 2 ++ config/sync/views.view.stanford_events.yml | 3 +++ config/sync/views.view.stanford_news.yml | 2 ++ config/sync/views.view.stanford_person.yml | 1 + config/sync/views.view.stanford_publications.yml | 5 ++++- config/sync/views.view.stanford_shared_tags.yml | 1 + config/sync/views.view.taxonomy_term.yml | 1 + config/sync/views.view.user_admin_people.yml | 1 + .../acceptance/AuthenticatedPermissionsCest.php | 9 +++------ tests/codeception/acceptance/Content/BasicPageCest.php | 3 ++- tests/codeception/acceptance/Content/EventsCest.php | 3 +-- tests/codeception/acceptance/Content/PersonCest.php | 2 ++ tests/codeception/acceptance/Content/PolicyCest.php | 2 ++ .../acceptance/LocalFooter/LocalFooterCest.php | 1 + tests/codeception/acceptance/Media/MediaCest.php | 1 + tests/codeception/acceptance/Media/MediaFormsCest.php | 6 ++++-- tests/codeception/acceptance/SystemCest.php | 2 +- tests/codeception/acceptance/SystemSiteConfigCest.php | 3 +++ tests/codeception/acceptance/Users/IntranetCest.php | 4 ++++ tests/codeception/acceptance/Users/RolesCest.php | 2 ++ tests/src/Kernel/EventSubscriber/EventSubscriberTest.php | 3 ++- 76 files changed, 126 insertions(+), 54 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e1453503..e5fec5715 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,6 +7,8 @@ jobs: phpunit: name: PHPUnit Coverage Tests runs-on: ubuntu-latest + strategy: + fail-fast: false container: image: pookmish/drupal8ci:latest services: @@ -39,6 +41,8 @@ jobs: acceptance: name: Codeception Acceptance Tests runs-on: ubuntu-latest + strategy: + fail-fast: false env: DRUPAL_DATABASE_NAME: drupal DRUPAL_DATABASE_USERNAME: drupal @@ -77,6 +81,8 @@ jobs: functional: name: Codeception Functional Tests runs-on: ubuntu-latest + strategy: + fail-fast: false env: DRUPAL_DATABASE_NAME: drupal DRUPAL_DATABASE_USERNAME: drupal diff --git a/composer.json b/composer.json index 9ad115885..81d8fd288 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,7 @@ "drupal/config_split": "^2.0", "drupal/confirm_leave": "^1.0@beta", "drupal/content_lock": "^2.2", - "drupal/core": "~10.2.0", + "drupal/core": "~10.3.0", "drupal/cshs": "^4.0", "drupal/default_content": "^2.0@alpha", "drupal/diff": "^1.3", @@ -87,7 +87,7 @@ "drupal/hook_event_dispatcher": "^4.0@beta", "drupal/image_effects": "^3.2", "drupal/imagecache_external": "^3.0", - "drupal/imagemagick": "^3.1", + "drupal/imagemagick": "^4.0", "drupal/jquery_ui_draggable": "^2.0", "drupal/jsonapi_extras": "^3.20", "drupal/jsonapi_hypermedia": "^1.9", @@ -162,7 +162,7 @@ "su-sws/stanford_fields": "^8.2", "su-sws/stanford_media": "^11.0", "su-sws/stanford_migrate": "^8.3", - "su-sws/stanford_profile_helper": "^9.6", + "su-sws/stanford_profile_helper": "9.x-dev", "su-sws/stanford_samlauth": "^1.0" }, "config": { diff --git a/config/sync/autologout.settings.yml b/config/sync/autologout.settings.yml index acfe9c31e..9abe6e7de 100644 --- a/config/sync/autologout.settings.yml +++ b/config/sync/autologout.settings.yml @@ -1,5 +1,6 @@ _core: default_config_hash: kwGGKvKSU7cPTEgTMWrbW0o9Jwe6FSDmpgdUWmIXCdg +langcode: en enabled: true timeout: 43200 max_timeout: 172800 diff --git a/config/sync/block_content.type.stanford_component_block.yml b/config/sync/block_content.type.stanford_component_block.yml index 26cd9d2cd..11fc903ee 100644 --- a/config/sync/block_content.type.stanford_component_block.yml +++ b/config/sync/block_content.type.stanford_component_block.yml @@ -4,5 +4,5 @@ status: true dependencies: { } id: stanford_component_block label: 'Component Block' -revision: 0 +revision: false description: 'A block with a component paragraph field' diff --git a/config/sync/chosen.settings.yml b/config/sync/chosen.settings.yml index 696507591..89bf7decc 100644 --- a/config/sync/chosen.settings.yml +++ b/config/sync/chosen.settings.yml @@ -1,5 +1,6 @@ _core: default_config_hash: YWbqKPHA3djohSgnBRKhK0NUjnO1dL1XmIo3yBw3oFo +langcode: en minimum_single: 20 minimum_multiple: 20 disable_search_threshold: 0 diff --git a/config/sync/colorbox.settings.yml b/config/sync/colorbox.settings.yml index 41c44f109..e58ed48f2 100644 --- a/config/sync/colorbox.settings.yml +++ b/config/sync/colorbox.settings.yml @@ -1,5 +1,6 @@ _core: default_config_hash: GXgpFNb8H7n-27gImTB9s1A2lE-lmH43d6qf2KMYp_A +langcode: en dompurify_hide_warning: true custom: style: default diff --git a/config/sync/core.entity_view_display.media.embeddable.default.yml b/config/sync/core.entity_view_display.media.embeddable.default.yml index 6cebc52a6..73e6ba940 100644 --- a/config/sync/core.entity_view_display.media.embeddable.default.yml +++ b/config/sync/core.entity_view_display.media.embeddable.default.yml @@ -15,20 +15,24 @@ mode: default content: field_media_embeddable_code: type: embeddable_formatter - label: visually_hidden + label: hidden settings: max_width: 0 max_height: 0 + loading: + attribute: lazy allowed_tags: 'a aside audio b blockquote br button caption cite code dd dl div drupal-media dt em embed form h1 h2 h3 h4 h5 hr i iframe img input label li object ol option p param pre s script select source span strong sub sup table tbody textarea td tfoot th thead tr ul video figure figcaption' third_party_settings: { } weight: 1 region: content field_media_embeddable_oembed: type: embeddable_formatter - label: visually_hidden + label: hidden settings: max_width: 0 max_height: 0 + loading: + attribute: lazy allowed_tags: '' third_party_settings: { } weight: 0 diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index d7fe6f3c8..0526eb2f0 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -111,6 +111,7 @@ module: jumpstart_ui: 0 key: 0 layout_builder: 0 + layout_builder_expose_all_field_blocks: 0 layout_builder_modal: 0 layout_builder_restrictions: 0 layout_discovery: 0 diff --git a/config/sync/diff.settings.yml b/config/sync/diff.settings.yml index 1a14c0a88..06a648b95 100644 --- a/config/sync/diff.settings.yml +++ b/config/sync/diff.settings.yml @@ -1,5 +1,6 @@ _core: default_config_hash: oXwX3NzLv9QK_LbNEvpQ9OPwH9tqtMSJzq5y8t63Q8w +langcode: en general_settings: radio_behavior: simple context_lines_leading: 1 diff --git a/config/sync/editor.editor.stanford_html.yml b/config/sync/editor.editor.stanford_html.yml index 75ecdae1a..74f664bb1 100644 --- a/config/sync/editor.editor.stanford_html.yml +++ b/config/sync/editor.editor.stanford_html.yml @@ -177,9 +177,3 @@ settings: allow_view_mode_override: true image_upload: status: false - scheme: public - directory: inline-images - max_size: '' - max_dimensions: - width: null - height: null diff --git a/config/sync/editor.editor.stanford_minimal_html.yml b/config/sync/editor.editor.stanford_minimal_html.yml index ee8948d96..7d1a53368 100644 --- a/config/sync/editor.editor.stanford_minimal_html.yml +++ b/config/sync/editor.editor.stanford_minimal_html.yml @@ -64,9 +64,3 @@ settings: linkit_profile: default image_upload: status: false - scheme: public - directory: inline-images - max_size: '' - max_dimensions: - width: null - height: null diff --git a/config/sync/extlink.settings.yml b/config/sync/extlink.settings.yml index 6a168fe32..b2bf0c399 100644 --- a/config/sync/extlink.settings.yml +++ b/config/sync/extlink.settings.yml @@ -1,5 +1,6 @@ _core: default_config_hash: gp38_GoeI-5DmdfeFE0NfHi_mbT2SqdU0zsJIQv-ehc +langcode: en extlink_use_external_js_file: false extlink_exclude_admin_routes: false extlink_target: false diff --git a/config/sync/imagemagick.settings.yml b/config/sync/imagemagick.settings.yml index 41c1ee7cf..c339caee8 100644 --- a/config/sync/imagemagick.settings.yml +++ b/config/sync/imagemagick.settings.yml @@ -55,3 +55,4 @@ advanced: coalesce: true prepend_pre_source: false use_identify: true +imagemagick_version: v6 diff --git a/config/sync/next.settings.yml b/config/sync/next.settings.yml index 5a38867e1..3bf626afe 100644 --- a/config/sync/next.settings.yml +++ b/config/sync/next.settings.yml @@ -1,6 +1,5 @@ _core: default_config_hash: xRrZztTZj9Lor1bWUC6p2aB3S29Vg8m94UrOwc5AZps -langcode: en site_previewer: iframe site_previewer_configuration: width: 100% diff --git a/config/sync/node.type.stanford_course.yml b/config/sync/node.type.stanford_course.yml index 7a9cd20a7..65fbecda4 100644 --- a/config/sync/node.type.stanford_course.yml +++ b/config/sync/node.type.stanford_course.yml @@ -27,7 +27,7 @@ _core: name: Course type: stanford_course description: 'A course includes information such as title, year, quarter, day(s) and time(s), etc.' -help: '' +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_event.yml b/config/sync/node.type.stanford_event.yml index 5e8623da4..c714061f7 100644 --- a/config/sync/node.type.stanford_event.yml +++ b/config/sync/node.type.stanford_event.yml @@ -30,7 +30,7 @@ third_party_settings: name: Event type: stanford_event description: 'An event content type with integration with events-legacy.stanford.edu' -help: '' +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_event_series.yml b/config/sync/node.type.stanford_event_series.yml index 4f9eea307..bafb6d208 100644 --- a/config/sync/node.type.stanford_event_series.yml +++ b/config/sync/node.type.stanford_event_series.yml @@ -31,7 +31,7 @@ third_party_settings: name: 'Event Series' type: stanford_event_series description: 'A collection of events' -help: '' +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_news.yml b/config/sync/node.type.stanford_news.yml index 720dd4aac..693e14f03 100644 --- a/config/sync/node.type.stanford_news.yml +++ b/config/sync/node.type.stanford_news.yml @@ -29,8 +29,8 @@ third_party_settings: unpublish_revision: false name: News type: stanford_news -description: '' -help: '' +description: null +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_page.yml b/config/sync/node.type.stanford_page.yml index a0023107e..7c1425e96 100644 --- a/config/sync/node.type.stanford_page.yml +++ b/config/sync/node.type.stanford_page.yml @@ -30,8 +30,8 @@ third_party_settings: unpublish_revision: false name: 'Basic Page' type: stanford_page -description: '' -help: '' +description: null +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_person.yml b/config/sync/node.type.stanford_person.yml index 7e90841a3..9c5d4da66 100644 --- a/config/sync/node.type.stanford_person.yml +++ b/config/sync/node.type.stanford_person.yml @@ -32,7 +32,7 @@ third_party_settings: name: Person type: stanford_person description: 'Stanford Person type with bio and supporting information. Content-type for syncing with CAP data.' -help: '' +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_policy.yml b/config/sync/node.type.stanford_policy.yml index 40c46e7e3..4b61e07fb 100644 --- a/config/sync/node.type.stanford_policy.yml +++ b/config/sync/node.type.stanford_policy.yml @@ -26,7 +26,7 @@ third_party_settings: name: Policy type: stanford_policy description: 'BETA: Provide a administrative policy structure with breadcrumbs.' -help: '' +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/node.type.stanford_publication.yml b/config/sync/node.type.stanford_publication.yml index cfbdcd61c..8c5308d73 100644 --- a/config/sync/node.type.stanford_publication.yml +++ b/config/sync/node.type.stanford_publication.yml @@ -29,8 +29,8 @@ third_party_settings: unpublish_revision: false name: Publication type: stanford_publication -description: '' -help: '' +description: null +help: null new_revision: true preview_mode: 0 display_submitted: false diff --git a/config/sync/system.cron.yml b/config/sync/system.cron.yml index 49e58a00c..6d1cca2f6 100644 --- a/config/sync/system.cron.yml +++ b/config/sync/system.cron.yml @@ -3,4 +3,4 @@ _core: threshold: requirements_warning: 172800 requirements_error: 1209600 -logging: 1 +logging: true diff --git a/config/sync/system.date.yml b/config/sync/system.date.yml index ffe749cf3..0945d5481 100644 --- a/config/sync/system.date.yml +++ b/config/sync/system.date.yml @@ -2,7 +2,7 @@ _core: default_config_hash: V9UurX2GPT05NWKG9f2GWQqFG2TRG8vczidwjpy7Woo first_day: 0 country: - default: '' + default: null timezone: default: America/Los_Angeles user: diff --git a/config/sync/taxonomy.vocabulary.basic_page_types.yml b/config/sync/taxonomy.vocabulary.basic_page_types.yml index 3dbf162d3..f6f8f4234 100644 --- a/config/sync/taxonomy.vocabulary.basic_page_types.yml +++ b/config/sync/taxonomy.vocabulary.basic_page_types.yml @@ -22,3 +22,4 @@ name: 'Basic Page Types' vid: basic_page_types description: 'Broad categories that specify a type of Basic Page. (i.e. Research Projects)' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.cap_org_codes.yml b/config/sync/taxonomy.vocabulary.cap_org_codes.yml index fb29bd211..7e40e849b 100644 --- a/config/sync/taxonomy.vocabulary.cap_org_codes.yml +++ b/config/sync/taxonomy.vocabulary.cap_org_codes.yml @@ -4,5 +4,6 @@ status: true dependencies: { } name: 'CAP Org Codes' vid: cap_org_codes -description: '' +description: null weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.event_audience.yml b/config/sync/taxonomy.vocabulary.event_audience.yml index 0d0b53212..2ee53f865 100644 --- a/config/sync/taxonomy.vocabulary.event_audience.yml +++ b/config/sync/taxonomy.vocabulary.event_audience.yml @@ -22,3 +22,4 @@ name: 'Event Audience' vid: event_audience description: 'A curated list of groups that an Event is open to.' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.media_tags.yml b/config/sync/taxonomy.vocabulary.media_tags.yml index de7a4b6a1..f5c4b596e 100644 --- a/config/sync/taxonomy.vocabulary.media_tags.yml +++ b/config/sync/taxonomy.vocabulary.media_tags.yml @@ -20,5 +20,6 @@ third_party_settings: unpublish_revision: false name: 'Media Tags' vid: media_tags -description: '' +description: null weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.site_owner_orgs.yml b/config/sync/taxonomy.vocabulary.site_owner_orgs.yml index bab4dc8a4..5fe1f7010 100644 --- a/config/sync/taxonomy.vocabulary.site_owner_orgs.yml +++ b/config/sync/taxonomy.vocabulary.site_owner_orgs.yml @@ -20,5 +20,6 @@ third_party_settings: unpublish_revision: false name: 'Site Owner Orgs' vid: site_owner_orgs -description: '' +description: null weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_event_groups.yml b/config/sync/taxonomy.vocabulary.stanford_event_groups.yml index 04274beb7..0822847a1 100644 --- a/config/sync/taxonomy.vocabulary.stanford_event_groups.yml +++ b/config/sync/taxonomy.vocabulary.stanford_event_groups.yml @@ -20,5 +20,6 @@ third_party_settings: unpublish_revision: false name: 'Event Departments & Groups' vid: stanford_event_groups -description: '' +description: null weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_event_keywords.yml b/config/sync/taxonomy.vocabulary.stanford_event_keywords.yml index 0cd0f4629..92732aee0 100644 --- a/config/sync/taxonomy.vocabulary.stanford_event_keywords.yml +++ b/config/sync/taxonomy.vocabulary.stanford_event_keywords.yml @@ -23,5 +23,6 @@ third_party_settings: unpublish_revision: false name: 'Event Keywords and Tags' vid: stanford_event_keywords -description: '' +description: null weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_event_subject.yml b/config/sync/taxonomy.vocabulary.stanford_event_subject.yml index e6f698581..5e5478578 100644 --- a/config/sync/taxonomy.vocabulary.stanford_event_subject.yml +++ b/config/sync/taxonomy.vocabulary.stanford_event_subject.yml @@ -20,5 +20,6 @@ third_party_settings: unpublish_revision: false name: 'Event Subject' vid: stanford_event_subject -description: '' +description: null weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_event_types.yml b/config/sync/taxonomy.vocabulary.stanford_event_types.yml index 57a7d02a7..6e7cca460 100644 --- a/config/sync/taxonomy.vocabulary.stanford_event_types.yml +++ b/config/sync/taxonomy.vocabulary.stanford_event_types.yml @@ -22,3 +22,4 @@ name: 'Event Types' vid: stanford_event_types description: 'Broad categories that specify a type of Event. (i.e. Lecture)' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_news_topics.yml b/config/sync/taxonomy.vocabulary.stanford_news_topics.yml index 20f62f417..ad243c62b 100644 --- a/config/sync/taxonomy.vocabulary.stanford_news_topics.yml +++ b/config/sync/taxonomy.vocabulary.stanford_news_topics.yml @@ -22,3 +22,4 @@ name: 'News Types' vid: stanford_news_topics description: 'Broad categories that specify a type of News article. (i.e. Blog)' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_person_types.yml b/config/sync/taxonomy.vocabulary.stanford_person_types.yml index 6f09f8d38..c5194dd77 100644 --- a/config/sync/taxonomy.vocabulary.stanford_person_types.yml +++ b/config/sync/taxonomy.vocabulary.stanford_person_types.yml @@ -22,3 +22,4 @@ name: 'Person Types' vid: stanford_person_types description: 'Terms to support grouping of People.' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.stanford_publication_topics.yml b/config/sync/taxonomy.vocabulary.stanford_publication_topics.yml index c74ddd288..cc2994a62 100644 --- a/config/sync/taxonomy.vocabulary.stanford_publication_topics.yml +++ b/config/sync/taxonomy.vocabulary.stanford_publication_topics.yml @@ -22,3 +22,4 @@ name: 'Publication Types' vid: stanford_publication_topics description: 'Broad categories that specify a type of Publication. (i.e. white-paper)' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.su_course_quarters.yml b/config/sync/taxonomy.vocabulary.su_course_quarters.yml index 9a668ed1b..aaa2e1258 100644 --- a/config/sync/taxonomy.vocabulary.su_course_quarters.yml +++ b/config/sync/taxonomy.vocabulary.su_course_quarters.yml @@ -25,3 +25,4 @@ name: 'Course Quarters' vid: su_course_quarters description: 'Quarters offered for courses, via ExploreCourses' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.su_course_subjects.yml b/config/sync/taxonomy.vocabulary.su_course_subjects.yml index c08bc4fa5..2026e6ebf 100644 --- a/config/sync/taxonomy.vocabulary.su_course_subjects.yml +++ b/config/sync/taxonomy.vocabulary.su_course_subjects.yml @@ -25,3 +25,4 @@ name: 'Course Subjects' vid: su_course_subjects description: 'Course subjects from ExploreCourses' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.su_course_tags.yml b/config/sync/taxonomy.vocabulary.su_course_tags.yml index 3db2ab1ed..94c742326 100644 --- a/config/sync/taxonomy.vocabulary.su_course_tags.yml +++ b/config/sync/taxonomy.vocabulary.su_course_tags.yml @@ -8,3 +8,4 @@ name: 'Course Tags' vid: su_course_tags description: 'Tags from ExploreCourses' weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.su_shared_tags.yml b/config/sync/taxonomy.vocabulary.su_shared_tags.yml index e4cbc8cf6..9c9c796b3 100644 --- a/config/sync/taxonomy.vocabulary.su_shared_tags.yml +++ b/config/sync/taxonomy.vocabulary.su_shared_tags.yml @@ -25,3 +25,4 @@ name: 'Shared Tags' vid: su_shared_tags description: 'Terms that can be used to describe all content types (i.e. Featured)' weight: 0 +new_revision: false diff --git a/config/sync/views.view.authmap.yml b/config/sync/views.view.authmap.yml index 4e1c90741..b9dc0f8a7 100644 --- a/config/sync/views.view.authmap.yml +++ b/config/sync/views.view.authmap.yml @@ -311,6 +311,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.block_content.yml b/config/sync/views.view.block_content.yml index f9800ebb3..7541030b9 100644 --- a/config/sync/views.view.block_content.yml +++ b/config/sync/views.view.block_content.yml @@ -287,6 +287,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.content.yml b/config/sync/views.view.content.yml index 054624645..093da88e7 100644 --- a/config/sync/views.view.content.yml +++ b/config/sync/views.view.content.yml @@ -321,6 +321,7 @@ display: previous: '‹ Previous' first: '« First' last: 'Last »' + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.editoria11y_dismissals.yml b/config/sync/views.view.editoria11y_dismissals.yml index fcf6fef58..423b3945b 100644 --- a/config/sync/views.view.editoria11y_dismissals.yml +++ b/config/sync/views.view.editoria11y_dismissals.yml @@ -721,6 +721,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 sorts: created: id: created diff --git a/config/sync/views.view.editoria11y_results.yml b/config/sync/views.view.editoria11y_results.yml index c2ee69fb4..c1a90e08e 100644 --- a/config/sync/views.view.editoria11y_results.yml +++ b/config/sync/views.view.editoria11y_results.yml @@ -1089,6 +1089,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 sorts: result_name_count: id: result_name_count @@ -1469,6 +1470,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 sorts: result_name_count: id: result_name_count @@ -1951,6 +1953,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 sorts: page_result_count: id: page_result_count @@ -2462,6 +2465,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 sorts: result_name_count: id: result_name_count @@ -3004,6 +3008,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 sorts: created: id: created diff --git a/config/sync/views.view.files.yml b/config/sync/views.view.files.yml index 5e35d85a6..f143aef5a 100644 --- a/config/sync/views.view.files.yml +++ b/config/sync/views.view.files.yml @@ -545,6 +545,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: @@ -1080,6 +1081,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 empty: { } arguments: fid: diff --git a/config/sync/views.view.locked_content.yml b/config/sync/views.view.locked_content.yml index 8d054d27f..9f8ecbd3c 100644 --- a/config/sync/views.view.locked_content.yml +++ b/config/sync/views.view.locked_content.yml @@ -385,6 +385,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.media.yml b/config/sync/views.view.media.yml index c054a042a..ea9c17d22 100644 --- a/config/sync/views.view.media.yml +++ b/config/sync/views.view.media.yml @@ -539,6 +539,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.media_library.yml b/config/sync/views.view.media_library.yml index 03ed38b3a..0b00aa03a 100644 --- a/config/sync/views.view.media_library.yml +++ b/config/sync/views.view.media_library.yml @@ -153,6 +153,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.redirect.yml b/config/sync/views.view.redirect.yml index ca0c8de2f..9c33604e3 100644 --- a/config/sync/views.view.redirect.yml +++ b/config/sync/views.view.redirect.yml @@ -243,6 +243,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.samlauth_map.yml b/config/sync/views.view.samlauth_map.yml index 1d5fff8f5..3dcb20f85 100644 --- a/config/sync/views.view.samlauth_map.yml +++ b/config/sync/views.view.samlauth_map.yml @@ -263,6 +263,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.scheduler_scheduled_content.yml b/config/sync/views.view.scheduler_scheduled_content.yml index 45ece126e..4dd85c613 100644 --- a/config/sync/views.view.scheduler_scheduled_content.yml +++ b/config/sync/views.view.scheduler_scheduled_content.yml @@ -541,6 +541,7 @@ display: previous: '‹ previous' first: '« first' last: 'last »' + pagination_heading_level: h4 exposed_form: type: basic options: @@ -1083,7 +1084,7 @@ display: admin_label: '' entity_type: node entity_field: uid - plugin_id: numeric + plugin_id: entity_target_id default_action: empty exception: value: all @@ -1115,6 +1116,7 @@ display: roles: { } break_phrase: false not: false + target_entity_type_id: user defaults: empty: false access: false diff --git a/config/sync/views.view.scheduler_scheduled_media.yml b/config/sync/views.view.scheduler_scheduled_media.yml index 3304bab8c..63424a9cd 100644 --- a/config/sync/views.view.scheduler_scheduled_media.yml +++ b/config/sync/views.view.scheduler_scheduled_media.yml @@ -567,6 +567,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: @@ -1080,7 +1081,8 @@ display: field: uid entity_type: media entity_field: uid - plugin_id: numeric + plugin_id: entity_target_id + target_entity_type_id: user defaults: empty: false access: false diff --git a/config/sync/views.view.search.yml b/config/sync/views.view.search.yml index 86e9458cf..f2c220bea 100644 --- a/config/sync/views.view.search.yml +++ b/config/sync/views.view.search.yml @@ -249,6 +249,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.stanford_basic_pages.yml b/config/sync/views.view.stanford_basic_pages.yml index 64c0c9901..77feefd66 100644 --- a/config/sync/views.view.stanford_basic_pages.yml +++ b/config/sync/views.view.stanford_basic_pages.yml @@ -694,6 +694,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth @@ -817,6 +818,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth diff --git a/config/sync/views.view.stanford_courses.yml b/config/sync/views.view.stanford_courses.yml index 5f8f1105c..fe60e6d35 100644 --- a/config/sync/views.view.stanford_courses.yml +++ b/config/sync/views.view.stanford_courses.yml @@ -1991,6 +1991,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth @@ -3810,6 +3811,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 style: type: graphql options: null diff --git a/config/sync/views.view.stanford_events.yml b/config/sync/views.view.stanford_events.yml index 94bdaad81..7317f1c57 100644 --- a/config/sync/views.view.stanford_events.yml +++ b/config/sync/views.view.stanford_events.yml @@ -1051,6 +1051,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth @@ -4199,6 +4200,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth @@ -7307,6 +7309,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 empty: area: id: area diff --git a/config/sync/views.view.stanford_news.yml b/config/sync/views.view.stanford_news.yml index 8da8f36dc..ec449ef51 100644 --- a/config/sync/views.view.stanford_news.yml +++ b/config/sync/views.view.stanford_news.yml @@ -939,6 +939,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 exposed_form: type: basic options: @@ -1654,6 +1655,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth diff --git a/config/sync/views.view.stanford_person.yml b/config/sync/views.view.stanford_person.yml index add1c019c..07438ec11 100644 --- a/config/sync/views.view.stanford_person.yml +++ b/config/sync/views.view.stanford_person.yml @@ -1275,6 +1275,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 arguments: term_node_taxonomy_name_depth: id: term_node_taxonomy_name_depth diff --git a/config/sync/views.view.stanford_publications.yml b/config/sync/views.view.stanford_publications.yml index 34776c23c..736877b13 100644 --- a/config/sync/views.view.stanford_publications.yml +++ b/config/sync/views.view.stanford_publications.yml @@ -721,6 +721,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 defaults: fields: false display_description: '' @@ -751,7 +752,7 @@ display: relationship: none group_type: group admin_label: '' - plugin_id: numeric + plugin_id: entity_target_id default_action: default exception: value: all @@ -777,6 +778,7 @@ display: validate_options: { } break_phrase: false not: false + target_entity_type_id: node defaults: arguments: false display_description: '' @@ -1208,6 +1210,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 defaults: fields: false display_description: '' diff --git a/config/sync/views.view.stanford_shared_tags.yml b/config/sync/views.view.stanford_shared_tags.yml index dfd242e82..9e2adc66c 100644 --- a/config/sync/views.view.stanford_shared_tags.yml +++ b/config/sync/views.view.stanford_shared_tags.yml @@ -320,6 +320,7 @@ display: offset: true offset_label: offset quantity: 9 + pagination_heading_level: h4 exposed_form: type: graphql options: diff --git a/config/sync/views.view.taxonomy_term.yml b/config/sync/views.view.taxonomy_term.yml index ed19ce7b6..d5b7fc8da 100644 --- a/config/sync/views.view.taxonomy_term.yml +++ b/config/sync/views.view.taxonomy_term.yml @@ -43,6 +43,7 @@ display: items_per_page_options_all_label: '- All -' offset: false offset_label: Offset + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/config/sync/views.view.user_admin_people.yml b/config/sync/views.view.user_admin_people.yml index d40d29b14..9a0bf2518 100644 --- a/config/sync/views.view.user_admin_people.yml +++ b/config/sync/views.view.user_admin_people.yml @@ -478,6 +478,7 @@ display: offset: false offset_label: Offset quantity: 9 + pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/tests/codeception/acceptance/AuthenticatedPermissionsCest.php b/tests/codeception/acceptance/AuthenticatedPermissionsCest.php index 9cf24238c..66f598bb8 100644 --- a/tests/codeception/acceptance/AuthenticatedPermissionsCest.php +++ b/tests/codeception/acceptance/AuthenticatedPermissionsCest.php @@ -152,15 +152,12 @@ public function testPhpUploadInFavicon(AcceptanceTester $I) { public function testPhpUploadInLogo(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/appearance/settings'); - $I->seeCheckboxIsChecked('#edit-default-logo'); - $I->uncheckOption('#edit-default-logo'); + $I->seeCheckboxIsChecked('Use the logo supplied by the theme'); + $I->uncheckOption('Use the logo supplied by the theme'); $I->see('Upload logo image'); $I->attachFile('Upload logo image', 'injection.php'); - $I->click('#edit-submit'); + $I->click('Save configuration'); $I->see('Only files with the following extensions are allowed'); - $I->see('The image file is invalid or the image type is not allowed.'); - $I->checkOption('#edit-default-logo'); - $I->click('#edit-submit'); } /** diff --git a/tests/codeception/acceptance/Content/BasicPageCest.php b/tests/codeception/acceptance/Content/BasicPageCest.php index 666e08b88..21df25114 100644 --- a/tests/codeception/acceptance/Content/BasicPageCest.php +++ b/tests/codeception/acceptance/Content/BasicPageCest.php @@ -91,7 +91,8 @@ public function testDeletedMenuItems(AcceptanceTester $I) { $I->canSeeLink($node_title, $node->toUrl()->toString()); $I->amOnPage($node->toUrl('delete-form')->toString()); - $I->click('Delete'); + $I->click('Delete', 'form'); + $I->canSee('has been deleted'); $I->amOnPage('/'); $I->cantSeeLink($node_title); diff --git a/tests/codeception/acceptance/Content/EventsCest.php b/tests/codeception/acceptance/Content/EventsCest.php index 4e31640d4..e9e20ffb5 100644 --- a/tests/codeception/acceptance/Content/EventsCest.php +++ b/tests/codeception/acceptance/Content/EventsCest.php @@ -86,8 +86,7 @@ public function testListIntro(AcceptanceTester $I) { $I->click('Save'); $I->canSee('Events Importer has been', '.messages-list'); - $I->amOnPage($event->toUrl('delete-form')->toString()); - $I->click('Delete'); + $event->delete(); $I->amOnPage($term->toUrl()->toString()); $I->canSee($term->label(), 'h1'); diff --git a/tests/codeception/acceptance/Content/PersonCest.php b/tests/codeception/acceptance/Content/PersonCest.php index f5a6147d3..c332eb546 100644 --- a/tests/codeception/acceptance/Content/PersonCest.php +++ b/tests/codeception/acceptance/Content/PersonCest.php @@ -176,6 +176,7 @@ public function testD8Core2613Terms(AcceptanceTester $I) { $I->selectOption('Parent term', ''); $I->click('Save'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->amOnPage('/people'); $I->canSeeLink($term3->label()); @@ -185,6 +186,7 @@ public function testD8Core2613Terms(AcceptanceTester $I) { $I->selectOption('Parent term', $term2->label()); $I->click('Save'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->amOnPage('/people'); $I->cantSeeLink($term3->label()); diff --git a/tests/codeception/acceptance/Content/PolicyCest.php b/tests/codeception/acceptance/Content/PolicyCest.php index 8dc1dbcf3..cadd1004d 100644 --- a/tests/codeception/acceptance/Content/PolicyCest.php +++ b/tests/codeception/acceptance/Content/PolicyCest.php @@ -55,12 +55,14 @@ public function testPolicyAccess(AcceptanceTester $I) { $I->cantSee('Policy Prefix'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->logInWithRole('site_manager'); $I->amOnPage('/node/add/stanford_policy'); $I->canSee('Create a new book'); $I->cantSee('Policy Prefix'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->logInWithRole('administrator'); $I->amOnPage('/node/add/stanford_policy'); $I->canSee('Create a new book'); diff --git a/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php b/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php index 9d264fb70..1d5d6f8f1 100644 --- a/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php +++ b/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php @@ -27,6 +27,7 @@ public function testAccess(AcceptanceTester $I) { $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(403); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); diff --git a/tests/codeception/acceptance/Media/MediaCest.php b/tests/codeception/acceptance/Media/MediaCest.php index 8023c5cdc..93cdc5c0d 100644 --- a/tests/codeception/acceptance/Media/MediaCest.php +++ b/tests/codeception/acceptance/Media/MediaCest.php @@ -200,6 +200,7 @@ public function testDeleteFiles(AcceptanceTester $I) { $I->amOnPage('/admin/content/files'); $I->canSeeResponseCodeIs(403); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->logInWithRole('administrator'); $I->amOnPage('/admin/content/files'); diff --git a/tests/codeception/acceptance/Media/MediaFormsCest.php b/tests/codeception/acceptance/Media/MediaFormsCest.php index c28d83a3b..198e86f1c 100644 --- a/tests/codeception/acceptance/Media/MediaFormsCest.php +++ b/tests/codeception/acceptance/Media/MediaFormsCest.php @@ -28,6 +28,7 @@ public function testFormAlters(AcceptanceTester $I) { $I->amOnPage('/media/add/embeddable'); $I->seeLink('request support.', $support_url); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->logInWithRole('administrator'); $I->amOnPage('/media/add/embeddable'); $name = $this->faker->words(3, TRUE); @@ -36,6 +37,7 @@ public function testFormAlters(AcceptanceTester $I) { $I->click('Save'); $I->seeInCurrentUrl('/admin/content/media'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->logInWithRole('site_manager'); $I->amOnPage('/admin/content/media'); $I->click($name); @@ -43,9 +45,9 @@ public function testFormAlters(AcceptanceTester $I) { $I->seeLink('request support.', $support_url); $I->click('Delete'); $I->seeInCurrentUrl('delete'); - $I->click('Delete'); - $I->dontSeeLink($name); + $I->click('Delete', 'form'); $I->seeInCurrentUrl('/admin/content/media'); + $I->dontSeeLink($name); } } diff --git a/tests/codeception/acceptance/SystemCest.php b/tests/codeception/acceptance/SystemCest.php index 15d99e1bb..3e94b6bb6 100644 --- a/tests/codeception/acceptance/SystemCest.php +++ b/tests/codeception/acceptance/SystemCest.php @@ -14,7 +14,7 @@ public function testSiteStatus(AcceptanceTester $I) { $I->runDrush('xmlsitemap:rebuild'); $I->logInWithRole('administrator'); $I->amOnPage('/admin/reports/status'); - $I->canSee('10.2', '.system-status-general-info'); + $I->canSee('10.3', '.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/acceptance/SystemSiteConfigCest.php b/tests/codeception/acceptance/SystemSiteConfigCest.php index 66c901231..35374c1ab 100644 --- a/tests/codeception/acceptance/SystemSiteConfigCest.php +++ b/tests/codeception/acceptance/SystemSiteConfigCest.php @@ -59,6 +59,7 @@ public function testBasicSiteSettings(AcceptanceTester $I) { $I->canSee('Site Settings has been', '.messages-list'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->amOnPage('/'); $I->canSee('Foo Bar Site'); @@ -157,6 +158,7 @@ protected function experimentalTestGoogleAnalytics(AcceptanceTester $I) { $I->canSee('Site Settings has been', '.messages-list'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->amOnPage('/'); $I->canSee('UA-123456-12'); $I->logInWithRole('site_manager'); @@ -165,6 +167,7 @@ protected function experimentalTestGoogleAnalytics(AcceptanceTester $I) { $I->click('Save'); $I->canSee('Site Settings has been', '.messages-list'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->amOnPage('/'); $I->cantSee('UA-12456-12'); } diff --git a/tests/codeception/acceptance/Users/IntranetCest.php b/tests/codeception/acceptance/Users/IntranetCest.php index 44a452263..a3bb8c2e1 100644 --- a/tests/codeception/acceptance/Users/IntranetCest.php +++ b/tests/codeception/acceptance/Users/IntranetCest.php @@ -77,6 +77,7 @@ public function testAccess(AcceptanceTester $I) { $I->amOnPage('/node/add/stanford_page'); $I->cantSee('Access', '.entity-meta__header'); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); // Site managers can set access restrictions. $I->logInWithRole('site_manager'); @@ -94,6 +95,7 @@ public function testAccess(AcceptanceTester $I) { $I->canSeeResponseCodeIs(200); $page_url = $I->grabFromCurrentUrl(); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); // Anonymous users will get redirected to the login page. $I->amOnPage($page_url); @@ -104,6 +106,7 @@ public function testAccess(AcceptanceTester $I) { $I->amOnPage($page_url); $I->canSeeResponseCodeIs(403); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); // Students should be able to see the content. $I->logInWithRole('stanford_student'); @@ -155,6 +158,7 @@ public function testMediaAccess(AcceptanceTester $I) { $I->amOnPage('/media/add/file'); $I->canSeeResponseCodeIs(200); $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); $I->runDrush('sset stanford_intranet.allow_file_uploads 0'); $I->logInWithRole('site_manager'); diff --git a/tests/codeception/acceptance/Users/RolesCest.php b/tests/codeception/acceptance/Users/RolesCest.php index d37da2b08..91f526280 100644 --- a/tests/codeception/acceptance/Users/RolesCest.php +++ b/tests/codeception/acceptance/Users/RolesCest.php @@ -173,6 +173,8 @@ public function testSiteEmbedderStacking(AcceptanceTester $I){ $I->fillField('Embed Code', '
This is an embed
'); $I->click('Save'); $I->canSee('error has been found'); + $I->amOnPage('/user/logout'); + $I->click('Log out', 'form'); // Stack the site_embedder role. $user = $I->createUserWithRoles(['site_manager', 'site_embedder']); diff --git a/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php b/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php index 3cb74b86e..9ab1e2eaa 100644 --- a/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php +++ b/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php @@ -43,6 +43,8 @@ class EventSubscriberTest extends KernelTestBase { 'serialization', 'media', 'test_stanford_profile', + 'samlauth', + 'externalauth' ]; /** @@ -124,7 +126,6 @@ public function testContentImportEntity() { } public function testUserInsert() { - \Drupal::service('module_installer')->install(['samlauth']); $role = Role::create(['id' => 'test_role1', 'label' => 'Test role 1']); $role->save();