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 Pages Management Features
- 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
-
these current states exist
name published draft - And
-
these layouts exist in the site "foobar.example.com" created by user "ak730"
name content app Hello, World baz Hello, <b>World!</b> - And
-
the user with the role exist
user role site rg874 admin foobar.example.com jmb42 editor foobar.example.com - And
- I authenticates as cas user "ak730"
- Scenarios
-
- Navigate to the Pages#index page
- Create a new page
- Create a new page
- Edit a page
- Edit a page
- Delete page as an admin
- Delete page as an admin
-
- Given
-
these pages exist in the site "foobar.example.com" created by user "ak730"
title status foobar published bar draft - When
- I go to the admin pages page
- Then
- I should be on the admin pages page
- And
- I should see "foobar" within "li#foobar"
- And
- I should see the "delete" button
- And
- I should see "bar" within "li#bar"
- And
- I should see the "delete" button
- And
- I should see "Add New Page"
- Create a new page
-
- When
- I go to the admin pages page
- And
- I follow "Add New Page"
- Then
- I should be on the new admin page page
- And
- I fill in "page_title" with "Home Page"
- And
- I fill in "page_meta_data_title" with "meta_title_foobar"
- And
- I fill in "page_meta_data_keywords" with "meta_keywords_foobar"
- And
- I fill in "page_meta_data_description" with "meta_description_foobar"
- And
- I check "editor_id_ak730"
- And
- I check "editor_id_rg874"
- And
- I select "app" from "page_layout_id"
- And
- I select "published" from "page_current_state_attributes_name"
- And
- I fill in "page_page_parts_attributes_0_name" with "content"
- And
- I select "markdown" from "page_page_parts_attributes_0_filter"
- And
- I fill in "page_page_parts_attributes_0_content" with "Hello, World!"
- And
- I press "Create Page"
- Then
- I should be on the admin pages page
- And
- I should see "Successfully created page Home Page"
- And
- I should see "Home Page"
- And
- I should see the "delete" button
- Create a new page
-
- Given
-
these pages exist in the site "foobar.example.com" created by user "ak730"
title status Home Page published - When
- I go to the admin pages page
- And
- I follow "Add New Page"
- Then
- I should be on the new admin page page
- And
- I select "Home Page" from "page_parent_id"
- And
- I fill in "page_title" with "foobar"
- And
- I fill in "page_meta_data_title" with "meta_title_foobar"
- And
- I fill in "page_meta_data_keywords" with "meta_keywords_foobar"
- And
- I fill in "page_meta_data_description" with "meta_description_foobar"
- And
- I check "editor_id_ak730"
- And
- I check "editor_id_rg874"
- And
- I select "app" from "page_layout_id"
- And
- I select "published" from "page_current_state_attributes_name"
- And
- I fill in "page_page_parts_attributes_0_name" with "content"
- And
- I select "markdown" from "page_page_parts_attributes_0_filter"
- And
- I fill in "page_page_parts_attributes_0_content" with "Hello, World!"
- And
- I press "Create Page"
- Then
- I should be on the admin pages page
- And
- I should see "Successfully created page foobar"
- And
- I should see "foobar"
- And
- I should see the "delete" button
- Edit a page
-
- Given
-
these pages exist in the site "foobar.example.com" created by user "ak730"
title status foobar published bar draft - When
- I go to the admin pages page
- And
- I follow "foobar"
- Then
- I should now be editing the page "foobar"
- And
- I fill in "page_meta_data_title" with "meta_title_foobar"
- And
- I fill in "page_meta_data_keywords" with "meta_keywords_foobar"
- And
- I fill in "page_meta_data_description" with "meta_description_foobar"
- And
- I check "editor_id_ak730"
- And
- I check "editor_id_jmb42"
- And
- I select "app" from "page_layout_id"
- And
- I select "draft" from "page_current_state_attributes_name"
- And
- I fill in "page_page_parts_attributes_0_name" with "content"
- And
- I select "markdown" from "page_page_parts_attributes_0_filter"
- And
- I fill in "page_page_parts_attributes_0_content" with "This is some new text"
- And
- I press "Update Page"
- Then
- I should be on the admin pages page
- And
- I should see "Successfully updated the page foobar"
- And
- I should see "foobar"
- And
- I should see the "delete" button
- When
- I edit the page "foobar"
- Then
- I should now be editing the page "foobar"
- And
- the "editor_id_jmb42" checkbox should be checked
- And
- the "page_page_parts_attributes_0_content" field should contain "This is some new text"
- Edit a page
-
- Given
-
these pages exist in the site "foobar.example.com" created by user "rg874"
title status foobar published bar draft - When
- I go to the admin pages page
- And
- I follow "foobar"
- Then
- I should now be editing the page "foobar"
- And
- I fill in "page_meta_data_title" with "meta_title_foobar"
- And
- I press "Update Page"
- Then
- I should be on the admin pages page
- And
- I should see "Successfully updated the page foobar"
- Delete page as an admin
-
- Given
-
these pages exist in the site "foobar.example.com" created by user "ak730"
title status foobar published bar draft - When
- I go to the admin pages page
- And
- I press "delete" within "li#foobar"
- Then
- I should see "Successfully deleted the page foobar"
- And
- I should be on the admin pages page
- Delete page as an admin
-
- Given
-
these pages exist in the site "foobar.example.com" created by user "rg874"
title status foobar published bar draft - When
- I go to the admin pages page
- And
- I press "delete" within "li#foobar"
- Then
- I should see "Successfully deleted the page foobar"
- And
- I should be on the admin pages page
Last published over 7 years ago by amkirwan.