Repository navigation
[Tests-Only] refactor tests for Shares folder: webuiResharing, webuiSharingAcceptShares - #4103
Conversation
47c4a14 to
88a3f49
Compare
| And custom permissions "share, delete" should be set for user "User One" for folder "simple-folder" on the webUI | ||
| And user "User Three" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI | ||
| And custom permissions "delete" should be set for user "User Three" for folder "simple-folder" on the webUI | ||
| When user "user3" has accepted the share "simple-folder" offered by user "user1" |
There was a problem hiding this comment.
accepts not accepted
There was a problem hiding this comment.
This is an API step. I don't think we should use API steps on When steps for UI tests.
So I figured it would be better to consider this as a Given step for checking the next condition so. So I reused an existing given step.
@phil-davis need your opinion on this.
There was a problem hiding this comment.
I think I would stay in the format and make a correct When step out of it When user "user3" accepty the share "simple-folder" offered by user "user1" using the API
and also I suggest to move it further up to the other WHEN steps
88a3f49 to
ee8e064
Compare
| And custom permissions "share, delete" should be set for user "User One" for folder "simple-folder" on the webUI | ||
| And user "User Three" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI | ||
| And custom permissions "delete" should be set for user "User Three" for folder "simple-folder" on the webUI | ||
| When user "user3" has accepted the share "simple-folder" offered by user "user1" |
There was a problem hiding this comment.
I think I would stay in the format and make a correct When step out of it When user "user3" accepty the share "simple-folder" offered by user "user1" using the API
and also I suggest to move it further up to the other WHEN steps
ee8e064 to
e427c92
Compare
That looks really strange - the step checks that What??? |
I think that outputs the potential error but says the assertion passed maybe we have to adjust the messages in the asserts |
bbaf870 to
645853c
Compare
d483381 to
e9bce08
Compare
…haringAcceptShares
e9bce08 to
31a3585
Compare
I raised issue #4115 so we can look into it some day. |
Description
Refactor webui test scenarios for using the Shares folder and root folder for shares.
Related Issue
Motivation and Context
Shares in ocis are received in Shares folder by default. To test that we need this refactor.
How Has This Been Tested?
🤖
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: