Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-24 08:32:32 +0300
committerJulius Härtl <jus@bitgrid.net>2020-08-05 18:01:29 +0300
commit4679926511c9e845a26eb4c9ab606ce889feea21 (patch)
treef5342c209e98fd588431839f890b8414398a0b7e /tests
parente25bab98b73e79f4ae131136e516b96fa5cfbdb4 (diff)
Redirect to files app after login in acceptance tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/LoginPageContext.php2
-rwxr-xr-xtests/acceptance/installAndConfigureServer.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php
index bf44d31fb03..08046c6e3a3 100644
--- a/tests/acceptance/features/bootstrap/LoginPageContext.php
+++ b/tests/acceptance/features/bootstrap/LoginPageContext.php
@@ -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());
}
diff --git a/tests/acceptance/installAndConfigureServer.sh b/tests/acceptance/installAndConfigureServer.sh
index d24405fa448..99d51e951af 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"