Skip to content
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

Acceptance tests for renaming and moving activities #1019

Closed
9 tasks done
JammingBen opened this issue Oct 28, 2021 · 14 comments
Closed
9 tasks done

Acceptance tests for renaming and moving activities #1019

JammingBen opened this issue Oct 28, 2021 · 14 comments
Assignees

Comments

@JammingBen
Copy link
Contributor

JammingBen commented Oct 28, 2021

#1018 and owncloud/core#39430 introduce activities for rename- and move-actions. The following scenarios need acceptance test scenarios:

  • Rename file in root
  • Rename file in a subfolder
  • Move file into subfolder
  • Move folder out of subfolder
  • Rename a shared folder -> only affects the user who renames
  • Rename a file inside a shared folder -> affects all share users (**)
  • Move a file inside a shared folder into a subfolder inside the share -> affects all share users (**)
  • Move a file into the share -> affects all share users, but only the users who moves sees the source path (**)
  • Move a file out of a share -> affects all share users, but only the users who moves sees the destination path (**)

** also use "Shares" as default share folder

@phil-davis Could you and your team have a look at this?

@phil-davis
Copy link
Contributor

Could you and your team have a look at this?

yes, I added it to our project board.

To whoever gets assigned: most of this should be able to be done efficiently with API tests. Just make a couple of webUI scenarios that verify that the rename and move activity entries do get displayed on the webUI.

@kiranparajuli589
Copy link
Contributor

@JammingBen @phil-davis the feature PRs seems not merged yet. should we write tests in the feature branch...or do a PR in for the feature branch?

@phil-davis
Copy link
Contributor

@JammingBen @phil-davis the feature PRs seems not merged yet. should we write tests in the feature branch...or do a PR in for the feature branch?

Checkout the PR branch and then branch off that and make tests in another branch in the activity app.

Note: the CI needs to also point to the core branch that provides support for this, until the core PR is merged.

@kiranparajuli589
Copy link
Contributor

kiranparajuli589 commented Nov 8, 2021

@kiranparajuli589 kiranparajuli589 removed their assignment Nov 8, 2021
@phil-davis
Copy link
Contributor

@kiranparajuli589 Last week I added a couple of scenarios for moving a file between shares (shares to users, and shares to groups).

Can you think of any other interesting test cases?

@kiranparajuli589
Copy link
Contributor

kiranparajuli589 commented Nov 11, 2021

TODO:

  • check a public user action
  • webui scenarios

@kiranparajuli589 kiranparajuli589 self-assigned this Nov 11, 2021
@phil-davis
Copy link
Contributor

@kiranparajuli589 the code PR has been merged, so you can branch from latest master to add more test scenarios.

@individual-it
Copy link
Member

#1030 was merged, more tests needed?

@phil-davis
Copy link
Contributor

phil-davis commented Nov 22, 2021

We could just have 2 scenarios for an ordinary rename and move. (The actual rename and move can be done with the API or whatever is easiest) And demonstrate that the UI shows the activity entries with the expected rename/move words.

This can easily be reassigned to someone to finish while @kiranparajuli589 is on leave.

@phil-davis
Copy link
Contributor

This should not be too difficult. @sushmita56 please add rename and move scenarios, then this issue can be closed.

@sushmita56
Copy link
Contributor

sushmita56 commented May 18, 2022

@phil-davis The Activity tab on the UI doesn't show any notification regarding the moving/copying of the resource but it shows the information about the resource creation/deletion. Is this an expected behavior or should I report an issue?
Screenshot from 2022-05-18 11-50-51

@phil-davis
Copy link
Contributor

@sushmita56 the feature has to be enabled:

php occ config:app:set activity enable_move_and_rename_activities --value yes

Then it works.

In Gherkin feature files hace a Given step like:

Given the administrator has added config key "enable_move_and_rename_activities" with value "yes" in app "activity"

@SwikritiT
Copy link
Contributor

SwikritiT commented May 23, 2022

@phil-davis the PR for web-ui test #1109 has been merged. I guess it's safe to close this? Or do we need to add more tests?

@phil-davis
Copy link
Contributor

done - closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants