X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FVocabularyPermissionsTest.php;h=bb94a96da67a50761c6e71b82dd26d58f399d740;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=989398e62f0606a8eeab1ac32fd5c625cd3213b2;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php b/web/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php index 989398e62..bb94a96da 100644 --- a/web/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php +++ b/web/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php @@ -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.