Then the account "administrator" should be in the group "admin"

The row of an account in the accounts list names a group of the account (its "Groups" column).

Examples

Then the account "administrator" should be in the group "admin"
Then the account "editor" should not be in the group "admin"
And the account "administrator" should be in the group "admin"
Then the account "user" should not be in the group "admin"
But the account "editor" should not be in the group "admin"

Pattern

Then(/^the account "([^"]*)" should( not)? be in the group "([^"]*)"$/, …)

Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.