diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php
index cab99bd7bc..41ab4fa9b3 100644
--- a/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php
+++ b/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php
@@ -3,6 +3,7 @@
 namespace Drupal\Tests\views_ui\FunctionalJavascript;
 
 use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
+use Drupal\views\Entity\View;
 
 /**
  * Tests the JavaScript filtering on the Views listing page.
@@ -77,6 +78,27 @@ public function testFilterViewsListing() {
     $this->assertCount($content_views_count, $enabled_rows);
     $this->assertCount($disabled_views_count, $disabled_rows);
 
+    // Ensure that some View contains 'default' tag.
+    View::load('content')->set('tag', 'default')->save();
+    // Ensure that some View contains not 'default' tag.
+    View::load('user_admin_people')->set('tag', 'my first tag')->save();
+
+    $this->drupalGet('admin/structure/views');
+
+    // Filter on a string that also appears in the tags.
+    $search_input->setValue('default');
+    $rows = $page->findAll('css', 'tr[class^="views-ui-list-"]');
+    $this->assertNotEmpty($this->filterVisibleElements($enabled_rows));
+    foreach ($rows as $row) {
+      $tag = $row->find('css', 'td.views-ui-view-tags')->getText();
+      if ($row->isVisible()) {
+        $this->assertContains('default', $tag);
+      }
+      else {
+        $this->assertNotContains('default', $tag);
+      }
+    }
+
     // Reset the search string and check that we are back to the initial stage.
     $search_input->setValue('');
     // Add a backspace to trigger the keyUp event.
