Skip to content
Snippets Groups Projects
Commit 75a89b7c authored by Yasmeen Abuerrub's avatar Yasmeen Abuerrub Committed by Rajab Natshah
Browse files

Issue #2905561: Added the [ Feature: Content Management - Cloning entities ]...

Issue #2905561: Added the [ Feature: Content Management  - Cloning entities ] and [ Feature: Content Management - Use Entityqueue form widget ] automated functional acceptance tests
parent 2f6fa6d0
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,37 @@ As a logged in user with a permission to mange Landing pages
I want to be able to add any paragraph type to the page
So that the "Landing page" will show up having paragrpahs of different types
@javascript @local @development
@local @development @staging @production
Scenario: Upload the "Embed Flag Earth" file.
Given I am a logged in user with the "test_super_admin" user
When I go to "/admin/content/media"
And I wait
Then I should see "Add media"
When I click "Add media"
And I wait
Then I should see "Document"
And I should see "Image"
And I should see "Video"
When I go to "/media/add/image"
And I wait
Then I should see "Allowed types: png gif jpg jpeg."
When I attach the file "flag-earth.jpg" to "Image"
And I wait
And I press the "Save" button
And I wait
And I fill in "Embed Flag Earth in space" for "field_image[0][alt]"
And I fill in "Embed Flag Earth all earth in space" for "field_image[0][title]"
And I fill in "Embed Flag Earth" for "Media name"
And I press the "Save" button
And I wait
Then I should see "Embed Flag Earth"
And I wait
When I go to "/admin/content/media"
Then I should see "Add media"
And I should see the "Edit" in the "Embed Flag Earth" row
#-----------------------------------------------------------------------------
@javascript @local @development
Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Carousel"
Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page"
......@@ -321,7 +351,7 @@ So that the "Landing page" will show up having paragrpahs of different types
When I double click on the image with the "Embed Flag Earth all earth in space" title text
And I switch to main frame
And I wait for AJAX to finish
And I Expand the "1" select list "dropbutton-multiple"
And I press "Add Rich Text"
And I wait for AJAX to finish
......
......@@ -3,9 +3,38 @@ As a logged in user with a permission to mange Landing pages
I want to be able to add number of Text and image paragraph compoments
So that the "Landing page" will have text and images in right and left view.
@javascript @local @development
Scenario: Check if a user with a permission to manage "Landing page" content type create a new Landing page that will look like this page https://www.getopensocial.com/features
@local @development @staging @production
Scenario: Upload the "Embed Flag Earth" file.
Given I am a logged in user with the "test_super_admin" user
When I go to "/admin/content/media"
And I wait
Then I should see "Add media"
When I click "Add media"
And I wait
Then I should see "Document"
And I should see "Image"
And I should see "Video"
When I go to "/media/add/image"
And I wait
Then I should see "Allowed types: png gif jpg jpeg."
When I attach the file "flag-earth.jpg" to "Image"
And I wait
And I press the "Save" button
And I wait
And I fill in "Embed Flag Earth in space" for "field_image[0][alt]"
And I fill in "Embed Flag Earth all earth in space" for "field_image[0][title]"
And I fill in "Embed Flag Earth" for "Media name"
And I press the "Save" button
And I wait
Then I should see "Embed Flag Earth"
And I wait
When I go to "/admin/content/media"
Then I should see "Add media"
And I should see the "Edit" in the "Embed Flag Earth" row
@javascript @local @development
Scenario: Check if a user with a permission to manage "Landing page" content type create a new Landing page that will look like this page https://www.getopensocial.com/features
Given I am a logged in user with the "test_site_admin" user
When I go to "node/add/landing_page"
And I wait
......
Feature: Entityqueue form widget
As a logged in user with a permission to mange entityqueues
I want to be able to add and remove entities to any allowed entityqueue.
@local @development @staging @production
Scenario: Upload the "Embed Flag Earth" file.
Given I am a logged in user with the "test_super_admin" user
When I go to "/admin/content/media"
And I wait
Then I should see "Add media"
When I click "Add media"
And I wait
Then I should see "Document"
And I should see "Image"
And I should see "Video"
When I go to "/media/add/image"
And I wait
Then I should see "Allowed types: png gif jpg jpeg."
When I attach the file "flag-earth.jpg" to "Image"
And I wait
And I press the "Save" button
And I wait
And I fill in "Embed Flag Earth in space" for "field_image[0][alt]"
And I fill in "Embed Flag Earth all earth in space" for "field_image[0][title]"
And I fill in "Embed Flag Earth" for "Media name"
And I press the "Save" button
And I wait
Then I should see "Embed Flag Earth"
And I wait
When I go to "/admin/content/media"
Then I should see "Add media"
And I should see the "Edit" in the "Embed Flag Earth" row
@javascript @local @development
Scenario: Check if a user with a permission to manage "Entity queues" can add a "heroslider" to "heroslider entityqueu"
Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/varbase_heroslider_media"
And I wait
And I fill in "Test hero slider" for "Slide title"
And I fill in "Test hero slider slide text" for "Slide text"
Then I press "Select Media"
And I wait for AJAX to finish
When the image media browser should be open
And I switch to iframe "entity_browser_iframe_heroslider_media_browser"
And I fill in "Embed Flag Earth" for "Search"
And I press the "Search" button
And I wait for AJAX to finish
Then I should see image with the "Embed Flag Earth all earth in space" title text
When I double click on the image with the "Embed Flag Earth all earth in space" title text
And I switch to main frame
And I wait
Then I Expand the field "edit-entityqueue-form-widget"
And I check the box "varbase_heroslider_media"
And I press "Save"
@javascript @local @development
Scenario: Check if the "Hero slider" added to the "varbase_heroslider_media" entityqueue
Given I am a logged in user with the "test_super_admin" user
When I go to "admin/structure/entityqueue/varbase_heroslider_media/varbase_heroslider_media"
And I wait
Then I should see "Test hero slider" value in the "edit-items-0-target-id" input element
@javascript @local @development
Scenario: Remove "Hero slider" from the "varbase_heroslider_media" entityqueue
Given I am a logged in user with the "test_super_admin" user
When I go to "admin/content"
And I wait
Then I should see "Content"
When I fill in "Test hero slider" for "Title"
And I press the "Filter" button
And I wait
Then I should see "Test hero slider"
When I click "Test hero slider"
And I wait
When I click "Edit"
And I wait
And I Expand the field "edit-entityqueue-form-widget"
Then the "varbase_heroslider_media" checkbox should be checked
When I uncheck the box "varbase_heroslider_media"
And I press "Save"
And I go to "admin/structure/entityqueue/varbase_heroslider_media/varbase_heroslider_media"
And I wait
Then I should not see "Test hero slider"
Feature: Entity clone module - test cloning an entity
As a logged in user with a permission to mange entities
I want to be able to clone an entity.
@javascript @local @development
Scenario: Check if a user with a permission can clone a "landing page"
Given I am a logged in user with the "test_super_admin" user
When I go to "node/add/landing_page"
And I wait
And I fill in "Test Clone landing page" for "Title"
And I fill in "Test landing page description text" for "Page description"
And I wait for AJAX to finish
And I scrolldown
And I wait for AJAX to finish
And I press "+ Add Component"
And I wait for AJAX to finish
And I scrolldown
And I wait for AJAX to finish
And I press "Modal"
And I wait for AJAX to finish
Then I should see "Components"
When I fill in "Modal button" for "Modal button text"
And I fill in "Modal title" for "Modal title"
And I Expand the "1" select list "dropbutton-multiple"
And I press "Add Rich Text"
And I wait
Then I should see "Modal body"
And I fill in the rich text editor field "Text" with "Modal Body test"
When I press "Save"
Then I should see "Modal button"
When I click "Clone"
And I wait
And I press "Clone"
And I wait
Then I should see "Test Clone landing page - Cloned" value in the "edit-title-0-value" input element
And I press "Save"
@javascript @local @development
Scenario: Check if a user with a permission deleted a cloned entity the original will not affected
Given I am a logged in user with the "test_super_admin" user
When I go to "admin/content"
And I wait
Then I should see "Content"
When I fill in "Test Clone landing page - Cloned" for "Title"
And I press the "Filter" button
And I wait
Then I should see "Test Clone landing page - Cloned"
And I check the box "edit-node-bulk-form-0"
And I select "Delete content" from "With selection"
And I press "Apply to selected items"
And I press "Delete"
And I wait
Then I go to "admin/content"
And I wait
Then I should see "Content"
When I fill in "Test Clone landing page - Cloned" for "Title"
And I press the "Filter" button
And I wait
Then I should not see "Test Clone landing page - Cloned"
When I fill in "Test Clone landing page" for "Title"
And I press the "Filter" button
And I wait
Then I should see "Test Clone landing page"
When I click "Test Clone landing page"
And I wait
Then I should see "Modal button"
When I press "Modal button"
And I wait
Then I should see "Modal title"
And I should see "Modal Body test"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment