Logo: Relish

  1. Sign in

Project: Etherweb-cms

Admin Layout Management Features user with editor role

Background Login create default site
Given
the site "foobar" exists with the domain "example.com"
And
the user "baz" exists with the role of "admin" in the site "foobar.example.com"
And
the user "ak730" exists with the role of "editor" in the site "foobar.example.com"
And
I authenticates as cas user "ak730"
Scenarios
  • @editor_cannot_view_layouts
Editor cannot view layouts
Given
these layouts exist in the site "foobar.example.com" created by user "baz"
name content
foobar Hello, World!
bar Hello, World!
When
I go to the admin layouts page
Then
I should see "403"
  • @admin_should_not_access_other_site
Should not be able to access site the user 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"
  • @editor_access_new_layout_page
Editor cannot create layouts
When
I go to the new admin layout page
Then
I should see "403"
  • @editor_access_edit_layout_page
User with the role editor cannot edit layouts
Given
these layouts exist in the site "foobar.example.com" created by user "baz"
name content
foobar Hello, World!
bar Hello, World!
When
I edit the layout "foobar"
Then
I should see "403"

Last published over 4 years ago by amkirwan.