Sha256: eb0ea1295967f485a863ed69d960fb1629810c47f22b86e4249723efa0022b9d

Contents?: true

Size: 1.37 KB

Versions: 88

Compression:

Stored size: 1.37 KB

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: Cannot change template for "Home" template
    Given a page exists using the "Home" template
    And I am editing the content
    Then I should not see "Change Template"

  Scenario: Cannot change template as parent only allows one sub template
    Given a page exists using the "Page B" template
    And that page has a "Page C" parent
    And I am editing the content
    Then I should not see "Change 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

88 entries across 88 versions & 1 rubygems

Version Path
noodall-ui-0.1.15 features/change_templates.feature
noodall-ui-0.1.14 features/change_templates.feature
noodall-ui-0.1.13 features/change_templates.feature
noodall-ui-0.1.12 features/change_templates.feature
noodall-ui-0.1.11 features/change_templates.feature
noodall-ui-0.1.10 features/change_templates.feature
noodall-ui-0.1.9 features/change_templates.feature
noodall-ui-0.1.8 features/change_templates.feature
noodall-ui-0.1.6 features/change_templates.feature
noodall-ui-0.1.5 features/change_templates.feature
noodall-ui-0.1.4 features/change_templates.feature
noodall-ui-0.1.3 features/change_templates.feature
noodall-ui-0.1.2 features/change_templates.feature
noodall-ui-0.1.1 features/change_templates.feature
noodall-ui-0.1.0 features/change_templates.feature
noodall-ui-0.0.22 features/change_templates.feature
noodall-ui-0.0.21 features/change_templates.feature
noodall-ui-0.0.20 features/change_templates.feature
noodall-ui-0.0.19 features/change_templates.feature
noodall-ui-0.0.18 features/change_templates.feature