Commit c9bef8c6 authored by Niranjan Bandi's avatar Niranjan Bandi Committed by Robert Lyon

Bug 1743933: Copy a page and collection directly

-Made the changes according to the code review.

Copy a page or collection directly from its location via the "Copy" button on the page (not via the "Copy" button on "Pages and Collections").
 Behat test for both single page and collection with multiple pages covering the options there.

    For collections create the base test:
    Don't edit collection settings
    Leave all pages in the collection that you copied and don't add others.

Change-Id: Ia6f464fb1cf6bd5424cd395636242c4e07f02322
parent 71a35815
......@@ -34,6 +34,13 @@ Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361
And I set the field "Block content" to "Here is a new block."
And I press "Save"
# Copy a page directly from its location
And I display the page
And I follow "Copy"
And I press "Save"
And I display the page
And I should see "Page admin_02 v.2"
# Copy a page
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Copy"
......@@ -50,6 +57,14 @@ Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361
And I should see "1 page added to collection"
And I follow "Done"
# Copy a collection directly from its location
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Collection admin_01"
And I follow "Copy"
And I press "Collection"
And I press "Next: Edit collection pages"
And I follow "Done"
# Copy a collection
And I choose "Pages and collections" in "Portfolio" from main menu
And I follow "Copy"
......@@ -57,8 +72,15 @@ Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361
And I press "Next: Edit collection pages"
And I follow "Done"
#Veryfying if the page that has block been copied to collection
#veryfying if the collection is copied directly from its location
And I click on "Collection admin_01 v.2"
And I press "Next page"
And I press "Next page"
Then I should see "Text Block 1"
#Veryfying if the page that has block been copied to collection
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Collection admin_01 v.3"
And I press "Next page"
And I press "Next page"
Then I should see "Text Block 1"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment