Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Tests
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2021 at 06:16 UTC
Updated:
30 Dec 2021 at 11:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tr commentedHere is just the above changes, extracted from the patch in #2664280-102: Select lists in action & condition configuration forms
Comment #3
tr commentedComment #6
tr commentedComment #7
tr commentedComment #8
tr commentedI think this is because rules_user_role_remove has assignment_restriction = selector (part of the upcasting patch) so there's no "switch to selector" button to push.
Comment #9
jonathan1055 commentedIt would be good to get this whole test expansion committed. I added it as part of #2664280: Select lists in action & condition configuration forms when I realised we were lacking test coverage but it is a generic improvement not just for that issue.
Yes it it. I found that discrepancy yesterday and reported it on #2800749-102: Support upcasting entity IDs to full entity contexts.
I'll provide a patch to match the current committed code, so that it passes the tests and can be committed, to give a better base to work from. Then I think we should make a decision on whether all of the inputs that specify a user should be consistent or not, and make those changes and the accompanying small test corrections.
Comment #10
jonathan1055 commentedPatch #10 removes 'user' from the array of switch buttons to press in test case 33. This passes locally, and should pass here with the current -dev codebase.
Comment #11
jonathan1055 commentedThis is RTBC for me. Then we'll have improved test coverage for all the other issues.
Comment #13
tr commentedCommitted #10.
Comment #14
jonathan1055 commentedExcellent, thanks for the quick response. I will now work on the other new issues.