test for copying a wiki with some content in it

pull/495/head
jwollert 11 years ago
parent 406b432e96
commit f835d88d2f
  1. 18
      features/projects/copy_project.feature

@ -309,3 +309,21 @@ Feature: Project Settings
And I click on "Copy"
And I go to the settings page of the project "cp"
Then the "Public" checkbox should be checked within "#content"
@javascript
Scenario: Copying a project with a wiki
Given the wiki page "Projektwiki" of the project "project1" has the following contents:
| yeah boy! |
And I am already admin
And I go to the settings page of the project "project1"
And I press "Save" within "#content"
And I follow "Copy" within "#content"
And I fill in "Name" with "Copied Project"
And I fill in "Identifier" with "cp"
And I click on "Copy"
And I go to the overview page for the project "Copied Project"
And I toggle the "Wiki" submenu
And I follow "Table of Contents" within "#main-menu"
Then I should see "Projektwiki" within "#content"
And I follow "Projektwiki" within "#content"
Then I should see "yeah boy!" within "#content"

Loading…
Cancel
Save