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 Theme Asset 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 theme assets
- Create a new media file
-
- Given
-
these theme assets exist in the site "foobar.example.com" created by user "ak730"
name file theme_css theme_css.css theme_js theme_js.js rails rails.png - When
- I go to the admin theme assets page
- Then
- I should be on the admin theme assets page
- And
- I should see "theme_css"
- And
- I should see "theme_js"
- And
- I should see "rails"
- And
- I should see "Add Theme Asset"
- Should not be able to access another sites site theme assets
-
- Given
- the site "baz" exists with the domain "example.dev"
- When
- I go to the admin theme assets page
- Then
- I should see "403"
- Create a new media file
-
- When
- I go to the admin theme assets page
- And
- I follow "Add Theme Asset" within "ul#new_theme_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
Last published over 7 years ago by amkirwan.