{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/11387","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/11387/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/11387/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/11387/events","html_url":"https://github.com/elastic/kibana/issues/11387","id":223823354,"number":11387,"title":"[Tests] Page refresh on retry logic causing tests to fail","user":{"login":"Stacey-Gammon","id":16563603,"avatar_url":"https://avatars0.githubusercontent.com/u/16563603?v=3","gravatar_id":"","url":"https://api.github.com/users/Stacey-Gammon","html_url":"https://github.com/Stacey-Gammon","followers_url":"https://api.github.com/users/Stacey-Gammon/followers","following_url":"https://api.github.com/users/Stacey-Gammon/following{/other_user}","gists_url":"https://api.github.com/users/Stacey-Gammon/gists{/gist_id}","starred_url":"https://api.github.com/users/Stacey-Gammon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stacey-Gammon/subscriptions","organizations_url":"https://api.github.com/users/Stacey-Gammon/orgs","repos_url":"https://api.github.com/users/Stacey-Gammon/repos","events_url":"https://api.github.com/users/Stacey-Gammon/events{/privacy}","received_events_url":"https://api.github.com/users/Stacey-Gammon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-24T13:39:07Z","updated_at":"2017-04-24T13:39:07Z","closed_at":null,"body":"When I run the selenium tests locally I sometimes see flashes of the fatal splash screen, followed by a page refresh.  Most often the test would continue without failing, but there is one spot where after the fatal splash screen, it won't recover.\r\n\r\nThat spot is here in dashboard_page.js, the `saveDashboard` function:\r\n```\r\n      // verify that green message at the top of the page.\r\n      // it's only there for about 5 seconds\r\n      await retry.try(() => {\r\n        log.debug('verify toast-message for saved dashboard');\r\n        return getRemote()\r\n          .findByCssSelector('kbn-truncated.toast-message.ng-isolate-scope')\r\n          .getVisibleText();\r\n      });\r\n```\r\n\r\nI suspect the issue is that if the retry logic catches an error, it refreshes the page which causes the toast message to go away, so then it never recovers.\r\n\r\n@archanid - do you know if there was any change to the retry logic?  I don't recall seeing the fatal notification screen, even when tests passed, prior to the big test refactor.  I think this may be an issue for spots that are testing temporary state.\r\n\r\nI'm wondering if it's related to https://github.com/elastic/kibana/issues/11339\r\n\r\n"}}
{"actor":{"display_login":"Stacey-Gammon"}}