diff --git a/core/modules/views_ui/src/Tests/FilterUITest.php b/core/modules/views_ui/src/Tests/FilterUITest.php
index 1b1cc13..176dd12 100644
--- a/core/modules/views_ui/src/Tests/FilterUITest.php
+++ b/core/modules/views_ui/src/Tests/FilterUITest.php
@@ -76,7 +76,7 @@ public function testFiltersUI() {
// Tests that we can create a new filter group from UI.
$this->drupalGet('admin/structure/views/nojs/rearrange-filter/test_filter_groups/page');
- $this->assertNoRaw('Group 3', 'Group 3 has not been added yet.');
+ $this->assertNoRaw('
Group 3
', 'Group 3 has not been added yet.');
// Create 2 new groups.
$this->drupalPostForm(NULL, [], t('Create new filter group'));
diff --git a/core/modules/views_ui/src/ViewEditForm.php b/core/modules/views_ui/src/ViewEditForm.php
index 9061487..ff95b21 100644
--- a/core/modules/views_ui/src/ViewEditForm.php
+++ b/core/modules/views_ui/src/ViewEditForm.php
@@ -1009,7 +1009,7 @@ public function getFormBucket(ViewUI $view, $type, $display) {
$actions['rearrange'] = array(
'title' => $rearrange_text,
'url' => $rearrange_url,
- 'attributes' => array('class' => array($class, 'views-ajax-link'), 'id' => 'views-rearrange-' . $type),
+ 'attributes' => array('class' => array('views-ajax-link'), 'id' => 'views-rearrange-' . $type),
);
}