test: Extend tests to check the same cases with and without full match

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
pull/56385/head
Daniel Calviño Sánchez 2025-09-26 15:34:13 +07:00
parent fda33370fc
commit ed432cb57b
1 changed files with 14 additions and 0 deletions

@ -47,10 +47,19 @@ Feature: autocomplete
| key | email |
| value | autocomplete@example.com |
And there is a contact in an addressbook
When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "no"
Then get email autocomplete for "auto"
| id | source |
| autocomplete | users |
Then get email autocomplete for "example"
| id | source |
| autocomplete | users |
| user@example.com | emails |
Then get email autocomplete for "autocomplete@example.com"
| id | source |
| autocomplete | users |
| autocomplete@example.com | emails |
When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "yes"
Then get email autocomplete for "auto"
| id | source |
| autocomplete | users |
@ -70,9 +79,14 @@ Feature: autocomplete
And there is a contact in an addressbook
And parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "no"
Then get email autocomplete for "auto"
| id | source |
Then get email autocomplete for "example"
| id | source |
| user@example.com | emails |
Then get email autocomplete for "autocomplete@example.com"
| id | source |
| autocomplete@example.com | emails |
When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "yes"
Then get email autocomplete for "auto"
| id | source |