From ffb17a3b5492223a889825b5cecd14a3ee797e50 Mon Sep 17 00:00:00 2001 From: Sanad Liaquat Date: Wed, 16 Jan 2019 14:18:15 +0500 Subject: Use qa element with wait --- qa/qa/page/profile/personal_access_tokens.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qa/qa/page/profile') 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) -- cgit v1.2.1