Skip to content

Commit

Permalink
update combobox test service to always open on open call
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsongl committed Jul 19, 2019
1 parent fab3996 commit 43074e6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/functional/services/combo_box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,8 @@ export function ComboBoxProvider({ getService, getPageObjects }: FtrProviderCont
* @param comboBoxElement
*/
public async openOptionsList(comboBoxElement: WebElementWrapper): Promise<void> {
const isOptionsListOpen = await testSubjects.exists('comboBoxOptionsList');
if (!isOptionsListOpen) {
const toggleBtn = await comboBoxElement.findByCssSelector(
'[data-test-subj="comboBoxToggleListButton"]'
);
await toggleBtn.click();
}
const toggleBtn = await comboBoxElement.findByCssSelector('[data-test-subj="comboBoxInput"]');
await toggleBtn.click();
}

/**
Expand Down

0 comments on commit 43074e6

Please sign in to comment.