summaryrefslogtreecommitdiff
path: root/app/views/layouts/devise.html.haml
diff options
context:
space:
mode:
authorddavison <ddavison@gitlab.com>2019-05-29 16:47:53 -0700
committerddavison <ddavison@gitlab.com>2019-07-10 16:09:43 -0700
commit390e0d8906c066996e8bbb14aa5824643f9798f8 (patch)
tree8b220d1d2e0770bc96cc958ce624043e1ae0885e /app/views/layouts/devise.html.haml
parent48fa47e07d54979b70704beb16ea55548f2190c4 (diff)
downloadgitlab-ce-390e0d8906c066996e8bbb14aa5824643f9798f8.tar.gz
Introduce data-qa-selector to supplant .qa-class
In order to break away from using CSS classes as our primary method of element identification, we need to provide the ability to search for data attributes. Make Test::Sanity::Selectors now work Utilize regex to match on literal strings of the element name Suggest the data-qa-selector pattern vs the qa- Add data-qa-selector to login page to start We need a page that is heavily used in order to be confident that this functionality works. Let's start with the Login page Use appropriate HAML data tag practices
Diffstat (limited to 'app/views/layouts/devise.html.haml')
-rw-r--r--app/views/layouts/devise.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/devise.html.haml b/app/views/layouts/devise.html.haml
index ff3410f6268..e9a4a068599 100644
--- a/app/views/layouts/devise.html.haml
+++ b/app/views/layouts/devise.html.haml
@@ -1,7 +1,7 @@
!!! 5
%html.devise-layout-html{ class: system_message_class }
= render "layouts/head"
- %body.ui-indigo.login-page.application.navless.qa-login-page{ data: { page: body_data_page } }
+ %body.ui-indigo.login-page.application.navless{ data: { page: body_data_page, qa_selector: 'login_page' } }
= header_message
.page-wrap
= render "layouts/header/empty"