Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

e2e: split feature files #175

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions e2e/features/restapi/create.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Feature: Create workspaces via REST API

@skip
Scenario: users can create a new workspace

Scenario: user requests a private workspace
Given An user is onboarded
When The user requests a new private workspace
Then A private workspace is created

Scenario: user requests a community workspace
Given An user is onboarded
When The user requests a new community workspace
Then A community workspace is created

7 changes: 7 additions & 0 deletions e2e/features/restapi/delete.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Feature: Delete workspaces via REST API

@skip
Scenario: users can delete owned workspaces

@skip
Scenario: users cannot delete default workspace
18 changes: 10 additions & 8 deletions e2e/features/restapi/update.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
Feature: Create, update, and delete workspaces via REST API

@skip
Scenario: users can create a new workspace
Feature: Update workspaces via REST API

Scenario: users can update their workspaces' visibility
Given An user is onboarded
Expand All @@ -11,9 +8,14 @@ Feature: Create, update, and delete workspaces via REST API

@skip
Scenario: users can not update visibility of non-owned workspaces

Scenario: visibility changes from private to community
Given A private workspace exists for an user
When The owner changes visibility to community
Then The workspace is readable for everyone

@skip
Scenario: users can delete owned workspaces
Scenario: visibility changes from community to private
Given A community workspace exists for an user
When The owner changes visibility to private
Then The workspace is readable only for the ones directly granted access to

@skip
Scenario: users cannot delete default workspace
20 changes: 0 additions & 20 deletions e2e/features/workspaces.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ Feature: Workspace lifecycle
Then Default workspace is created for them
And The workspace visibility is set to "private"

Scenario: workspace request a private workspace
Given An user is onboarded
When The user requests a new private workspace
Then A private workspace is created

Scenario: workspace request a community workspace
Given An user is onboarded
When The user requests a new community workspace
Then A community workspace is created

Scenario: visibility changes from private to community
Given A private workspace exists for an user
When The owner changes visibility to community
Then The workspace is readable for everyone

Scenario: visibility changes from community to private
Given A community workspace exists for an user
When The owner changes visibility to private
Then The workspace is readable only for the ones directly granted access to

Scenario: role is set on workspace for owner user
When A workspace is created for an user
Then The owner is granted admin access to the workspace
Loading