Skip to content

Commit

Permalink
Redirect to files app after login in acceptance tests
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Jul 24, 2020
1 parent 35b9375 commit dbef1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/acceptance/features/bootstrap/LoginPageContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/installAndConfigureServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dbef1e2

Please sign in to comment.