-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[stable10] WebUI test check blacklisted group sharing #33029
[stable10] WebUI test check blacklisted group sharing #33029
Conversation
8fabb86
to
c346db7
Compare
Codecov Report
@@ Coverage Diff @@
## stable10 #33029 +/- ##
===========================================
Coverage 62.91% 62.91%
Complexity 18865 18865
===========================================
Files 1236 1236
Lines 73946 73946
Branches 1282 1282
===========================================
Hits 46525 46525
Misses 27041 27041
Partials 380 380
Continue to review full report at Codecov.
|
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.
See comments.
throw new ElementNotFoundException( | ||
__METHOD__ . | ||
" xpath $this->groupSharingBlackListFieldXpath " . | ||
"could not input field" |
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.
could not find input field
@@ -808,5 +811,8 @@ public function reportResult(AfterScenarioScope $afterScenarioScope) { | |||
} else { | |||
\error_log("SCENARIO RESULT: ($passOrFail)"); | |||
} | |||
SetupHelper::runOcc( | |||
["config:app:set files_sharing blacklisted_receiver_groups --value"] |
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.
Can we save the previous setting in the BeforeScenario
and restore it here?
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.
Yes, we can save the previous settings but restoring the previous settings doesn't work. As we saw it last Friday.
tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature
Show resolved
Hide resolved
@@ -640,6 +640,9 @@ public function setUpScenario(BeforeScenarioScope $scope) { | |||
); | |||
} | |||
} | |||
SetupHelper::runOcc( | |||
['config:app:set files_sharing blacklisted_receiver_groups --value='] |
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.
Maybe this does not need to be cleared for every webUI scenario. We are getting more and more setup happening every scenario that takes many round-trips to the testing app to do occ
commands.
It could go in BeforeScenario
of WebUIAdminSharingSettingsContext.php
?
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.
Yes, that makes sense.
Note: we need to review what tests we already have for the "opposite" setting |
c346db7
to
1dabe80
Compare
Forward port: #33031 |
@@ -25,6 +25,8 @@ | |||
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |||
use Behat\MinkExtension\Context\RawMinkContext; | |||
use Page\AdminSharingSettingsPage; | |||
use TestHelpers\SetupHelper; | |||
use Behat\Behat\Hook\Scope\AfterScenarioScope; |
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.
not needed
1dabe80
to
a202e93
Compare
Description
This PR adds tests for share behavior in group sharing Blacklist
Related issue: #31696 and owncloud/QA#594
How Has This Been Tested?
Locally
Types of changes
Checklist: