Skip to content

Commit 659fa4f

Browse files
tischsoicmnocon
andauthored
IBX-6279: Multilevel popup menu (#897)
Co-authored-by: Marek Nocoń <[email protected]>
1 parent a77002a commit 659fa4f

File tree

146 files changed

+2473
-652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+2473
-652
lines changed

features/personas/ChangePassword.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: Verify that an User allowed to change password can change his password
88
And I switch to "My account settings" tab in User settings
99
And I click on the change password button
1010
And I change password from "Passw0rd-42" to "Passw0rd-43"
11-
And I click on the edit action bar button "Update"
11+
And I perform the "Update" action
1212
Then success notification that "Your password has been successfully changed." appears
1313
And I should be on Dashboard page
1414

features/personas/SubtreeEditor.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Verify that an Editor with Subtree limitations can perform all his task
1414
| label | value |
1515
| Name | <contentName> |
1616
| Short name | <contentName> |
17-
When I click on the edit action bar button "Publish"
17+
When I perform the "Publish" action
1818
Then success notification that "Content published." appears
1919
And I should be on Content view Page for "<newContentPath>/<contentName>"
2020

@@ -25,12 +25,12 @@ Feature: Verify that an Editor with Subtree limitations can perform all his task
2525

2626
Scenario Outline: I can edit Content in locations I'm allowed
2727
Given I navigate to content "<contentName>" of type "DedicatedFolder" in "<contentPath>"
28-
When I click on the edit action bar button "Edit"
28+
When I perform the "Edit" action
2929
And I set content fields
3030
| label | value |
3131
| Name | <newFieldValue> |
3232
| Short name | <newFieldValue> |
33-
And I click on the edit action bar button "Publish"
33+
And I perform the "Publish" action
3434
Then success notification that "Content published." appears
3535
And I should be on Content view Page for "<parentContentPath>/<newFieldValue>"
3636
And content attributes equal
@@ -50,7 +50,7 @@ Feature: Verify that an Editor with Subtree limitations can perform all his task
5050

5151
Scenario: I can move Content in locations I'm allowed
5252
Given I navigate to content "ContentToMove" of type "DedicatedFolder" in "root/FolderGrandParent/FolderParent/FolderChild1"
53-
When I click on the edit action bar button "Move"
53+
When I perform the "Move" action
5454
And I select content "root/FolderGrandParent/FolderParent" through UDW
5555
And I confirm the selection in UDW
5656
Then success notification that "'ContentToMove' moved to 'FolderParent'" appears

features/standard/Autosave.feature

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Feature: Content Items creation
2222
| Title | Test Article Autosave draft |
2323
| Short title | Test Article Autosave draft |
2424
And I wait for Content Item to be autosaved
25-
And I click on the close button
2625
And I open the "Dashboard" page in admin SiteAccess
2726
Then there's draft "Test Article Autosave draft" on Dashboard list
2827

@@ -39,14 +38,28 @@ Feature: Content Items creation
3938
And I'm on Content view Page for root
4039
And I go to user settings
4140
And I disable autosave
42-
And I click on the edit action bar button "Save"
41+
And I perform the "Save" action
4342
And I'm on Content view Page for root
4443
When I start creating a new content "Article"
4544
And I set content fields
4645
| label | value |
4746
| Title | Test Article Autosave Off draft |
4847
| Short title | Test Article Autosave Off draft |
4948
And I check if "Autosave is off" notification is displayed
50-
And I click on the close button
5149
And I open the "Dashboard" page in admin SiteAccess
5250
Then there's no draft "Test Article Autosave Off draft" on Dashboard list
51+
52+
@javascript
53+
Scenario: Content item can be created when autosave is off
54+
Given I open Login page in admin SiteAccess
55+
And I log in as "AutosaveDisabledTestUser" with password "Passw0rd-42"
56+
And I'm on Content view Page for root
57+
When I start creating a new content "Article"
58+
And I set content fields
59+
| label | value |
60+
| Title | TestAutosaveCreate |
61+
| Short title | TestAutosaveCreate |
62+
| Intro | TestAutosaveCreate |
63+
And I perform the "Publish" action
64+
Then success notification that "Content published." appears
65+
And I should be on Content view Page for "TestAutosaveCreate"

features/standard/ContentDraft.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: Content items creation
1515
| label | value |
1616
| Title | Test Article draft |
1717
| Short title | Test Article draft |
18-
And I click on the edit action bar button "Save"
18+
And I perform the "Save" action from the "Save and close" group
1919
Then success notification that "Content draft saved." appears
2020
And I should be on Content update page for "Test Article draft"
2121
And I open the "Dashboard" page in admin SiteAccess
@@ -29,7 +29,7 @@ Feature: Content items creation
2929
And I open the "Dashboard" page in admin SiteAccess
3030
And there's draft "TestDraft" on Dashboard list
3131
When I start editing content draft "TestDraft"
32-
And I click on the edit action bar button "Delete draft"
32+
And I perform the "Delete draft" action
3333
Then I should be on Content view Page for root
3434
And I open the "Dashboard" page in admin SiteAccess
3535
And there's no draft "TestDraft" on Dashboard list
@@ -43,9 +43,9 @@ Feature: Content items creation
4343
| Title | TestArticleSavePublish |
4444
| Short title | TestArticleSavePublish |
4545
| Intro | TestArticleIntro |
46-
When I click on the edit action bar button "Save"
46+
When I perform the "Save" action from the "Save and close" group
4747
And I should be on Content update page for "TestArticleSavePublish"
48-
And I click on the edit action bar button "Publish"
48+
And I perform the "Publish" action
4949
Then success notification that "Content published." appears
5050
And I should be on Content view Page for "TestArticleSavePublish"
5151

@@ -58,8 +58,8 @@ Feature: Content items creation
5858
And there's draft "TestDraftDashboardEdit" on Dashboard list
5959
And I start editing content draft "TestDraftDashboardEdit"
6060
And I should be on Content update page for "TestDraftDashboardEdit"
61-
When I click on the close button
62-
And I should be on Content view Page for root
61+
When I perform the "Delete draft" action
62+
Then I should be on Content view Page for root
6363

6464
@javascript @APIUser:admin
6565
Scenario: Content draft can be created and published through draft list modal
@@ -70,13 +70,13 @@ Feature: Content items creation
7070
| title | short_title |
7171
| ContentDraftConflictVersion1 | ContentDraftConflictVersion2 |
7272
And I'm on Content view Page for "ContentDraftConflict"
73-
When I click on the edit action bar button "Edit"
73+
When I perform the "Edit" action
7474
And I start creating new draft from draft conflict modal
7575
And I set content fields
7676
| label | value |
7777
| Title | ContentDraftConflictVersion2 |
7878
| Short title | ContentDraftConflictVersion2 |
79-
And I click on the edit action bar button "Publish"
79+
And I perform the "Publish" action
8080
Then success notification that "Content published." appears
8181
And I should be on Content view Page for ContentDraftConflictVersion2
8282
And content attributes equal
@@ -93,12 +93,12 @@ Feature: Content items creation
9393
| title | short_title |
9494
| ContentDraftConflictFromTheListVersion2 | ContentDraftConflictFromTheListVersion2 |
9595
And I'm on Content view Page for "ContentDraftConflictFromTheList"
96-
When I click on the edit action bar button "Edit"
96+
When I perform the "Edit" action
9797
And I start editing draft with version number "2" from draft conflict modal
9898
And I set content fields
9999
| label | value |
100100
| Intro | ContentDraftConflictFromTheListVersion2Edited |
101-
And I click on the edit action bar button "Publish"
101+
And I perform the "Publish" action
102102
Then success notification that "Content published." appears
103103
And I should be on Content view Page for ContentDraftConflictFromTheListVersion2
104104
And content attributes equal

features/standard/ContentManagement.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Scenario: Content moving can be cancelled
1414
| ContentManagement | ContentManagement | root | eng-GB |
1515
| FolderToCancelMove | FolderToCancelMove | ContentManagement | eng-GB |
1616
And I'm on Content view Page for "ContentManagement/FolderToCancelMove"
17-
When I click on the edit action bar button "Move"
17+
When I perform the "Move" action
1818
And I select content "Media" through UDW
1919
And I close the UDW window
2020
Then I should be on Content view Page for "ContentManagement/FolderToCancelMove"
@@ -26,7 +26,7 @@ Scenario: Content can be moved
2626
| ContentManagement | ContentManagement | root | eng-GB |
2727
| FolderToMove | FolderToMove | ContentManagement | eng-GB |
2828
And I'm on Content view Page for "ContentManagement/FolderToMove"
29-
When I click on the edit action bar button "Move"
29+
When I perform the "Move" action
3030
And I select content "Media/Files" through UDW
3131
And I confirm the selection in UDW
3232
Then success notification that "'FolderToMove' moved to 'Files'" appears
@@ -41,7 +41,7 @@ Scenario: Content copying can be cancelled
4141
| ContentManagement | ContentManagement | root | eng-GB |
4242
| FolderToCopyCancel | FolderToCopyCancel | ContentManagement | eng-GB |
4343
And I'm on Content view Page for "ContentManagement/FolderToCopyCancel"
44-
When I click on the edit action bar button "Copy"
44+
When I perform the "Copy" action
4545
And I select content "Media" through UDW
4646
And I close the UDW window
4747
Then I should be on Content view Page for "ContentManagement/FolderToCopyCancel"
@@ -53,7 +53,7 @@ Scenario: Content can be copied
5353
| ContentManagement | ContentManagement | root | eng-GB |
5454
| FolderToCopy | FolderToCopy | ContentManagement | eng-GB |
5555
And I'm on Content view Page for "ContentManagement/FolderToCopy"
56-
When I click on the edit action bar button "Copy"
56+
When I perform the "Copy" action
5757
And I select content "Media/Files" through UDW
5858
And I confirm the selection in UDW
5959
Then success notification that "'FolderToCopy' copied to 'Files'" appears
@@ -68,7 +68,7 @@ Scenario: Content can be copied
6868
| ContentManagement | ContentManagement | root | eng-GB |
6969
| FolderToSubtreeCopyCancel | FolderToSubtreeCopyCancel | ContentManagement | eng-GB |
7070
And I'm on Content view Page for "ContentManagement/FolderToSubtreeCopyCancel"
71-
When I click on the edit action bar button "Copy Subtree"
71+
When I perform the "Copy Subtree" action
7272
And I select content "Media" through UDW
7373
And I close the UDW window
7474
Then I should be on Content view Page for "ContentManagement/FolderToSubtreeCopyCancel"
@@ -80,7 +80,7 @@ Scenario: Content can be copied
8080
| ContentManagement | ContentManagement | root | eng-GB |
8181
| FolderToSubtreeCopy | FolderToSubtreeCopy | ContentManagement | eng-GB |
8282
And I'm on Content view Page for "ContentManagement/FolderToSubtreeCopy"
83-
When I click on the edit action bar button "Copy Subtree"
83+
When I perform the "Copy Subtree" action
8484
And I select content "Media" through UDW
8585
And I confirm the selection in UDW
8686
Then success notification that "Subtree 'FolderToSubtreeCopy' copied to Location 'Media'" appears

features/standard/ContentPreview.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Content Item preview
1414
And I set content fields
1515
| label | value |
1616
| Name | Test Name |
17-
And I click on the edit action bar button "Preview"
17+
And I perform the "Preview" action
1818
And I go to "tablet" preview
1919
And I go to "mobile" preview
2020
And I go to "desktop" preview

features/standard/ContentTranslation.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Content item transation
1414
| label | value |
1515
| Name | FrenchPublished |
1616
| Short name | FrenchPublished |
17-
And I click on the edit action bar button "Publish"
17+
And I perform the "Publish" action
1818
Then success notification that "Content published." appears
1919
And content attributes equal
2020
| label | value |
@@ -39,7 +39,7 @@ Feature: Content item transation
3939
And I'm on Content view Page for "NoBasePublished"
4040
When I switch to "Translations" tab in Content structure
4141
And I add new translation "French" without base translation
42-
And I click on the edit action bar button "Publish"
42+
And I perform the "Publish" action
4343
Then success notification that "Content published." appears
4444
And content attributes equal
4545
| label | value |

features/standard/ContentType.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: Content types management
1515
| label | value |
1616
| Name | Test Content Type |
1717
| Identifier | TestContentTypeIdentifier |
18-
And I click on the edit action bar button "Cancel"
18+
And I perform the "Discard" action
1919
Then I should be on Content Type group page for "Content" group
2020
And there's no "Test Content Type" on Content Types list
2121

@@ -31,7 +31,7 @@ Feature: Content types management
3131
And I select "Content" category to Content Type definition
3232
And I add field "Country" to Content Type definition
3333
And I set "Name" to "Country field" for "Country" field
34-
And I click on the edit action bar button "Create"
34+
And I perform the "Save and close" action
3535
Then notification that "Content Type" "New Content Type" is updated appears
3636
Then I should be on Content Type page for "Test Content Type"
3737
And Content Type has proper Global properties
@@ -54,7 +54,7 @@ Feature: Content types management
5454
And I set fields
5555
| label | value |
5656
| Name | Test Content Type edited |
57-
And I click on the edit action bar button "Cancel"
57+
And I perform the "Delete draft" action
5858
Then I should be on Content Type group page for "Content" group
5959
And there's a "TestDiscard CT" on Content Types list
6060
And there's no "Test Content Type edited" on Content Types list
@@ -71,7 +71,7 @@ Feature: Content types management
7171
| Name | Test Content Type edited |
7272
And I add field "Date" to Content Type definition
7373
And I set "Name" to "DateField" for "Date" field
74-
And I click on the edit action bar button "Save"
74+
And I perform the "Save and close" action
7575
Then success notification that "Content Type 'TestEdit CT' updated." appears
7676
Then I should be on Content Type page for "Test Content Type edited"
7777
And Content Type has proper Global properties

features/standard/ContentTypeGroup.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Content type groups management
1414
And I set fields
1515
| label | value |
1616
| Name | Test Content Type Group |
17-
And I click on the edit action bar button "Discard changes"
17+
And I perform the "Discard" action
1818
Then I should be on "Content Type groups" page
1919
And there's no "Test Content Type Group" Content Type group on Content Type groups list
2020

@@ -25,7 +25,7 @@ Feature: Content type groups management
2525
And I set fields
2626
| label | value |
2727
| Name | Test Content Type Group |
28-
And I click on the edit action bar button "Create"
28+
And I perform the "Save and close" action
2929
Then I should be on Content Type group page for "Test Content Type Group" group
3030
And there're no Content Types for that group
3131

@@ -37,7 +37,7 @@ Feature: Content type groups management
3737
And I set fields
3838
| label | value |
3939
| Name | Test Content Type Group edited |
40-
And I click on the edit action bar button "Discard changes"
40+
And I perform the "Discard changes" action
4141
Then I should be on "Content Type groups" page
4242
And there's a "Test Content Type Group" Content Type group on Content Type groups list
4343
And there's no "Test Content Type Group edited" Content Type group on Content Type groups list
@@ -50,7 +50,7 @@ Feature: Content type groups management
5050
And I set fields
5151
| label | value |
5252
| Name | Test Content Type Group edited |
53-
And I click on the edit action bar button "Save"
53+
And I perform the "Save and close" action
5454
Then I should be on Content Type group page for "Test Content Type Group edited" group
5555
And success notification that "Updated Content Type group 'Test Content Type Group'." appears
5656

features/standard/Languages.feature

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ Feature: Languages management
1010

1111
@javascript
1212
Scenario: Changes can be discarded while creating new Language
13-
When I click on the edit action bar button "Add language"
13+
When I perform the "Add language" action
1414
And I set fields
1515
| label | value |
1616
| Name | Deutsch |
1717
| Language code | de-DE |
18-
And I click on the edit action bar button "Cancel"
18+
And I perform the "Discard" action
1919
Then I should be on "Languages" page
2020
And there's no "Deutsch" Language on Languages list
2121

2222
@javascript
2323
Scenario: New Language can be added
24-
When I click on the edit action bar button "Add language"
24+
When I perform the "Add language" action
2525
And I set fields
2626
| label | value |
2727
| Name | Deutsch |
2828
| Language code | de-DE |
29-
And I click on the edit action bar button "Add"
29+
And I perform the "Save and close" action
3030
Then I should be on "Deutsch" Language page
3131
And Language has proper attributes
3232
| Name | Language code | Enabled |
3333
| Deutsch | de-DE | true |
3434

3535
@javascript
3636
Scenario: New Language with existing language code cannot be added
37-
When I click on the edit action bar button "Add language"
37+
When I perform the "Add language" action
3838
And I set fields
3939
| label | value |
4040
| Name | Deutsch Second |
4141
| Language code | de-DE |
42-
And I click on the edit action bar button "Add"
42+
And I perform the "Save and close" action
4343
Then error notification that "language with the specified language code already exists" appears
4444

4545
@javascript
@@ -49,7 +49,7 @@ Feature: Languages management
4949
And I set fields
5050
| label | value |
5151
| Name | Edited Deutsch |
52-
And I click on the edit action bar button "Discard changes"
52+
And I perform the "Discard changes" action
5353
Then I should be on "Languages" page
5454
And there's a "Deutsch" Language on Languages list
5555
And there's no "Edited Deutsch" Language on Languages list
@@ -62,7 +62,7 @@ Feature: Languages management
6262
| label | value |
6363
| Name | Edited Deutsch |
6464
| Enabled | false |
65-
And I click on the edit action bar button "Save"
65+
And I perform the "Save and close" action
6666
Then I should be on "Edited Deutsch" Language page
6767
And notification that "Language" "Deutsch" is updated appears
6868
And Language has proper attributes
@@ -79,7 +79,7 @@ Feature: Languages management
7979
And I set fields
8080
| label | value |
8181
| Enabled | true |
82-
And I click on the edit action bar button "Save"
82+
And I perform the "Save and close" action
8383
Then I should be on "Edited Deutsch" Language page
8484
And notification that "Language" "Edited Deutsch" is updated appears
8585
And Language has proper attributes

0 commit comments

Comments
 (0)