-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tests-Only] refactor tests for Shares folder: webuiResharing, webuiSharingAcceptShares #4103
Conversation
47c4a14
to
88a3f49
Compare
And the user re-logs in as "user2" using the webUI | ||
Then user "User One" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI | ||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accepts
not accepted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 the user re-logs in as "user2" using the webUI | ||
Then user "User One" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI | ||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
https://drone.owncloud.com/owncloud/phoenix/11155/27/19
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
tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature
Outdated
Show resolved
Hide resolved
…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: