New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remaining test failures #396
Comments
There are 4 failures here. 1. ElementNotFoundException: Button with id|name|label|value "Save and go to list" not found. Should be fixed with f96601b 2. Drupal\Tests\localgov_microsites_group_term_ui\Functional\ManageGroupTermsTest::testGroupTermPermissions: Current response status code is 500, but 403 expected. I'm not sure what's going wrong here. An error is being thrown when checking permissions. I don't think anything we've done has changed this so wondering if it's a bug in the flexible_permissions module.
3. Drupal\Tests\localgov_microsites_group\Kernel\GroupPermissionsHelperTest::testGetPermissions:141 Failed asserting that true is false. This fails at https://github.com/localgovdrupal/localgov_microsites_group/blob/2.x/tests/src/Kernel/GroupPermissionsHelperTest.php#L141 I've confirmed that the permissions entity has the correct permissions, so there's an issue updating the group entity permissions from the permissions entity. I suspect the cache flush before this check is not causing group permissions to be reloaded. 4. Drupal\Tests\localgov_microsites_group\Kernel\GroupPermissionsHelperTest::testToggleModulePermissions This fails at https://github.com/localgovdrupal/localgov_microsites_group/blob/2.x/tests/src/Kernel/GroupPermissionsHelperTest.php#L154 This is similar to 3. I think the cache flush is not doing what we would like. |
@stephen-cox I've got a green test for |
@stephen-cox and @millnut are working on these test failures above. If anyone is diving in to help, check in with @stephen-cox and @millnut to avoid duplication. Note: we think 3. and 4. above are generated from group_permissions https://www.drupal.org/project/group_permissions This patch fixes the EntityAccess issue https://www.drupal.org/project/group_permissions/issues/3368882 |
@millnut Was good to chat with you yesterday - I've taken another look at the tests failures in the localgov_microsites_group_term_ui module after our discussion and have a fix for these here #425. For reference the issue on d.o. for the other 2 failing tests is here: https://www.drupal.org/project/group_permissions/issues/3388880 |
Just discussing in tech drop-in. This is the test that is failing: Can anyone re-write this test to test in a different way? @ekes was wondering if maybe a functional browser test to do the same thing might be appropriate? |
CC @ekes |
https://www.drupal.org/project/group_permissions/issues/3395306 The test certainly confirms the cache clear issue, but also if I'm correct shows removal of permissions failing again. |
Now we've resolved a bunch of issues that were causing tests to fail (#376, #390, #393), it's exposed some further test failures:
The text was updated successfully, but these errors were encountered: