Skip to content

Commit 4f88dda

Browse files
committed
Added all translations API tests in a scenario outline
1 parent 25f0343 commit 4f88dda

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

tests/acceptance/features/apiTranslation/translation.feature

+11-14
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,16 @@ Feature: translate messages in api response to preferred language
1212
| Carol |
1313
And using <dav_version> DAV path
1414
And user "Brian" has shared file "textfile0.txt" with user "Carol"
15-
When user "Alice" gets the info of the last share in language "de-DE" using the sharing API
15+
When user "Alice" gets the info of the last share in language "<language>" using the sharing API
1616
Then the OCS status code should be "404"
17-
And the OCS status message should be "Fehlerhafte Freigabe-ID, Freigabe existiert nicht"
18-
When user "Alice" gets the info of the last share in language "zh-CN" using the sharing API
19-
Then the OCS status code should be "404"
20-
And the OCS status message should be "错误的共享 ID,共享不存在"
21-
When user "Alice" gets the info of the last share in language "fr-FR" using the sharing API
22-
Then the OCS status code should be "404"
23-
And the OCS status message should be "Mauvais ID de partage, le partage n'existe pas"
24-
When user "Alice" gets the info of the last share in language "es-ES" using the sharing API
25-
Then the OCS status code should be "404"
26-
And the OCS status message should be "El ID del recurso compartido no es correcto, el recurso compartido no existe"
17+
And the OCS status message should be "<error_message>"
2718
Examples:
28-
| dav_version |
29-
| old |
30-
| new |
19+
| dav_version | language | error_message |
20+
| old | de-DE | Fehlerhafte Freigabe-ID, Freigabe existiert nicht |
21+
| new | de-DE | Fehlerhafte Freigabe-ID, Freigabe existiert nicht |
22+
| old | zh-CN | 错误的共享 ID,共享不存在 |
23+
| new | zh-CN | 错误的共享 ID,共享不存在 |
24+
| old | fr-FR | Mauvais ID de partage, le partage n'existe pas |
25+
| new | fr-FR | Mauvais ID de partage, le partage n'existe pas |
26+
| old | es-ES | El ID del recurso compartido no es correcto, el recurso compartido no existe |
27+
| new | es-ES | El ID del recurso compartido no es correcto, el recurso compartido no existe |

0 commit comments

Comments
 (0)