diff -u b/core/modules/views_ui/src/Tests/DisplayPathTest.php b/core/modules/views_ui/src/Tests/DisplayPathTest.php --- b/core/modules/views_ui/src/Tests/DisplayPathTest.php +++ b/core/modules/views_ui/src/Tests/DisplayPathTest.php @@ -64,9 +64,9 @@ public function doPathXssFilterTest() { $this->drupalGet('admin/structure/views/view/test_view'); $this->drupalPostForm(NULL, array(), 'Add Page'); - $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', array('path' => 'malformed_path'), t('Apply')); + $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_2/path', array('path' => 'malformed_path'), t('Apply')); $this->drupalPostForm(NULL, array(), 'Add Page'); - $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_2/path', array('path' => ''), t('Apply')); + $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_3/path', array('path' => ''), t('Apply')); $this->drupalPostForm('admin/structure/views/view/test_view', array(), t('Save')); $this->drupalGet('admin/structure/views'); $this->assertRaw('/<object>malformed_path</object>, /<script>alert("hello");</script>', 'Two paths were filtered for XSS.');