diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-01-16 14:18:15 +0500 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-01-16 14:18:15 +0500 |
commit | ffb17a3b5492223a889825b5cecd14a3ee797e50 (patch) | |
tree | 81159d682573ee7da33675b8f28bc85a150d2122 /qa/qa/page/profile | |
parent | 88189d31669da6829ce425ae477908febf281ab4 (diff) | |
download | gitlab-ce-ffb17a3b5492223a889825b5cecd14a3ee797e50.tar.gz |
Use qa element with wait
Diffstat (limited to 'qa/qa/page/profile')
-rw-r--r-- | qa/qa/page/profile/personal_access_tokens.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qa/qa/page/profile/personal_access_tokens.rb b/qa/qa/page/profile/personal_access_tokens.rb index 5d27d801876..f4635ac94ab 100644 --- a/qa/qa/page/profile/personal_access_tokens.rb +++ b/qa/qa/page/profile/personal_access_tokens.rb @@ -9,9 +9,8 @@ module QA end view 'app/views/shared/_personal_access_tokens_created_container.html.haml' do - element :create_token_field, "text_field_tag 'created-personal-access-token'" # rubocop:disable QA/ElementWithPattern + element :created_personal_access_token end - view 'app/views/shared/_personal_access_tokens_table.html.haml' do element :revoke_button end @@ -29,7 +28,7 @@ module QA end def created_access_token - page.find('#created-personal-access-token').value + find_element(:created_personal_access_token, wait: 30).value end def has_token_row_for_name?(token_name) |