diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index 207626c..8bea8f1 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -102,11 +102,28 @@ function manageFieldsPage($type = '') {
     }
 
     // Assert entity operations for all field instances.
+    $number_of_links = 3;
+    $number_of_links_found = 0;
     $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/storage", (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']);
+          $number_of_links_found++;
+          break;
+        case 'Edit field settings.':
+          $this->assertIdentical("$url/storage", (string) $res['href']);
+          $number_of_links_found++;
+          break;
+        case 'Delete instance.':
+          $this->assertIdentical("$url/delete", (string) $res['href']);
+          $number_of_links_found++;
+      }
+    }
+
+    $this->assertEqual($number_of_links, $number_of_links_found);
   }
 
   /**
