Skip to content

Commit

Permalink
Merge pull request #36673 from owncloud/table-fields-add
Browse files Browse the repository at this point in the history
Acceptance tests: Add more fields in verify table calls used in other apps
  • Loading branch information
phil-davis authored Jan 2, 2020
2 parents 3158837 + b52239d commit cdb722a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function assertNotificationsOnWebUI(
\count($notifications),
"expected $number notifications, found " . \count($notifications)
);
$this->featureContext->verifyTableNodeColumns($expectedNotifications, ['title'], ['content']);
$this->featureContext->verifyTableNodeColumns($expectedNotifications, ['title'], ['content', 'link', 'message']);
foreach ($expectedNotifications as $expectedNotification) {
$found = false;
foreach ($notifications as $notification) {
Expand Down
6 changes: 5 additions & 1 deletion tests/acceptance/features/bootstrap/WebUISharingContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,11 @@ public function theUserTypesInTheShareWithField($input) {
public function theUserSetsTheSharingPermissionsOfForOnTheWebUI(
$userOrGroup, $userName, $fileName, TableNode $permissionsTable
) {
$this->featureContext->verifyTableNodeRows($permissionsTable, [], ['share', 'edit', 'create', 'change', 'delete']);
$this->featureContext->verifyTableNodeRows(
$permissionsTable,
[],
['share', 'edit', 'create', 'change', 'delete', 'edit', 'secure-view', 'print']
);
// The capturing groups of the regex include the quotes at each
// end of the captured string, so trim them.
$userName = $this->featureContext->substituteInLineCodes(\trim($userName, '""'));
Expand Down

0 comments on commit cdb722a

Please sign in to comment.