Skip to content

Draft: Enable JS to test new Vue password input

Ross Byrne requested to merge 411421-enable-js-to-test-vue-password-input into master

What does this MR do and why?

Implements #411421.

This MR updates how the vue.js password input is added to haml forms. It also turns on JavaScript execution for feature specs to correctly test the input in tests.

Screenshots or screen recordings

No Visible Changes

How to set up and validate locally

Normal Login

  1. Navigate to http://gdk.test:3000/users/sign_in
  2. Check the password field

Admin Mode Login

  1. Sign in as admin
  2. Navigate to http://gdk.test:3000/admin/session/new
  3. Check the password field

LDAP Login

LDAP Setup

To setup LDAP locally, add the following to your config/gitlab.yml file:

development:
  ldap:
    enabled: true
    servers:
      main:
        label: ldap
        host: 127.0.0.1
        port: 3890
        uid: 'uid'
        encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
        base: 'dc=example,dc=com'
        user_filter: ''
        group_base: 'ou=groups,dc=example,dc=com'
        admin_group: ''
  1. After updating config/gitlab.yml, restart gdk
  2. Navigate to http://gdk.test:3000/users/sign_in
  3. Select LDAP tab
  4. Check the password field

Crowd Login

Crowd Setup

To setup Crowd locally, add the following to your config/gitlab.yml file:

development:
  omniauth:
    providers:
    # Other providers here...

    - { name: 'crowd',
        args: {
          crowd_server_url: 'http://127.0.0.1:3890',
          application_name: 'Crowd',
          application_password: 'YOUR_APP_PASSWORD' } }
  1. After updating config/gitlab.yml, restart gdk
  2. Navigate to http://gdk.test:3000/users/sign_in
  3. Select Crowd tab
  4. Check the password field

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #411421

Merge request reports