From dbef1e24c76a04ff53baed8a95b4c25cf6706ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 24 Jul 2020 07:32:32 +0200 Subject: [PATCH] Redirect to files app after login in acceptance tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- tests/acceptance/features/bootstrap/LoginPageContext.php | 2 +- tests/acceptance/installAndConfigureServer.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php index bf44d31fb033d..08046c6e3a3d3 100644 --- a/tests/acceptance/features/bootstrap/LoginPageContext.php +++ b/tests/acceptance/features/bootstrap/LoginPageContext.php @@ -91,7 +91,7 @@ public function iLogInWithUserAndPassword($user, $password) { */ 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()); } diff --git a/tests/acceptance/installAndConfigureServer.sh b/tests/acceptance/installAndConfigureServer.sh index d24405fa448f7..99d51e951afd1 100755 --- a/tests/acceptance/installAndConfigureServer.sh +++ b/tests/acceptance/installAndConfigureServer.sh @@ -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"