Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Bringing cypress tests back (#109129) #109305

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

MadameSheema
Copy link
Member

Backports the following commits to 7.x:

* fixes threshold cypress tests

* add ticket command

* fixes threshold cypress tests

* add ticket command

* fixes 'Creates a new case with timeline and opens the timeline' test

* unskips navigation tests

* removes 'sets correct classes when the user starts dragging a host, but is not hovering over the data providers' test since we are not supporting drag and drop on timeline

* removes drag and drop related tests from 'data_providers.spec.ts'

* modifies todo on skipped exceptions tests to add more clarity

* fixes 'attach' to case and local storage test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@MadameSheema MadameSheema enabled auto-merge (squash) August 19, 2021 18:19
@MadameSheema
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/security/user_email·js.security app useremail login as new user and verify email

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: security app
[00:00:00]           └-> "before all" hook in "security app"
[00:07:04]           └-: useremail
[00:07:04]             └-> "before all" hook for "should add new user"
[00:07:04]             └-> "before all" hook for "should add new user"
[00:07:04]               │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/security/discover to /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/fixtures/kbn_archiver/security/discover.json
[00:07:04]               │ info importing 2 saved objects { space: undefined }
[00:07:05]               │ succ import success
[00:07:05]               │ debg navigating to settings url: http://localhost:6191/app/management
[00:07:05]               │ debg navigate to: http://localhost:6191/app/management
[00:07:05]               │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fmanagement%3F_t%3D1629451333173 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:05]               │
[00:07:05]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:05]               │ debg ... sleep(700) start
[00:07:06]               │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:07:06]               │ debg ... sleep(700) end
[00:07:06]               │ debg returned from get, calling refresh
[00:07:06]               │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fmanagement%3F_t%3D1629451333173 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:06]               │
[00:07:06]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:07]               │ debg currentUrl = http://localhost:6191/login?next=%2Fapp%2Fmanagement%3F_t%3D1629451333173
[00:07:07]               │          appUrl = http://localhost:6191/app/management
[00:07:07]               │ debg TestSubjects.find(kibanaChrome)
[00:07:07]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:07]               │ debg Found login page
[00:07:07]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:07:07]               │ debg TestSubjects.click(loginUsername)
[00:07:07]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:07:07]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:07:07]               │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:07:07]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:07:07]               │ debg TestSubjects.click(loginPassword)
[00:07:07]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:07:07]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:07:07]               │ debg TestSubjects.click(loginSubmit)
[00:07:07]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:07:07]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:07:07]               │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:07:07]               │ proc [kibana]   log   [09:22:16.068] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:07:08]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1629451333173 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:08]               │
[00:07:08]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:09]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:07:10]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1629451338226 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:10]               │
[00:07:10]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:11]               │ debg Finished login process currentUrl = http://localhost:6191/app/management
[00:07:11]               │ debg ... sleep(501) start
[00:07:11]               │ debg ... sleep(501) end
[00:07:11]               │ debg in navigateTo url = http://localhost:6191/app/management
[00:07:11]               │ debg navigating to settings url: http://localhost:6191/app/management
[00:07:11]               │ debg navigate to: http://localhost:6191/app/management
[00:07:12]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1629451339729 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:12]               │
[00:07:12]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:12]               │ debg ... sleep(700) start
[00:07:13]               │ debg ... sleep(700) end
[00:07:13]               │ debg returned from get, calling refresh
[00:07:13]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1629451339729 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:13]               │
[00:07:13]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:13]               │ debg currentUrl = http://localhost:6191/app/management
[00:07:13]               │          appUrl = http://localhost:6191/app/management
[00:07:13]               │ debg TestSubjects.find(kibanaChrome)
[00:07:13]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:14]               │ debg ... sleep(501) start
[00:07:15]               │ debg ... sleep(501) end
[00:07:15]               │ debg in navigateTo url = http://localhost:6191/app/management
[00:07:15]               │ debg TestSubjects.click(users)
[00:07:15]               │ debg Find.clickByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:07:15]               │ debg Find.findByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:07:15]             └-> should add new user
[00:07:15]               └-> "before each" hook: global before each for "should add new user"
[00:07:15]               │ debg navigating to settings url: http://localhost:6191/app/management
[00:07:15]               │ debg navigate to: http://localhost:6191/app/management
[00:07:15]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1629451343411 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:15]               │
[00:07:15]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:15]               │ debg ... sleep(700) start
[00:07:16]               │ debg ... sleep(700) end
[00:07:16]               │ debg returned from get, calling refresh
[00:07:17]               │ debg browser[INFO] http://localhost:6191/app/management?_t=1629451343411 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:17]               │
[00:07:17]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:17]               │ debg currentUrl = http://localhost:6191/app/management
[00:07:17]               │          appUrl = http://localhost:6191/app/management
[00:07:17]               │ debg TestSubjects.find(kibanaChrome)
[00:07:17]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:18]               │ debg ... sleep(501) start
[00:07:18]               │ debg ... sleep(501) end
[00:07:18]               │ debg in navigateTo url = http://localhost:6191/app/management
[00:07:18]               │ debg TestSubjects.click(users)
[00:07:18]               │ debg Find.clickByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:07:18]               │ debg Find.findByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:07:18]               │ debg TestSubjects.click(createUserButton)
[00:07:18]               │ debg Find.clickByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:07:18]               │ debg Find.findByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:07:18]               │ debg Find.setValue('[name=username]', 'newuser')
[00:07:18]               │ debg Find.findByCssSelector('[name=username]') with timeout=10000
[00:07:19]               │ debg Find.setValue('[name=password]', 'changeme')
[00:07:19]               │ debg Find.findByCssSelector('[name=password]') with timeout=10000
[00:07:19]               │ debg Find.setValue('[name=confirm_password]', 'changeme')
[00:07:19]               │ debg Find.findByCssSelector('[name=confirm_password]') with timeout=10000
[00:07:19]               │ debg Find.setValue('[name=full_name]', 'newuserFirst newuserLast')
[00:07:19]               │ debg Find.findByCssSelector('[name=full_name]') with timeout=10000
[00:07:20]               │ debg Find.setValue('[name=email]', 'newuser@myEmail.com')
[00:07:20]               │ debg Find.findByCssSelector('[name=email]') with timeout=10000
[00:07:20]               │ debg TestSubjects.find(rolesDropdown)
[00:07:20]               │ debg Find.findByCssSelector('[data-test-subj="rolesDropdown"]') with timeout=10000
[00:07:21]               │ debg Find.clickByCssSelector('[role=option][title="kibana_admin"]') with timeout=10000
[00:07:21]               │ debg Find.findByCssSelector('[role=option][title="kibana_admin"]') with timeout=10000
[00:07:21]               │ debg TestSubjects.click(comboBoxToggleListButton)
[00:07:21]               │ debg Find.clickByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:07:21]               │ debg Find.findByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:07:21]               │ debg TestSubjects.find(rolesDropdown)
[00:07:21]               │ debg Find.findByCssSelector('[data-test-subj="rolesDropdown"]') with timeout=10000
[00:07:21]               │ debg Find.clickByCssSelector('[role=option][title="superuser"]') with timeout=10000
[00:07:21]               │ debg Find.findByCssSelector('[role=option][title="superuser"]') with timeout=10000
[00:07:21]               │ debg TestSubjects.click(comboBoxToggleListButton)
[00:07:21]               │ debg Find.clickByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:07:21]               │ debg Find.findByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:07:21]               │ debg Find.clickByButtonText('Create user') with timeout=10000
[00:07:21]               │ debg Find.byButtonText('Create user') with timeout=10000
[00:07:22]               │ debg TestSubjects.click(tablePaginationPopoverButton)
[00:07:22]               │ debg Find.clickByCssSelector('[data-test-subj="tablePaginationPopoverButton"]') with timeout=10000
[00:07:22]               │ debg Find.findByCssSelector('[data-test-subj="tablePaginationPopoverButton"]') with timeout=10000
[00:07:22]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [newuser]
[00:07:22]               │ debg TestSubjects.click(tablePagination-100-rows)
[00:07:22]               │ debg Find.clickByCssSelector('[data-test-subj="tablePagination-100-rows"]') with timeout=10000
[00:07:22]               │ debg Find.findByCssSelector('[data-test-subj="tablePagination-100-rows"]') with timeout=10000
[00:07:22]               │ debg TestSubjects.findAll(userRow)
[00:07:22]               │ debg Find.allByCssSelector('[data-test-subj="userRow"]') with timeout=10000
[00:07:25]               │ debg actualUsers = {"Rashmi":{"username":"Rashmi","fullname":"RashmiFirst RashmiLast","email":"rashmi@myEmail.com","roles":["logstash_reader"],"reserved":false,"deprecated":false},"apm_system":{"username":"apm_system","fullname":"","email":"","roles":["apm_system"],"reserved":true,"deprecated":false},"beats_system":{"username":"beats_system","fullname":"","email":"","roles":["beats_system"],"reserved":true,"deprecated":false},"customer1":{"username":"customer1","fullname":"customer one","email":"flstest@elastic.com","roles":["kibana_admin","a_viewssnrole"],"reserved":false,"deprecated":false},"customer2":{"username":"customer2","fullname":"customer two","email":"flstest@elastic.com","roles":["kibana_admin","a_view_no_ssn_role"],"reserved":false,"deprecated":false},"elastic":{"username":"elastic","fullname":"","email":"","roles":["superuser"],"reserved":true,"deprecated":false},"kibana":{"username":"kibana","fullname":"","email":"","roles":["kibana_system"],"reserved":true,"deprecated":true},"kibana_system":{"username":"kibana_system","fullname":"","email":"","roles":["kibana_system"],"reserved":true,"deprecated":false},"logstash_system":{"username":"logstash_system","fullname":"","email":"","roles":["logstash_system"],"reserved":true,"deprecated":false},"new-user":{"username":"new-user","fullname":"Full User Name","email":"example@example.com","roles":[""],"reserved":false,"deprecated":false},"newuser":{"username":"newuser","fullname":"newuserFirst newuserLast","email":"newuser@myEmail.com","roles":["kibana_admin","superuser"],"reserved":false,"deprecated":false},"remote_monitoring_user":{"username":"remote_monitoring_user","fullname":"","email":"","roles":["remote_monitoring_collector","remote_monitoring_agent"],"reserved":true,"deprecated":false},"test_user":{"username":"test_user","fullname":"test user","email":"","roles":["superuser"],"reserved":false,"deprecated":false},"userEast":{"username":"userEast","fullname":"dls EAST","email":"dlstest@elastic.com","roles":["kibana_admin","myroleEast"],"reserved":false,"deprecated":false}}
[00:07:25]               │ debg SecurityPage.forceLogout
[00:07:25]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:07:25]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:07:26]               │ debg Redirecting to /logout to force the logout
[00:07:26]               │ debg Waiting on the login form to appear
[00:07:26]               │ debg Waiting for Login Page to appear.
[00:07:26]               │ debg Waiting up to 100000ms for login page...
[00:07:26]               │ debg browser[INFO] http://localhost:6191/logout?_t=1629451354435 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:26]               │
[00:07:26]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:26]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:07:29]               │ERROR browser[SEVERE] http://localhost:6191/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:07:29]               │ debg browser[INFO] http://localhost:6191/43684/bundles/core/core.entry.js 12:157382 "Detected an unhandled Promise rejection.
[00:07:29]               │      Error: Unauthorized"
[00:07:29]               │ERROR browser[SEVERE] http://localhost:6191/43684/bundles/core/core.entry.js 5:2474 
[00:07:29]               │ debg browser[INFO] http://localhost:6191/login?msg=LOGGED_OUT 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:29]               │
[00:07:29]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:29]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:07:30]               │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:07:30]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:07:30]               └- ✓ pass  (15.7s) "security app useremail should add new user"
[00:07:30]             └-> login as new user and verify email
[00:07:30]               └-> "before each" hook: global before each for "login as new user and verify email"
[00:07:30]               │ debg TestSubjects.exists(loginForm)
[00:07:30]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:07:30]               │ debg Waiting for Login Form to appear.
[00:07:30]               │ debg Waiting up to 100000ms for login form...
[00:07:30]               │ debg TestSubjects.exists(loginForm)
[00:07:30]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:07:31]               │ debg TestSubjects.setValue(loginUsername, newuser)
[00:07:31]               │ debg TestSubjects.click(loginUsername)
[00:07:31]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:07:31]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:07:31]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:07:31]               │ debg TestSubjects.click(loginPassword)
[00:07:31]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:07:31]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:07:31]               │ debg TestSubjects.click(loginSubmit)
[00:07:31]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:07:31]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:07:31]               │ debg Waiting for login result, expected: undefined.
[00:07:31]               │ debg Waiting up to 20000ms for logout button visible...
[00:07:31]               │ debg TestSubjects.exists(userMenuButton)
[00:07:31]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:07:31]               │ proc [kibana]   log   [09:22:39.762] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:07:34]               │ debg browser[INFO] http://localhost:6191/app/home 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:34]               │
[00:07:34]               │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:34]               │ERROR browser[SEVERE] http://localhost:6191/internal/security/me - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:07:34]               │ debg browser[INFO] http://localhost:6191/43684/bundles/core/core.entry.js 12:157382 "Detected an unhandled Promise rejection.
[00:07:34]               │      TypeError: Failed to fetch"
[00:07:34]               │ERROR browser[SEVERE] http://localhost:6191/43684/bundles/core/core.entry.js 5:2474 
[00:07:34]               │ debg TestSubjects.exists(userMenu)
[00:07:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:07:36]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:07:37]               │ debg TestSubjects.click(userMenuButton)
[00:07:37]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:07:37]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:07:37]               │ debg TestSubjects.exists(userMenu)
[00:07:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:07:40]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:07:43]               │ debg --- retry.tryForTime failed again with the same message...
[00:07:46]               │ debg --- retry.tryForTime failed again with the same message...
[00:07:49]               │ debg --- retry.tryForTime failed again with the same message...
[00:07:52]               │ debg --- retry.tryForTime failed again with the same message...
[00:07:55]               │ debg --- retry.tryForTime failed again with the same message...
[00:07:58]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:01]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:04]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:07]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:10]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:13]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:16]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:19]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:22]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:25]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:28]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:31]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:34]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:37]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:40]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:43]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:46]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:49]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:52]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:55]               │ debg --- retry.tryForTime failed again with the same message...
[00:08:59]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:02]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:05]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:08]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:11]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:14]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:17]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:20]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:23]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:26]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:29]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:32]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:35]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:38]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:39]               │ debg --- retry.try error: expected testSubject(userMenu) to exist
[00:09:39]               │ debg --- retry.waitFor error: retry.try timeout: Error: expected testSubject(userMenu) to exist
[00:09:39]               │          at TestSubjects.existOrFail (/dev/shm/workspace/parallel/9/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:09:39]               │          at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:48:9
[00:09:39]               │          at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:39]               │          at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:39]               │          at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
[00:09:39]               │          at UserMenu._ensureMenuOpen (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:46:7)
[00:09:39]               │          at UserMenu.logoutLinkExists (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:28:7)
[00:09:39]               │          at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:09:39]               │          at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:39]               │          at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:39]               │          at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:09:39]               │          at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
[00:09:39]               │          at SecurityPageObject.login (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:247:5)
[00:09:39]               │          at Context.<anonymous> (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/apps/security/user_email.js:44:7)
[00:09:39]               │          at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:09:40]               │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/security app useremail login as new user and verify email.png"
[00:09:40]               │ info Current URL is: http://localhost:6191/app/home#/
[00:09:40]               │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/security app useremail login as new user and verify email.html
[00:09:40]               └- ✖ fail: security app useremail login as new user and verify email
[00:09:40]               │      timed out waiting for logout button visible -- last error: Error: retry.try timeout: Error: expected testSubject(userMenu) to exist
[00:09:40]               │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/9/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:09:40]               │     at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:48:9
[00:09:40]               │     at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:40]               │     at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:40]               │     at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
[00:09:40]               │     at UserMenu._ensureMenuOpen (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:46:7)
[00:09:40]               │     at UserMenu.logoutLinkExists (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:28:7)
[00:09:40]               │     at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:09:40]               │     at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:40]               │     at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:40]               │     at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:09:40]               │     at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
[00:09:40]               │     at SecurityPageObject.login (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:247:5)
[00:09:40]               │     at Context.<anonymous> (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/apps/security/user_email.js:44:7)
[00:09:40]               │     at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:09:40]               │     at onFailure (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:09:40]               │     at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:09:40]               │     at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
[00:09:40]               │     at UserMenu._ensureMenuOpen (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:46:7)
[00:09:40]               │     at UserMenu.logoutLinkExists (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:28:7)
[00:09:40]               │     at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:09:40]               │     at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:40]               │     at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:40]               │     at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:09:40]               │     at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
[00:09:40]               │     at SecurityPageObject.login (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:247:5)
[00:09:40]               │     at Context.<anonymous> (/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/apps/security/user_email.js:44:7)
[00:09:40]               │     at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:09:40]               │   Error: timed out waiting for logout button visible -- last error: Error: retry.try timeout: Error: expected testSubject(userMenu) to exist
[00:09:40]               │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/9/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:09:40]               │       at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:48:9
[00:09:40]               │       at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:40]               │       at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:40]               │       at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
[00:09:40]               │       at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
[00:09:40]               │       at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
[00:09:40]               │       at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:09:40]               │       at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:40]               │       at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:40]               │       at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:09:40]               │       at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
[00:09:40]               │       at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
[00:09:40]               │       at Context.<anonymous> (test/functional/apps/security/user_email.js:44:7)
[00:09:40]               │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:09:40]               │       at onFailure (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:09:40]               │       at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:09:40]               │       at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
[00:09:40]               │       at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
[00:09:40]               │       at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
[00:09:40]               │       at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:09:40]               │       at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:09:40]               │       at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:09:40]               │       at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:09:40]               │       at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
[00:09:40]               │       at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
[00:09:40]               │       at Context.<anonymous> (test/functional/apps/security/user_email.js:44:7)
[00:09:40]               │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:09:40]               │       at onFailure (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
[00:09:40]               │       at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:09:40]               │       at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:09:40]               │       at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
[00:09:40]               │       at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
[00:09:40]               │       at Context.<anonymous> (test/functional/apps/security/user_email.js:44:7)
[00:09:40]               │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:09:40]               │ 
[00:09:40]               │ 

Stack Trace

Error: timed out waiting for logout button visible -- last error: Error: retry.try timeout: Error: expected testSubject(userMenu) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/9/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/services/user_menu.js:48:9
    at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
    at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
    at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
    at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
    at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
    at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
    at Context.<anonymous> (test/functional/apps/security/user_email.js:44:7)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:31:12)
    at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
    at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
    at /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
    at runAttempt (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
    at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
    at Context.<anonymous> (test/functional/apps/security/user_email.js:44:7)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
    at retryForSuccess (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at retryForTruthy (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/9/kibana/test/common/services/retry/retry.ts:59:5)
    at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
    at Context.<anonymous> (test/functional/apps/security/user_email.js:44:7)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@MadameSheema MadameSheema merged commit 786b603 into elastic:7.x Aug 20, 2021
@MadameSheema MadameSheema deleted the backport/7.x/pr-109129 branch October 6, 2021 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants