To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorAdmin Layout Management Features as Admin user
- Background Login create default site
-
- Given
- the site "foobar" exists with the domain "example.com"
- And
- the user "ak730" exists with the role of "admin" in the site "foobar.example.com"
- And
- I authenticates as cas user "ak730"
- And
-
the user with the role exist
user role site rg874 admin foobar.example.com jmb42 editor foobar.example.com
- Scenarios
-
- Navigate to the Layout#index page
- Should not be able to access another sites layout the admin is not associated with
- Create a New Layout
- Given I am logged in as an admin then I can edit a layout
- Given I am logged in as an admin then I can edit a layout created by another user
- Delete layout as an admin
- Given I am logged in as an admin then I can delete a layout created by another user
-
- Given
-
these layouts exist in the site "foobar.example.com" created by user "ak730"
name content foobar Hello, World! bar Hello, World! - When
- I go to the admin layouts page
- Then
- I should be on the admin layouts page
- And
- I should see "foobar"
- And
- I should see the "delete" button
- And
- I should see "Add New Layout"
- Should not be able to access another sites layout the admin is not associated with
-
- Given
- the site "baz" exists with the domain "example.dev"
- When
- I go to the admin layouts page
- Then
- I should see "403"
- Create a New Layout
-
- When
- I go to the admin layouts page
- And
- I follow "Add New Layout" within "ul#new_layout"
- And
- I fill in "layout_name" with "foobar" within "div#add_new_layout"
- And
- I fill in "layout_content" with "Hello, World!" within "div#add_new_layout"
- And
- I press "Create Layout" within "div#add_new_layout"
- Then
- I should be on the admin layouts page
- And
- I should see "Successfully created the layout foobar"
- And
- I should see "foobar"
- And
- I should see the "delete" button
- Given I am logged in as an admin then I can edit a layout
-
- Given
-
these layouts exist in the site "foobar.example.com" created by user "ak730"
name content foobar Hello, World! bar Hello, World! - When
- I go to the admin layouts page
- And
- I follow "foobar" within "li#foobar"
- Then
- I should now be editing the layout "foobar"
- And
- the "layout[name]" field should contain "foobar"
- And
- the "layout[content]" field should contain "Hello, World!"
- When
- I fill in "layout[name]" with "baz" within "div#edit_layout"
- And
- I fill in "layout[content]" with "Hello, <b>World!</b>" within "div#edit_layout"
- And
- I press "Update Layout" within "div#edit_layout"
- Then
- I should be on the admin layouts page
- And
- I should see "Successfully updated the layout baz"
- When
- I edit the layout "baz"
- Then
- I should now be editing the layout "baz"
- And
- the "layout[name]" field should contain "baz"
- And
- the "layout[content]" field should contain "Hello, <b>World!</b>"
- Given I am logged in as an admin then I can edit a layout created by another user
-
- Given
-
these layouts exist in the site "foobar.example.com" created by user "rg874"
name content foobar Hello, World! bar Hello, World! - When
- I go to the admin layouts page
- And
- I follow "foobar" within "li#foobar"
- When
- I fill in "layout[name]" with "baz" within "div#edit_layout"
- And
- I fill in "layout[content]" with "Hello, <b>World!</b>" within "div#edit_layout"
- And
- I press "Update Layout" within "div#edit_layout"
- Then
- I should be on the admin layouts page
- And
- I should see "Successfully updated the layout baz"
- Delete layout as an admin
-
- Given
-
these layouts exist in the site "foobar.example.com" created by user "ak730"
name content foobar Hello, World! bar Hello, World! - When
- I go to the admin layouts page
- And
- I press "delete" within "li#foobar"
- Then
- I should see "Successfully deleted the layout foobar"
- And
- I should be on the admin layouts page
- Given I am logged in as an admin then I can delete a layout created by another user
-
- Given
-
these layouts exist in the site "foobar.example.com" created by user "rg874"
name content foobar Hello, World! bar Hello, World! - When
- I go to the admin layouts page
- And
- I press "delete" within "li#foobar"
- Then
- I should see "Successfully deleted the layout foobar"
- And
- I should be on the admin layouts page
Last published over 7 years ago by amkirwan.