diff --git a/tests/src/Functional/RedirectNodeFormTest.php b/tests/src/Functional/RedirectNodeFormTest.php index 41d7ae6..a2e24c1 100644 --- a/tests/src/Functional/RedirectNodeFormTest.php +++ b/tests/src/Functional/RedirectNodeFormTest.php @@ -79,7 +79,7 @@ class RedirectNodeFormTest extends BrowserTestBase { $this->drupalGet('node/' . $node->id() . '/edit'); // Make sure the redirect add button is not visible to this regular user. - $this->assertNoRaw('Add URL redirect to this '); + $this->assertNoRaw('Add URL redirect'); // Now edit the same node as an admin user. $this->drupalLogin($this->adminUser); @@ -90,7 +90,7 @@ class RedirectNodeFormTest extends BrowserTestBase { $this->assertRaw('Add URL redirect to this Basic page'); // Make sure the link works as expected. - $this->clickLink('Add URL redirect to this Basic page'); + $this->clickLink('Add URL redirect'); $this->assertUrl('admin/config/search/redirect/add'); $this->assertFieldsByValue($this->xpath("//input[@id = 'edit-redirect-redirect-0-uri']"), '/node/' . $node->id(), 'To: field correctly pre-filled.'); }