mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[data view mgmt] fix flaky scripted fields test (#126992)
* more debugging * more debugging * more debugging * add a couple of retries * no reason to reset filter * Update tabs.tsx * Update _scripted_fields_filter.ts
This commit is contained in:
parent
bde1ba53dc
commit
9c360f537b
2 changed files with 9 additions and 7 deletions
|
@ -17,8 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const esArchiver = getService('esArchiver');
|
||||
const PageObjects = getPageObjects(['settings']);
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/126027
|
||||
describe.skip('filter scripted fields', function describeIndexTests() {
|
||||
describe('filter scripted fields', function describeIndexTests() {
|
||||
before(async function () {
|
||||
// delete .kibana index and then wait for Kibana to re-create it
|
||||
await browser.setWindowSize(1200, 800);
|
||||
|
@ -80,7 +79,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
expect(lang).to.be('expression');
|
||||
}
|
||||
});
|
||||
await PageObjects.settings.clearScriptedFieldLanguageFilter('expression');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -295,10 +295,14 @@ export class SettingsPageObject extends FtrService {
|
|||
|
||||
async clearScriptedFieldLanguageFilter(type: string) {
|
||||
await this.testSubjects.clickWhenNotDisabled('scriptedFieldLanguageFilterDropdown');
|
||||
await this.testSubjects.existOrFail('scriptedFieldLanguageFilterDropdown-popover');
|
||||
await this.testSubjects.existOrFail(
|
||||
`scriptedFieldLanguageFilterDropdown-option-${type}-checked`
|
||||
);
|
||||
await this.retry.try(async () => {
|
||||
await this.testSubjects.existOrFail('scriptedFieldLanguageFilterDropdown-popover');
|
||||
});
|
||||
await this.retry.try(async () => {
|
||||
await this.testSubjects.existOrFail(
|
||||
`scriptedFieldLanguageFilterDropdown-option-${type}-checked`
|
||||
);
|
||||
});
|
||||
await this.testSubjects.click(`scriptedFieldLanguageFilterDropdown-option-${type}-checked`);
|
||||
await this.testSubjects.existOrFail(`scriptedFieldLanguageFilterDropdown-option-${type}`);
|
||||
await this.browser.pressKeys(this.browser.keys.ESCAPE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue