Sha256: a4855c8b63d1b8dad7969a39d5cc2bc76f8352d12eea6a2a819a6ffb956bec3e

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

@pages @pages-manage
Feature: Manage Pages
  In order to control the content on my website
  As an administrator
  I want to create and manage pages

  Background:
    Given I am a logged in refinery user
    And I have no pages

  Scenario: Pages List
    Given I have pages titled Home, About
    When I go to the list of pages
    Then I should see "Home"
    And I should see "About"

  Scenario: Create Valid Page
    When I go to the list of pages
    And I follow "Create New Page"
    And I fill in "Title" with "Pickles are Cucumbers Soaked in Evil"
    And I press "Save"
    Then I should see "'Pickles are Cucumbers Soaked in Evil' was successfully created."
    And I should have 1 page

  Scenario: Create Invalid Page (without title)
    When I go to the list of pages
    And I follow "Create New Page"
    And I press "Save"
    Then I should see "Title can't be blank"
    And I should have 0 pages

  Scenario: Create Duplicate Page
    Given I only have pages titled Home, About
    When I go to the list of pages
    And I follow "Create New Page"
    And I fill in "Title" with "About"
    And I press "Save"
    Then I should have 3 pages
    And I should have a page at /about--2

  Scenario: Delete Page
    Given I have a page titled "test"
    When I go to the list of pages
    And I follow "Remove this page forever"
    Then I should see "'test' was successfully destroyed."

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-0.9.8.3 vendor/refinerycms/pages/features/manage_pages.feature
refinerycms-0.9.8.2 vendor/refinerycms/pages/features/manage_pages.feature
refinerycms-0.9.8.1 vendor/refinerycms/pages/features/manage_pages.feature