Skip to content

Commit

Permalink
Merge pull request #37126 from owncloud/passwordPolicyExpiration
Browse files Browse the repository at this point in the history
[Tests-Only] add functions for the acceptance tests added for password policy expiration date
  • Loading branch information
phil-davis authored Mar 18, 2020
2 parents ccfb9e1 + 165a2e2 commit 4ddbf24
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/acceptance/features/bootstrap/WebUISharingContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,32 @@ public function theUserChangeTheExpirationOfThePublicLinkNamedForTo($linkName, $
$this->publicShareTab->waitForAjaxCallsToStartAndFinish($session);
}

/**
* @When the user changes the expiration of the public link :linkName of file/folder :name to :expiration
*
* @param string $linkName
* @param string $name
* @param string $expiration
*
* @return void
* @throws \Exception
*/
public function theUserChangesTheExpirationOfThePublicLinkToCertainDate($linkName, $name, $expiration) {
$session = $this->getSession();
$this->theUserOpensTheShareDialogForFileFolder($name);
$this->theUserHasOpenedThePublicLinkShareTab();
$expiration = \date('d-m-Y', \strtotime($expiration));
$this->publicSharingPopup = $this->publicShareTab->editLink(
$session,
$linkName,
null,
null,
null,
$expiration
);
$this->publicShareTab->waitForAjaxCallsToStartAndFinish($session);
}

/**
* @When the user opens the create public link share popup
*
Expand Down

0 comments on commit 4ddbf24

Please sign in to comment.