-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-30884: Implement scenarios for Subtree editor #1068
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@javascript @subtreeEditor | ||
Feature: Verify that an Editor with Subtree limitations can perform all his tasks | ||
|
||
Background: | ||
Given I open Login page | ||
And I login as "SubtreeEditor" with password "Passw0rd-42" | ||
And I go to "Content structure" in "Content" tab | ||
|
||
Scenario Outline: I can create and publish Content in locations I'm allowed | ||
Given I navigate to content "<parentContentItemName>" of type "DedicatedFolder" in "<contentPath>" | ||
And I start creating a new content "DedicatedFolder" | ||
And I set content fields | ||
| label | value | | ||
| Name | <contentName> | | ||
| Short name | <contentName> | | ||
When I click on the edit action bar button "Publish" | ||
Then success notification that "Content published." appears | ||
And I should be on content container page "<contentName>" of type "DedicatedFolder" in "<newContentPath>" | ||
|
||
Examples: | ||
| parentContentItemName | contentPath | contentName | newContentPath | | ||
| FolderParent | root/FolderGrandParent | NewContent1 | root/FolderGrandParent/FolderParent | | ||
| FolderChild1 | root/FolderGrandParent/FolderParent | NewContent2 | root/FolderGrandParent/FolderParent/FolderChild1 | | ||
|
||
Scenario Outline: I can edit Content in locations I'm allowed | ||
Given I open UDW and go to "<contentPath>" | ||
When I click on the edit action bar button "Edit" | ||
And I set content fields | ||
| label | value | | ||
| Name | <newFieldValue> | | ||
| Short name | <newFieldValue> | | ||
And I click on the edit action bar button "Publish" | ||
Then success notification that "Content published." appears | ||
And I should be on content container page "<newFieldValue>" of type "DedicatedFolder" in "<parentContentPath>" | ||
And content attributes equal | ||
| label | value | | ||
| Name | <newFieldValue> | | ||
|
||
Examples: | ||
| contentPath | newFieldValue | parentContentPath | | ||
| root/FolderGrandParent/FolderParent/FolderChild1/NewContent2 | NewContent2Edited | root/FolderGrandParent/FolderParent/FolderChild1 | | ||
| root/FolderGrandParent/FolderParent/NewContent1 | NewContent1Edited | root/FolderGrandParent/FolderParent | | ||
|
||
Scenario: I can move Content to Trash in locations I'm allowed | ||
Given I navigate to content "NewContent1Edited" of type "DedicatedFolder" in "root/FolderGrandParent/FolderParent" | ||
When I send content to trash | ||
Then I should be on content container page "FolderParent" of type "DedicatedFolder" in "root/FolderGrandParent" | ||
And there's no "NewContent1Edited" "DedicatedFolder" on "FolderParent" Sub-items list | ||
|
||
Scenario: I can move Content in locations I'm allowed | ||
Given I navigate to content "ContentToMove" of type "DedicatedFolder" in "root/FolderGrandParent/FolderParent/FolderChild1" | ||
When I click on the edit action bar button "Move" | ||
And I select content "root/FolderGrandParent/FolderParent" through UDW | ||
And I confirm the selection in UDW | ||
Then success notification that "'ContentToMove' moved to 'FolderParent'" appears | ||
And I should be on content container page "ContentToMove" of type "DedicatedFolder" in "root/FolderGrandParent/FolderParent" | ||
|
||
Scenario Outline: I cannot edit, create or send to trash Content outside my permissions | ||
When I open UDW and go to "<contentPath>" | ||
Then the buttons are disabled | ||
| buttonName | | ||
| Create | | ||
| Edit | | ||
And the "Send to Trash" button is not visible | ||
|
||
Examples: | ||
| contentPath | | ||
| root | | ||
| root/FolderGrandParent | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Is the dot here on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it would fail without the dot (we're checking for string equality in https://github.com/ezsystems/ezplatform-admin-ui/blob/master/src/lib/Behat/BusinessContext/NotificationContext.php#L38).