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

[Tests-Only] Refactor webUISharingInternalUsers to use Shares folder - #4114

Merged
dpakach merged 1 commit into
masterfrom
refactor-webUISharingInternalUsers
Oct 5, 2020
Merged

dpakach merged 1 commit into
masterfrom
refactor-webUISharingInternalUsers

Conversation

@haribhandari07

@haribhandari07 haribhandari07 commented Sep 29, 2020 •

Copy link
Copy Markdown
Contributor

Description

Refactor webUISharingInternalUsers to use Root and Shares folder for shares.

Related Issue

Motivation and Context

How Has This Been Tested?

  • CI

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:

  • ...

@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from 6845966 to 6d86662 Compare September 30, 2020 02:58
@haribhandari07 haribhandari07 self-assigned this Sep 30, 2020
@haribhandari07 haribhandari07 added Status:Needs-Review Needs review from a maintainer QA:team labels Sep 30, 2020
@haribhandari07
haribhandari07 marked this pull request as ready for review September 30, 2020 03:02

@dpakach dpakach 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.

Please change the folder structure to

webUISharingInternalUsers - Scenarios that contains tests with Shares folder enabled
webUISharingInternalUsersToRoot - Old Scenarios without Shares folder and auto accept.

Thats how it's done in other suites and it will make it easy to review

@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from 6d86662 to d79800b Compare September 30, 2020 07:05
@@ -1,11 +1,13 @@
@skipOnOCIS @ocis-reva-issue-64

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.

@skipOnOCIS @ocis-reva-issue-64

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dpakach it's supposed to run on ocis, ...ToRoot/shareWithUsers.feature is skipped on ocis.

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.

You should still skip these because these tests still don't work on ocis

But these resources should not be listed in the folder "simple-folder (2)" on the webUI
| entry_name |
| simple-folder (2) |
But these resources should not be listed in the folder "simple-folder" on 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
But these resources should not be listed in the folder "simple-folder" on the webUI
But these resources should not be listed in the folder "Shares/simple-folder" on the webUI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same as above

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.

This uses

client.page.filesPage().navigateAndWaitTillLoaded(folder)

And that function in turn uses\

await navigationHelper.navigateAndWaitTillElementPresent(
        join(this.api.launchUrl, '#/files/list', folder),
        this.elements.newFileButtonLoaded
      )

since it uses the URL directly rather than using the UI. This step should be

But these resources should not be listed in the folder "Shares/simple-folder" on the webUI

Since this step is should not be, it doesn't fail but it is not what we should be looking for here.

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.

Please also fix other occurrences of similar steps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Given user "user2" has logged in using the webUI
When the user renames folder "simple-folder" to "new-simple-folder" using the webUI
And the user shares folder "new-simple-folder" with user "User One" as "Editor" using the webUI
And user "user1" has accepted the share "new-simple-folder" offered by user "user2"

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 user "user1" has accepted the share "new-simple-folder" offered by user "user2"
And user "user1" accepts the share "new-simple-folder" offered by user "user2" using the Sharing API

@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from d79800b to a61e936 Compare October 1, 2020 03:33
@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from a61e936 to 590a779 Compare October 2, 2020 02:46
@haribhandari07
haribhandari07 requested a review from dpakach October 2, 2020 03:40
@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from 590a779 to e9332f5 Compare October 2, 2020 06:52
@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from e9332f5 to 5e48661 Compare October 2, 2020 08:51
@haribhandari07
haribhandari07 force-pushed the refactor-webUISharingInternalUsers branch from 5e48661 to 0ecbefe Compare October 5, 2020 04:38

@dpakach dpakach 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.

LGTM 👍

@dpakach
dpakach merged commit 57bd96f into master Oct 5, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the refactor-webUISharingInternalUsers branch October 5, 2020 05:43
@dpakach dpakach mentioned this pull request Oct 6, 2020
2 tasks
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.

3 participants