Redirect to files app after login in acceptance tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-07-24 07:32:32 +02:00
parent e25bab98b7
commit 4679926511
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class LoginPageContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheLoginPage() {
PHPUnit_Framework_Assert::assertStringStartsWith(
$this->actor->locatePath("/login"),
$this->actor->locatePath("/login?redirect_url=/index.php/apps/files"),
$this->actor->getSession()->getCurrentUrl());
}

View File

@ -39,6 +39,8 @@ OC_PASS=123456acb php occ user:add --password-from-env user1
OC_PASS=123456acb php occ user:add --password-from-env disabledUser
php occ user:disable disabledUser
php occ app:disable dashboard
if [ "$NEXTCLOUD_SERVER_DOMAIN" != "" ]; then
# Default first trusted domain is "localhost"; replace it with given domain.
php occ config:system:set trusted_domains 0 --value="$NEXTCLOUD_SERVER_DOMAIN"