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

Fix tryForTime logic in removeIndexPattern #7838

Closed
wants to merge 1 commit into from

Conversation

LeeDr
Copy link

@LeeDr LeeDr commented Jul 25, 2016

This is one part of [backport] PR #7598.

In this PR I've only changed the tryForTime logic in removeIndexPattern. Without this fix we sometimes get in the loop where we click the delete but miss the alert. Then we try to click the delete again but complain that there's an unexpected alert open.

14:17:07.040: tryForTime failure: [GET http://localhost:4444/wd/hub/session/220e6f2a10e9a3ca86a35ad97cf56482/alert_text] unknown error: cannot determine loading status
from unexpected alert open
  (Session info: chrome=51.0.2704.106)
  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-74-generic x86_64)
14:17:07.549: tryForTime failure: [POST http://localhost:4444/wd/hub/session/220e6f2a10e9a3ca86a35ad97cf56482/element / {"using":"css selector","value":"button.btn.btn-danger.ng-scope"}] unexpected alert open: {Alert text : Are you sure you want to remove this index pattern?}
  (Session info: chrome=51.0.2704.106)
  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-74-generic x86_64)
14:17:08.058: tryForTime failure: [POST http://localhost:4444/wd/hub/session/220e6f2a10e9a3ca86a35ad97cf56482/element / {"using":"css selector","value":"button.btn.btn-danger.ng-scope"}] unexpected alert open: {Alert text : Are you sure you want to remove this index pattern?}
  (Session info: chrome=51.0.2704.106)
  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-74-generic x86_64)
14:17:08.569: tryForTime failure: [POST http://localhost:4444/wd/hub/session/220e6f2a10e9a3ca86a35ad97cf56482/element / {"using":"css selector","value":"button.btn.btn-danger.ng-scope"}] unexpected alert open: {Alert text : Are you sure you want to remove this index pattern?}
  (Session info: chrome=51.0.2704.106)
  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-74-generic x86_64)
14:17:09.078: tryForTime failure: [POST http://localhost:4444/wd/hub/session/220e6f2a10e9a3ca86a35ad97cf56482/element / {"using":"css selector","value":"button.btn.btn-danger.ng-scope"}] unexpected alert open: {Alert text : Are you sure you want to remove this index pattern?}
  (Session info: chrome=51.0.2704.106)
  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-74-generic x86_64)

@LeeDr
Copy link
Author

LeeDr commented Jul 26, 2016

@Bargs please don't merge this. @ppisljar and I are debugging a failure in this area and we might need to change this PR.

@LeeDr LeeDr unassigned Bargs Jul 26, 2016
@LeeDr LeeDr removed the review label Jul 26, 2016
@Bargs
Copy link
Contributor

Bargs commented Jul 26, 2016

Good thing I procrastinated!

@epixa
Copy link
Contributor

epixa commented Aug 22, 2016

@LeeDr What's the status of this?

@LeeDr
Copy link
Author

LeeDr commented Aug 22, 2016

We resolved the immediate problem that was failing tests by updating the chromedriver version.

This logic in this change is slightly better than what's in the removeIndexPattern right now. But it would NOT have fixed the issue we were having. So I'm going to close this.

The problem with the previous chromedriver version was that clicking the delete button caused the alert to open and immediately fail on that. It was the click step itself that was throwing the exception. So we could have caught that exception, checked if it was because of the open alert, and handled it. But we don't need to now because we upgraded the chromedriver.

Closing.

@LeeDr LeeDr closed this Aug 22, 2016
@LeeDr LeeDr deleted the fixRemoveIndexPattern branch May 23, 2017 13:57
jbudz added a commit that referenced this pull request Jun 28, 2024
`v95.1.0`⏩`v95.2.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v95.2.0`](https://github.com/elastic/eui/releases/v95.2.0)

- Updated `EuiContextMenuItemIcon`'s type definition to explicitly
define support for `EuiIcon`'s `IconType`
([#7804](elastic/eui#7804))
- Updated `EuiSteps` to support a new `titleSize="xxs"` style, which
outputs the same title font size but smaller unnumbered step indicators
([#7813](elastic/eui#7813))
- Updated `EuiStepsHorizontal` to support a new `size="xs"` style, which
outputs smaller unnumbered step indicators
([#7813](elastic/eui#7813))
- Updated `EuiStepNumber` to support new `titleSize="none"` which omits
rendering step numbers, and will only render icons
([#7813](elastic/eui#7813))
- Updated `setEuiDevProviderWarning` to additionally accept a custom
callback function, which warning messages will be passed to
([#7820](elastic/eui#7820))
- Updated `EuiIcon` to feature updated `logoElasticStack` logo for
referencing Elastic Stack platform
([#7838](elastic/eui#7838))
- Updated `EuiIcon` to feature updated `casesApp` design.
([#7840](elastic/eui#7840))
- Updated `EuiComboBox` to no longer autocomplete searched text when
used within forms ([#7842](elastic/eui#7842))

**CSS-in-JS conversions**

- Converted `EuiFilePicker` to Emotion; Removed
`$euiFilePickerTallHeight`
([#7833](elastic/eui#7833))

---------

Co-authored-by: Jon <[email protected]>
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.

3 participants