mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
ebsure we always select the correct index (#88876)
At times we find the driver controlling the ComboBox in our UI tests can select the wrong item, this ensures we always select the correct index in the Connector tests.
This commit is contained in:
parent
d997f20708
commit
dfd96d62c4
1 changed files with 12 additions and 3 deletions
|
@ -17,8 +17,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
const comboBox = getService('comboBox');
|
||||
const supertest = getService('supertest');
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/88796
|
||||
describe.skip('Connectors', function () {
|
||||
describe('Connectors', function () {
|
||||
const objectRemover = new ObjectRemover(supertest);
|
||||
|
||||
before(async () => {
|
||||
|
@ -285,7 +284,17 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
|
||||
await testSubjects.setValue('nameInput', connectorName);
|
||||
|
||||
await comboBox.set('connectorIndexesComboBox', indexName);
|
||||
await retry.try(async () => {
|
||||
// At times we find the driver controlling the ComboBox in tests
|
||||
// can select the wrong item, this ensures we always select the correct index
|
||||
await comboBox.set('connectorIndexesComboBox', indexName);
|
||||
expect(
|
||||
await comboBox.isOptionSelected(
|
||||
await testSubjects.find('connectorIndexesComboBox'),
|
||||
indexName
|
||||
)
|
||||
).to.be(true);
|
||||
});
|
||||
|
||||
await find.clickByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)');
|
||||
await pageObjects.common.closeToast();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue