features/admin/managing_stylesheets.feature in radiant-sheets-extension-1.0.0.pre vs features/admin/managing_stylesheets.feature in radiant-sheets-extension-1.0.0

- old
+ new

@@ -44,10 +44,37 @@ And I go to "/css/changed.css" And the page should render """ p { color: red; } /* I added this comment */ """ + + Scenario: Ensuring a homepage exists + Given there are no pages + And I am logged in as "designer" + When I follow "Design" + And I follow "Stylesheets" + Then I should see "You must first publish a homepage before you may create a Stylesheet" + And I should not see "New Stylesheet" + And I should see "New Homepage" + + Scenario: Creating stylesheets from scratch + Given there are no pages + And I am logged in as "designer" + When I follow "Design" + And I follow "Stylesheets" + Then I should see "You must first publish a homepage before you may create a Stylesheet" + And I follow "New Homepage" + And I fill in "Page Title" with "Home Page" + And I fill in "Slug" with "/" + And I fill in "Breadcrumb" with "Home" + And I select "Published" from "Status" + And I press "Create Page" + Then I should see "Home Page" + And I follow "Design" + And I follow "Stylesheets" + And I follow "New Stylesheet" + Then I should see "Path: /css/" Scenario: Rendering CSS Given I am logged in as "designer" When I go to the "styles" admin page And I follow "New Stylesheet" @@ -103,6 +130,7 @@ And I go to "/css/sassed.css" Then the page should render """ p{color:red}p a{color:blue;line-height:1.9} """ + And the "Cache-Control" header should be "max-age=2592000" \ No newline at end of file