The test fail when cypress tries to add a new permission delegation group.
When there is an already existing permission delegation group, we can have several <input type="text" data-test="permission-group-name"> element in the dom:
- One
input element for the group creation.
- One
input element for the group edition.
Since cypress cannot choose between the both elements, the test fails.
This occurs because the creation and edition modal share the same code