reverted: --- b/core/modules/views_ui/js/views-admin.js +++ a/core/modules/views_ui/js/views-admin.js @@ -277,8 +277,6 @@ var group = this.$controlGroup.val(); - // Search through the search texts in the form for matching text. - var activeViews = 0; this.options.forEach(function (option) { function hasWord(word) { return option.searchText.indexOf(word) !== -1; @@ -294,15 +292,9 @@ } option.$div.toggle(found); - activeViews += found; }); $(event.target).trigger('dialogContentResize'); - - Drupal.announce( - Drupal.formatPlural(activeViews, '1 option is available in the modified list.', '@count options are available in the modified list.') - ); - } }); only in patch2: unchanged: --- a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterOptionsTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterOptionsTest.php @@ -55,6 +55,8 @@ public function testFilterOptionsAddFields() { }); $this->assertTrue($page->findField('name[views.views_test_field_1]')->isVisible()); $this->assertFalse($page->findField('name[views.views_test_field_2]')->isVisible()); + $session->wait(1000, 'jQuery("#drupal-live-announce").html().indexOf("1 option is available in the modified list.") > -1'); + $web_assert->elementTextContains('css', '#drupal-live-announce', '1 option is available in the modified list.'); // Test the ".description" field in search. $options_search->setValue('FIELD_2_DESCRIPTION'); only in patch2: unchanged: --- a/core/modules/views_ui/views_ui.libraries.yml +++ b/core/modules/views_ui/views_ui.libraries.yml @@ -7,6 +7,7 @@ views_ui.admin: dependencies: - core/jquery - core/drupal + - core/drupal.announce - core/drupalSettings - core/jquery.once - core/jquery.form