-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathLanguages.feature
More file actions
93 lines (84 loc) · 3.53 KB
/
Copy pathLanguages.feature
File metadata and controls
93 lines (84 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Feature: Languages management
As an administrator
In order to customize my project
I want to manage Languages for my website.
Background:
Given I am logged as admin
And I open "Languages" page in admin SiteAccess
@javascript
Scenario: Changes can be discarded while creating new Language
When I perform the "Add language" action
And I set fields
| label | value |
| Name | Deutsch |
| Language code | de-DE |
And I perform the "Discard" action
Then I should be on "Languages" page
And there's no "Deutsch" Language on Languages list
@javascript
Scenario: New Language can be added
When I perform the "Add language" action
And I set fields
| label | value |
| Name | Deutsch |
| Language code | de-DE |
And I perform the "Save and close" action
Then I should be on "Languages" page
And there's a "Deutsch" Language on Languages list
@javascript
Scenario: New Language with existing language code cannot be added
When I perform the "Add language" action
And I set fields
| label | value |
| Name | Deutsch Second |
| Language code | de-DE |
And I perform the "Save and close" action
Then error notification that 'language with the "de-DE" language code already exists' appears
@javascript
Scenario: Changes can be discarded while editing Language
Given there's a "Deutsch" Language on Languages list
When I edit "Deutsch" from Languages list
And I set fields
| label | value |
| Name | Edited Deutsch |
And I perform the "Discard changes" action
Then I should be on "Languages" page
And there's a "Deutsch" Language on Languages list
And there's no "Edited Deutsch" Language on Languages list
@javascript
Scenario: Language can be disabled
Given there's a "Deutsch" Language on Languages list
When I edit "Deutsch" from Languages list
And I set fields
| label | value |
| Name | Edited Deutsch |
| Enabled | false |
And I perform the "Save and close" action
Then I should be on "Edited Deutsch" Language page
And notification that "Language" "Deutsch" is updated appears
And Language has proper attributes
| Name | Language code | Enabled |
| Edited Deutsch | de-DE | false |
@javascript
Scenario: Language can be enabled
Given I open "Edited Deutsch" Language page in admin SiteAccess
And Language has proper attributes
| Name | Language code | Enabled |
| Edited Deutsch | de-DE | false |
When I start editing the Language
And I set fields
| label | value |
| Enabled | true |
And I perform the "Save and close" action
Then I should be on "Edited Deutsch" Language page
And notification that "Language" "Edited Deutsch" is updated appears
And Language has proper attributes
| Name | Language code | Enabled |
| Edited Deutsch | de-DE | true |
@javascript
Scenario: Language can be deleted
Given there's a "Edited Deutsch" Language on Languages list
When I delete Language "Edited Deutsch"
Then notification that "Language" "Edited Deutsch" is removed appears
And there's no "Edited Deutsch" Language on Languages list