Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / taxonomy / tests / src / Functional / VocabularyPermissionsTest.php
index 989398e62f0606a8eeab1ac32fd5c625cd3213b2..bb94a96da67a50761c6e71b82dd26d58f399d740 100644 (file)
@@ -83,6 +83,7 @@ class VocabularyPermissionsTest extends TaxonomyTestBase {
     $assert_session->linkExists('Add term');
     $assert_session->buttonExists('Save');
     $assert_session->pageTextContains('Weight');
+    $assert_session->fieldExists('Weight');
     $assert_session->pageTextContains($edit_help_text);
 
     // Visit vocabulary overview without terms. 'Add term' should be shown.
@@ -108,7 +109,8 @@ class VocabularyPermissionsTest extends TaxonomyTestBase {
     $assert_session->linkNotExists('Edit');
     $assert_session->linkNotExists('Delete');
     $assert_session->buttonNotExists('Save');
-    $assert_session->pageTextNotContains('Weight');
+    $assert_session->pageTextContains('Weight');
+    $assert_session->fieldNotExists('Weight');
     $assert_session->linkNotExists('Add term');
     $assert_session->pageTextContains($no_edit_help_text);
 
@@ -132,6 +134,7 @@ class VocabularyPermissionsTest extends TaxonomyTestBase {
     $assert_session->linkNotExists('Delete');
     $assert_session->buttonExists('Save');
     $assert_session->pageTextContains('Weight');
+    $assert_session->fieldExists('Weight');
     $assert_session->linkNotExists('Add term');
     $assert_session->pageTextContains($edit_help_text);
 
@@ -154,7 +157,8 @@ class VocabularyPermissionsTest extends TaxonomyTestBase {
     $assert_session->linkExists('Delete');
     $assert_session->linkNotExists('Add term');
     $assert_session->buttonNotExists('Save');
-    $assert_session->pageTextNotContains('Weight');
+    $assert_session->pageTextContains('Weight');
+    $assert_session->fieldNotExists('Weight');
     $assert_session->pageTextContains($no_edit_help_text);
 
     // Visit vocabulary overview without terms. 'Add term' should not be shown.
@@ -179,6 +183,7 @@ class VocabularyPermissionsTest extends TaxonomyTestBase {
     $assert_session->linkNotExists('Add term');
     $assert_session->buttonExists('Save');
     $assert_session->pageTextContains('Weight');
+    $assert_session->fieldExists('Weight');
     $assert_session->pageTextContains($edit_help_text);
 
     // Visit vocabulary overview without terms. 'Add term' should not be shown.
@@ -201,7 +206,8 @@ class VocabularyPermissionsTest extends TaxonomyTestBase {
     $assert_session->linkNotExists('Delete');
     $assert_session->linkExists('Add term');
     $assert_session->buttonNotExists('Save');
-    $assert_session->pageTextNotContains('Weight');
+    $assert_session->pageTextContains('Weight');
+    $assert_session->fieldNotExists('Weight');
     $assert_session->pageTextContains($no_edit_help_text);
 
     // Visit vocabulary overview without terms. 'Add term' should not be shown.