Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[Tests-Only] refactor federation sharing tests for shares folder - #4111

Merged
phil-davis merged 1 commit into
masterfrom
refactor-fed-sharing
Oct 1, 2020
Merged

phil-davis merged 1 commit into
masterfrom
refactor-fed-sharing

Conversation

@dpakach

@dpakach dpakach commented Sep 28, 2020 •

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@dpakach dpakach changed the title Refactor fed sharing [Tests-Only] refactor federation sharing tests for shares folder Sep 28, 2020
@dpakach
dpakach force-pushed the refactor-fed-sharing branch 2 times, most recently from 5c512f0 to a4397fe Compare September 29, 2020 07:23
@dpakach dpakach mentioned this pull request Sep 29, 2020
2 tasks
@dpakach
dpakach force-pushed the refactor-fed-sharing branch 5 times, most recently from 6f843e9 to b949b21 Compare September 30, 2020 10:35
@dpakach
dpakach force-pushed the refactor-fed-sharing branch from b949b21 to 94967ee Compare September 30, 2020 15:01
@dpakach
dpakach marked this pull request as ready for review October 1, 2020 03:21
@dpakach dpakach self-assigned this Oct 1, 2020
@owncloud owncloud deleted a comment from update-docs Bot Oct 1, 2020
Given user "user1" from remote server has shared "simple-folder" with user "user1" from local server
And user "user1" from server "LOCAL" has accepted the last pending share
When the user opens folder "Shares%2Fsimple-folder" directly on the webUI
When the user reloads the current page of the webUI

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When the user reloads the current page of the webUI
And the user reloads the current page of the webUI

Then the user should not be able to share folder "simple-folder (2)" using the webUI
Given user "user1" from remote server has shared "simple-folder" with user "user1" from local server with "read" permissions
And user "user1" from server "LOCAL" has accepted the last pending share
And the user reloads the current page of the webUI

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And the user reloads the current page of the webUI
When the user reloads the current page of the webUI

This seems to be a line that can start the When section of the scenario.

@phil-davis

Copy link
Copy Markdown
Contributor

The flow of test steps looks fine. Some of the remote+resharing scenarios get a bit complicated, with all the sharing+accepting, but that's actually the way the user workflow would happen in real life.

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments will be fixed in a later PR. They do not effect functionality.

@phil-davis
phil-davis merged commit 9478a3f into master Oct 1, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the refactor-fed-sharing branch October 1, 2020 06:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

QA:team Status:Needs-Review Needs review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants