Skip to content

Enable JavaScript to test the new Vue Password component

The password field has been replaced by a Vue component in all the sign-in pages. We want the Vue component to be exercised when running the tests. In order to accomplish that, we should do the following three things:

  1. In the HAML, convert the password field to a dummy/placeholder input field (without name, QA or testid selector)
  2. Add the Vue component to the QA selector list: https://gitlab.com/gitlab-org/gitlab/-/blob/7a656bbe58c0cdb677ad2e572794c470745938cf/qa/qa/page/main/login.rb#L21 (apparently it is not needed)
  3. Enable JS in all the tests that check the sign-in pages.

The following discussion from !120137 (merged) should be addressed:

Edited by Eduardo Sanz García