Problem/Motivation
While fixing #3439907: Fix System tests that rely on UID1's super user behavior it's found that the test case testLocalTaskBlockCache asserting no local tasks results in false positive if the correct permissions were not given. Test passes even if the permission 'administer account settings' is removed.
Steps to reproduce
Proposed resolution
Add an assert to check if the page /admin/config/people/accounts was actually rendered before asserting for no local tasks.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3443748
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
smustgrave commentedThanks for opening, tagging for new users as should be a good intro for them.
Comment #4
nexusnovaz commentedComment #6
nexusnovaz commentedThis is ready for review. I have added the code which i believe to be correct, though, im unable to test locally (unsure how, even after googling, using ddev)
Comment #7
smustgrave commentedBelieve the permissions have to be slightly updated as the test is failing
https://git.drupalcode.org/issue/drupal-3443748/-/jobs/1536596
Comment #8
xjmThis does seem like a good issue for novice contributors to investigate (with regard to why the test is currently failing). One helpful step would also be to manually test a site with the test's setup and validate that it is actually working correctly.
Additionally, I left a note on the MR to remove the old inline comment.
Comment #9
nexusnovaz commentedHi, i believe this is now good for review. Added the permission to allow it to pass the test and now we're all green.
Apologies for the commit spam, im unsure how to test locally and am still fairly new to Drupal.
Hopefully this solution is fine!
Comment #10
smustgrave commentedNo need to apologize! Good job figuring out the permission. Do believe this one is good.
Comment #11
alexpottCommitted and pushed 565a9f1401 to 11.x and 4874e83fb3 to 11.0.x and 9181970ca4 to 10.4.x and 0f4d8306b1 to 10.3.x. Thanks!
Comment #12
alexpott