2013-11-20 23:18:05 +01:00
|
|
|
Feature: Edit site wide settings
|
2013-06-07 10:21:05 +02:00
|
|
|
As a site administrator
|
2013-11-20 23:18:05 +01:00
|
|
|
I want to configure the sites title, tagline and theme
|
2013-06-07 10:21:05 +02:00
|
|
|
So that I dont have to change any templates
|
2013-06-07 07:32:25 +02:00
|
|
|
|
2013-06-07 10:21:05 +02:00
|
|
|
Background:
|
2013-11-20 23:18:05 +01:00
|
|
|
Given I am logged in with "ADMIN" permissions
|
|
|
|
And a "page" "home"
|
|
|
|
And I go to "/admin/settings"
|
2013-06-07 07:32:25 +02:00
|
|
|
|
2013-06-07 10:21:05 +02:00
|
|
|
@javascript
|
|
|
|
Scenario: I can edit my Site title and Tagline
|
2013-11-20 23:18:05 +01:00
|
|
|
Given I should see an edit page form
|
2013-06-07 10:21:05 +02:00
|
|
|
And I should see "Site title"
|
|
|
|
And I should see "Tagline"
|
2013-06-07 07:32:25 +02:00
|
|
|
|
2013-06-07 10:21:05 +02:00
|
|
|
When I fill in "Site title" with "Test Site"
|
|
|
|
And I fill in "Tagline" with "Site is under construction"
|
|
|
|
And I press the "Save" button
|
|
|
|
And I reload the page
|
|
|
|
Then I should see "Test Site" in the ".cms-logo" element
|
2013-06-07 07:32:25 +02:00
|
|
|
|
2013-06-07 10:21:05 +02:00
|
|
|
When I go to "/home"
|
|
|
|
Then I should see "Test Site"
|
2013-11-20 23:18:05 +01:00
|
|
|
And I should see "Site is under construction"
|
|
|
|
|
|
|
|
Scenario: I can change the theme of the website
|
2014-02-13 06:54:44 +01:00
|
|
|
Given a theme "behattest"
|
|
|
|
And a template "Page.ss" in theme "behattest" with content "<h1>This is the behat test theme</h1>"
|
|
|
|
When I go to "/admin/settings"
|
|
|
|
Then I should see an edit page form
|
2013-11-20 23:18:05 +01:00
|
|
|
And I should see "Theme"
|
|
|
|
|
2014-02-13 06:54:44 +01:00
|
|
|
When I select "behattest" from "Theme"
|
2013-11-20 23:18:05 +01:00
|
|
|
And I press the "Save" button
|
2014-02-14 01:43:34 +01:00
|
|
|
And I go to "/home?flush=1"
|
2014-02-13 06:54:44 +01:00
|
|
|
Then I should see "This is the behat test theme"
|