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 Media File Management Features as admin
- 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 site assets
- Create a new media file
- Given I am logged in as an admin then I can edit the site assets I created
- Given I am logged in as an admin then I can edit the site assets created by another user
- Admin can delete site assets
- Given I am logged in as an admin then I can delete files created by another user
-
- Given
-
these site assets exist in the site "foobar.example.com" created by user "ak730"
name foobar bar - When
- I go to the admin site assets page
- Then
- I should be on the admin site assets page
- And
- I should see "foobar"
- And
- I should see the "delete" button
- And
- I should see "Add Asset"
- Should not be able to access another sites site assets
-
- Given
- the site "baz" exists with the domain "example.dev"
- When
- I go to the admin site assets page
- Then
- I should see "403"
- Create a new media file
-
- When
- I go to the admin site assets page
- And
- I follow "Add Asset" within "ul#new_site_asset"
- And
- I fill in "site_asset_name" with "foobar" within "div#add_new_site_asset"
- And
- I fill in "site_asset_description" with "Hello, World!" within "div#add_new_site_asset"
- And
- I attach the file "spec/fixtures/assets/rails.png" to "site_asset_source"
- And
- I press "Save Asset" within "div#add_new_site_asset"
- Then
- I should be on the admin site assets page
- And
- I should see "Successfully created the asset 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 the site assets I created
-
- Given
- "ak730" has created the site asset "rails"
- When
- I go to the admin site assets page
- And
- I follow "rails" within "li#rails"
- Then
- I should now be editing the site asset "rails"
- And
- I fill in "site_asset_name" with "foobar" within "div#edit_site_asset"
- And
- I fill in "site_asset_description" with "New Text" within "div#edit_site_asset"
- And
- I should see the url for the file "rails"
- And
- I press "Update Asset" within "div#edit_site_asset"
- Then
- I should be on the admin site assets page
- And
- I should see "Successfully updated the asset 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 the site assets created by another user
-
- Given
- "rg874" has created the site asset "rails"
- When
- I go to the admin site assets page
- And
- I follow "rails" within "li#rails"
- Then
- I should now be editing the site asset "rails"
- And
- I fill in "site_asset_name" with "foobar" within "div#edit_site_asset"
- And
- I press "Update Asset" within "div#edit_site_asset"
- Then
- I should be on the admin site assets page
- And
- I should see "Successfully updated the asset foobar"
- Admin can delete site assets
-
- Given
-
these site assets exist in the site "foobar.example.com" created by user "ak730"
name foobar bar - When
- I go to the admin site assets page
- Then
- I should be on the admin site assets page
- And
- I press "delete" within "li#foobar"
- And
- I should see "Successfully deleted the asset foobar"
- And
- I should be on the admin site assets page
- Given I am logged in as an admin then I can delete files created by another user
-
- Given
-
these site assets exist in the site "foobar.example.com" created by user "rg874"
name foobar bar - When
- I go to the admin site assets page
- Then
- I should be on the admin site assets page
- And
- I press "delete" within "li#foobar"
- And
- I should see "Successfully deleted the asset foobar"
- And
- I should be on the admin site assets page
Last published over 7 years ago by amkirwan.