Skip to content

improve: Add optional destination parameter to ILogInAs#37

Open
petarbasic wants to merge 1 commit into1.xfrom
feature/DEV-2116
Open

improve: Add optional destination parameter to ILogInAs#37
petarbasic wants to merge 1 commit into1.xfrom
feature/DEV-2116

Conversation

@petarbasic
Copy link
Contributor

Summary

  • Adds an optional destination parameter to ILogInAs to control the post-login redirect
  • Can be used to avoid being redirected to the admin dashboard after login, which renders views blocks that can cause race conditions during parallel test execution
  • Backwards compatible: existing callers are unaffected (no destination = default Drupal behavior)

Usage

// Default behavior (no change):
ILogInAs([page, 'dru_admin'])

// Skip dashboard redirect (for parallel tests):
ILogInAs([page, 'dru_admin', '/user'])

Allows controlling the post-login redirect to avoid the admin dashboard,
which can cause race conditions during parallel test execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant