diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index 505e8a1..b27372f 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -112,9 +112,19 @@ function manageFieldsPage($type = '') {
     // Assert entity operations for all field instances.
     $result = $this->xpath('//ul[@class = "dropbutton"]/li/a');
     $url = base_path() . "admin/structure/types/manage/$type/fields/node.$type.body";
-    $this->assertIdentical($url, (string) $result[0]['href']);
-    $this->assertIdentical("$url/field", (string) $result[1]['href']);
-    $this->assertIdentical("$url/delete", (string) $result[3]['href']);
+
+    foreach ($result as $res) {
+      switch($res['title']) {
+        case 'Edit instance settings.':
+          $this->assertIdentical($url, (string) $res['href']);
+          break;
+        case 'Edit field settings.':
+          $this->assertIdentical("$url/field", (string) $res['href']);
+          break;
+        case 'Delete instance.':
+          $this->assertIdentical("$url/delete", (string) $res['href']);
+      }
+    }
   }
 
   /**
