Skip to content

Commit

Permalink
added test for manager member
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita56 committed Aug 19, 2022
1 parent 02a6033 commit 04034c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Feature: spaces public link
| Alice |
| Brian |
| Carol |
| marie |
And "Admin" assigns following roles to the users
| id | role |
| Alice | SpaceAdmin |
Expand All @@ -22,13 +23,18 @@ Feature: spaces public link
| spaceFolder | folder |
And "Alice" creates a public link for the resource "spaceFolder" using the sidebar panel
And "Alice" adds following users to the project space
| user | role |
| Brian | editor |
| Carol | viewer |
| user | role |
| Brian | editor |
| Carol | viewer |
| marie | manager |
When "Brian" logs in
And "Brian" navigates to the projects space page
And "Brian" navigates to the project space "team.1"
Then public link named "spaceLink" should be visible to "Brian"
But "Brian" 'should not' be able to edit the public link named "spaceLink"
And "Brian" logs out

When "Marie" logs in
And "Marie" navigates to the projects space page
And "Marie" navigates to the project space "team.1"
Then public link named "spaceLink" should be visible to "Marie"
And "Marie" 'should' be able to edit the public link named "spaceLink"
9 changes: 9 additions & 0 deletions tests/e2e/support/store/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@ export const userStore = new Map<string, User>([
password: '1234',
email: 'carol@example.org'
}
],
[
'marie',
{
id: 'marie',
displayName: 'Marie Skłodowska Curie',
password: '1234',
email: 'marie@example.org'
}
]
])

0 comments on commit 04034c2

Please sign in to comment.