Add acceptance test for checking changing sharing permissions#35166
Conversation
| $name = \trim($name, $name[0]); | ||
| try { | ||
| $this->deleteTheFileUsingTheWebUI($name, false); | ||
| $retries = $expect ? 1 : null; |
| * @throws \Exception | ||
| */ | ||
| public function itShouldNotBePossibleToDeleteFileFolderUsingTheWebUI($name) { | ||
| public function itShouldNotBePossibleToDeleteFileFolderUsingTheWebUI($shouldOrNot, $name) { |
There was a problem hiding this comment.
Can you split this function? It was too difficult for me to think about this.
Codecov Report
@@ Coverage Diff @@
## master #35166 +/- ##
============================================
- Coverage 65.53% 65.49% -0.05%
+ Complexity 18645 18636 -9
============================================
Files 1218 1217 -1
Lines 70540 70536 -4
Branches 1288 1296 +8
============================================
- Hits 46231 46195 -36
- Misses 23932 23964 +32
Partials 377 377
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35166 +/- ##
=========================================
Coverage 65.54% 65.54%
Complexity 18647 18647
=========================================
Files 1218 1218
Lines 70546 70546
Branches 1288 1288
=========================================
Hits 46236 46236
Misses 23933 23933
Partials 377 377
Continue to review full report at Codecov.
|
| * @throws \Exception | ||
| */ | ||
| public function optionShouldNotBeAvailable($action, $name, $shouldOrNot) { | ||
| $possible = $shouldOrNot !== "not"; |
ddbcd3b to
da02f0c
Compare
| $btn = $this->find("xpath", $this->newFileFolderButtonXpath); | ||
| if ($btn === null) { | ||
| return false; | ||
| } else { |
| ); | ||
| if (!$button) { | ||
| return false; | ||
| } else { |
5be814d to
73e39cd
Compare
individual-it
left a comment
There was a problem hiding this comment.
looks generally good to me, just a small request
work for additional PRs:
- test with single files
- test through API
| And file "lorem.txt" should be listed on the webUI | ||
| And file "lorem (2).txt" should not be listed on the webUI | ||
|
|
||
| Scenario: User tries to upload existing file in public link share with permissions upload-write-without-modify |
There was a problem hiding this comment.
upload-write-without-modify ? copy-paste problem?
|
Backport on #35267 |
Description
Add acceptance test for checking changing sharing permissions from
Related Issue
Motivation and Context
How Has This Been Tested?
🤖
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: