diff --git a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php index 977055ff68..3c0e0bc2e6 100644 --- a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php +++ b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php @@ -293,7 +293,7 @@ public function testMultipleSearchPages() { $this->verifySearchPageOperations($second_id, TRUE, TRUE, TRUE, FALSE); // Change the default search page. - $this->clickLink(t('Set "@label" as default', ['@label' => $second['label']])); + $this->xpath('//a[normalize-space(text()[1])="Set" and normalize-space(text()[2])="as default"]')[0]->click(); $this->assertRaw(t('The default search page is now %label. Be sure to check the ordering of your search pages.', ['%label' => $second['label']])); $this->verifySearchPageOperations($first_id, TRUE, TRUE, TRUE, FALSE); $this->verifySearchPageOperations($second_id, TRUE, FALSE, FALSE, FALSE);