diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-09 13:20:57 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-09 13:21:23 +0100 |
commit | dee047aaca8e668a195194163e2b8841bf5dc647 (patch) | |
tree | 6a91ea3a0b194cbebc1afe0ca6859dfe9c0adad4 /qa/qa/page/main | |
parent | df774fae4148fcb91380841c48514762d255affb (diff) | |
download | gitlab-ce-dee047aaca8e668a195194163e2b8841bf5dc647.tar.gz |
Add QA login page views / selectors definition
Diffstat (limited to 'qa/qa/page/main')
-rw-r--r-- | qa/qa/page/main/login.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qa/qa/page/main/login.rb b/qa/qa/page/main/login.rb index f88325f408b..7b4c1603017 100644 --- a/qa/qa/page/main/login.rb +++ b/qa/qa/page/main/login.rb @@ -2,6 +2,18 @@ module QA module Page module Main class Login < Page::Base + view 'app/views/devise/passwords/edit.html.haml' do + element :password_field, 'password_field :password' + element :password_confirmation, 'password_field :password_confirmation' + element :change_password_button, 'submit "Change your password"' + end + + view 'app/views/devise/sessions/_new_base.html.haml' do + element :login_field, 'text_field :login' + element :passowrd_field, 'password_field :password' + element :sign_in_button, 'submit "Sign in"' + end + def initialize wait('.application', time: 500) end |