Skip to content

Commit

Permalink
try clicking option instead of pressing enter to set react-select val…
Browse files Browse the repository at this point in the history
…ue in functional tests
  • Loading branch information
nreese committed Aug 31, 2017
1 parent 10fec13 commit db38dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core_plugins/kibana/public/dashboard/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ dashboard-grid {
}

.gs-w {
z-index: auto !important;
z-index: auto;
}
}

Expand Down
3 changes: 1 addition & 2 deletions test/functional/page_objects/visualize_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ export function VisualizePageProvider({ getService, getPageObjects }) {
const input = await find.byCssSelector(className + ' * input', 0);
await input.clearValue();
await input.type(value);
await PageObjects.common.sleep(100); //pause needed so 'return' key press registers correctly
await remote.pressKeys('\uE007');
await find.clickByCssSelector('.Select-option');
const stillOpen = await find.existsByCssSelector('.Select-menu-outer', 0);
if (stillOpen) {
await find.clickByCssSelector(className + ' * .Select-arrow-zone');
Expand Down

0 comments on commit db38dc0

Please sign in to comment.