Sha256: 6c492aef071971823563cb94918decd22c6e82ab15a280836591cb58ac0201a9

Contents?: true

Size: 972 Bytes

Versions: 7

Compression:

Stored size: 972 Bytes

Contents

@cms
Feature: Change templates
  In order to change the style of a page without the need to delete it a website editor should be able to change the template of a node

  Scenario: Change template
    Given a page exists using the "Page A" template
    And I am editing the content
    When I follow "Change Template"
    And I choose "Page C"
    And I press "Change"
    And I visit the content page
    Then the page should be in the "Page C" template

  Scenario: Prevent Template Change if sub content not allowed in new template
    Given a page exists using the "Page A" template
    And that page has "Page A" subpages
    And that page has a "Page A" parent
    And I am editing the content
    When I follow "Change Template"
    And I choose "Page C"
    And I press "Change"
    Then I should see "Template cannot be changed as sub content is not allowed in this template"
    When I visit the content page
    Then the page should be in the "Page A" template

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
noodall-ui-0.0.8 features/change_templates.feature
noodall-ui-0.0.7 features/change_templates.feature
noodall-ui-0.0.6 features/change_templates.feature
noodall-ui-0.0.5 features/change_templates.feature
noodall-ui-0.0.4 features/change_templates.feature
noodall-ui-0.0.3 features/change_templates.feature
noodall-ui-0.0.2 features/change_templates.feature