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.5.15 features/change_templates.feature
noodall-ui-0.5.14 features/change_templates.feature
noodall-ui-0.5.13 features/change_templates.feature
noodall-ui-0.5.12 features/change_templates.feature
noodall-ui-0.5.11 features/change_templates.feature
noodall-ui-0.4.11 features/change_templates.feature
noodall-ui-0.4.10 features/change_templates.feature
noodall-ui-0.5.10 features/change_templates.feature
noodall-ui-0.5.9 features/change_templates.feature
noodall-ui-0.4.9 features/change_templates.feature
noodall-ui-0.5.8 features/change_templates.feature
noodall-ui-0.4.8 features/change_templates.feature
noodall-ui-0.4.7 features/change_templates.feature
noodall-ui-0.5.7 features/change_templates.feature
noodall-ui-0.5.6 features/change_templates.feature
noodall-ui-0.5.5 features/change_templates.feature
noodall-ui-0.5.4 features/change_templates.feature
noodall-ui-0.5.3 features/change_templates.feature
noodall-ui-0.5.2 features/change_templates.feature
noodall-ui-0.5.1 features/change_templates.feature