2016-09-16 01:44:07 +02:00
|
|
|
Feature: Duplicate a page
|
|
|
|
As an author
|
|
|
|
I want to duplicate a page in the CMS
|
|
|
|
So that I can grow my website
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I am logged in with "ADMIN" permissions
|
|
|
|
Given a "page" "Page1"
|
|
|
|
And the "page" "Page1a" is a child of the "page" "Page1"
|
|
|
|
And the "page" "Page1b" is a child of the "page" "Page1"
|
|
|
|
And the "page" "Page1b1" is a child of the "page" "Page1b"
|
|
|
|
|
2017-04-21 07:10:48 +02:00
|
|
|
@javascript @retry
|
2016-09-16 01:44:07 +02:00
|
|
|
Scenario: I can duplicate a page in the pages section
|
|
|
|
When I go to "/admin/pages"
|
|
|
|
And I right click on "Page1" in the tree
|
|
|
|
And I hover on "Duplicate" in the context menu
|
|
|
|
And I click on "This page and subpages" in the context menu
|
2020-09-17 07:48:32 +02:00
|
|
|
Then I should see a "Duplicated 'Page1' and children successfully" success toast
|
2016-09-16 01:44:07 +02:00
|
|
|
|
2017-06-22 04:58:26 +02:00
|
|
|
When I fill in "MenuTitle" with "Duplicate Page"
|
2018-02-09 00:18:57 +01:00
|
|
|
And I press the "Publish" button
|
2016-09-16 01:44:07 +02:00
|
|
|
Then I should see "Page1" in the tree
|
|
|
|
And I should see "Duplicate Page" in the tree
|
2021-11-17 02:10:48 +01:00
|
|
|
When I follow "Duplicate Page"
|
|
|
|
Then I should see "Page1a"
|
|
|
|
And I should see "Page1b"
|