Flaky spec: User visits the profile preferences page User changes their default dashboard creates a flash message

Failures:

  1) User visits the profile preferences page User changes their default dashboard creates a flash message
     Failure/Error: execute_script("$('#{selector}').select2('val', '#{value}').trigger('change');")

     Selenium::WebDriver::Error::JavascriptError:
       javascript error: $(...).select2 is not a function
         (Session info: headless chrome=73.0.3683.103)
         (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Linux 4.19.23-coreos-r1 x86_64)

https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/279164679

Assignee Loading
Time tracking Loading