Skip to content

Commit

Permalink
changed wording of mount unmount to enable and disable sync
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Panta committed Apr 5, 2024
1 parent d7ad04c commit 92164b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: mount or unmount incoming share
Feature: enable or disable sync for incoming share
As a user
I want to have control over the share received
So that I can filter out the files and folder shared with Me
Expand All @@ -11,7 +11,7 @@ Feature: mount or unmount incoming share
And using spaces DAV path


Scenario Outline: unmount shared resource
Scenario Outline: disable sync for shared resource
And user "Alice" has created folder "FolderToShare"
And user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
And user "Alice" has sent the following share invitation:
Expand All @@ -20,7 +20,7 @@ Feature: mount or unmount incoming share
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
When user "Brian" unmounts share "<resource>" using the Graph API
When user "Brian" disables sync for share "<resource>" using the Graph API
And user "Brian" lists the shares shared with him using the Graph API
Then the HTTP status code of responses on all endpoints should be "200"
And the JSON data of the response should match
Expand Down Expand Up @@ -56,7 +56,7 @@ Feature: mount or unmount incoming share
| FolderToShare |


Scenario Outline: mount shared resource when auto-sync is disabled
Scenario Outline: enable sync for shared resource when auto-sync is disabled
Given user "Brian" has disabled the auto-sync share
And user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
And user "Alice" has created folder "folder"
Expand All @@ -66,7 +66,7 @@ Feature: mount or unmount incoming share
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
When user "Brian" mounts share "<resource>" offered by "Alice" from "Personal" space using the Graph API
When user "Brian" enables sync for share "<resource>" offered by "Alice" from "Personal" space using the Graph API
Then the HTTP status code should be "201"
And the JSON data of the response should match
"""
Expand Down Expand Up @@ -103,7 +103,7 @@ Feature: mount or unmount incoming share
| sharee | grp1 |
| shareType | group |
| permissionsRole | Viewer |
When user "Alice" mounts share "<resource>" offered by "Carol" from "Personal" space using the Graph API
When user "Alice" enables sync for share "<resource>" offered by "Carol" from "Personal" space using the Graph API
Then the HTTP status code should be "201"
And the JSON data of the response should match
"""
Expand Down Expand Up @@ -140,7 +140,7 @@ Feature: mount or unmount incoming share
| sharee | grp1 |
| shareType | group |
| permissionsRole | Viewer |
When user "Alice" unmounts share "<resource>" using the Graph API
When user "Alice" disables sync for share "<resource>" using the Graph API
Then the HTTP status code should be "200"
And user "Alice" should have sync disabled for share "<resource>"
And user "Brian" should have sync enabled for share "<resource>"
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/features/bootstrap/SharingNgContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public function unmountShare(string $user, string $itemId, string $shareSpaceId)
}

/**
* @When user :user unmounts share :share using the Graph API
* @When user :user disables sync for share :share using the Graph API
*
* @param string $user
*
Expand All @@ -596,7 +596,7 @@ public function userUnmountsShareUsingTheGraphApi(string $user):void {
}

/**
* @When user :user mounts share :share offered by :offeredBy from :space space using the Graph API
* @When user :user enables sync for share :share offered by :offeredBy from :space space using the Graph API
*
* @param string $user
* @param string $share
Expand Down

0 comments on commit 92164b2

Please sign in to comment.