Contents

This page comes from an earlier version of the Openproject docs (commit a9ca9507). See the latest Openproject docs.

User session

Background:

  • Given there is 1 user with the following:
    loginbob

Scenario: Autologin works if enabled

  • Given the "autologin" setting is set to 1
  • Given the "session_ttl_enabled" setting is set to true
  • And the "session_ttl" setting is set to 5
  • When I login with autologin enabled as "bob"
  • And I wait for "10" minutes
  • And I go to the home page
  • Then I should be logged in as "bob"

Scenario: Autologin does not work if disabled

  • Given the "autologin" setting is set to 0
  • Given the "session_ttl_enabled" setting is set to true
  • And the "session_ttl" setting is set to 5
  • When I login with autologin enabled as "bob"
  • And I wait for "10" minutes
  • And I go to the home page
  • Then I should be logged out

Source: features/session/user_session.feature at commit a9ca9507, Openproject (GPL license).