Transient failure: Unable to find visible css "#created-personal-access-token"

https://gitlab.com/gitlab-org/quality/staging/-/jobs/143796121

Plan Issue creation user creates an issue
     Failure/Error:
       Resource::Issue.fabricate! do |issue|
         issue.title = issue_title
       end
     
     Capybara::ElementNotFound:
       Unable to find visible css "#created-personal-access-token"
     # /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:314:in `block in synced_resolve'
     # /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/base.rb:85:in `synchronize'
     # /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:302:in `synced_resolve'
     # /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:37:in `find'
     # /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/session.rb:810:in `block (2 levels) in <class:Session>'
     # ./qa/page/profile/personal_access_tokens.rb:28:in `created_access_token'
     # ./qa/scenario/actable.rb:14:in `perform'
     # ./qa/resource/personal_access_token.rb:12:in `block in <class:PersonalAccessToken>'
     # ./qa/resource/base.rb:47:in `instance_exec'
     # ./qa/resource/base.rb:47:in `attribute_value'
     # ./qa/resource/base.rb:33:in `populate_attribute'
     # ./qa/resource/base.rb:146:in `block (2 levels) in attribute'`

Screenshot:

create_issue_spec.rb_2019-01-10-04-26-55.310

The screenshot shows a success message for personal access token being created but the "Your New Personal Access Token" field is missing. This is how it is supposed to be (from my local): Screenshot_2019-01-10_11.36.23

Since we use find for locating #created-personal-access-token, it must have waited the capybara default wait time before erroring out.

I could not reproduce this issue on my local.

Assignee Loading
Time tracking Loading