Skip to content

Commit 10295d8

Browse files
committed
Redirect to files app after login in acceptance tests
Signed-off-by: Julius Härtl <[email protected]>
1 parent 35b9375 commit 10295d8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/acceptance/features/bootstrap/LoginPageContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function iLogInWithUserAndPassword($user, $password) {
9191
*/
9292
public function iSeeThatTheCurrentPageIsTheLoginPage() {
9393
PHPUnit_Framework_Assert::assertStringStartsWith(
94-
$this->actor->locatePath("/login"),
94+
$this->actor->locatePath("/login?redirect_url=/index.php/apps/files"),
9595
$this->actor->getSession()->getCurrentUrl());
9696
}
9797

tests/acceptance/installAndConfigureServer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ OC_PASS=123456acb php occ user:add --password-from-env user1
3939
OC_PASS=123456acb php occ user:add --password-from-env disabledUser
4040
php occ user:disable disabledUser
4141

42+
php occ app:disable dashboard
43+
4244
if [ "$NEXTCLOUD_SERVER_DOMAIN" != "" ]; then
4345
# Default first trusted domain is "localhost"; replace it with given domain.
4446
php occ config:system:set trusted_domains 0 --value="$NEXTCLOUD_SERVER_DOMAIN"

0 commit comments

Comments
 (0)