mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Unskip update data view test (#176508)
- Closes https://github.com/elastic/kibana/issues/174066 95x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5099 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
This commit is contained in:
parent
e93add06a4
commit
0f31c0bff3
2 changed files with 13 additions and 6 deletions
|
@ -20,8 +20,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const es = getService('es');
|
||||
const PageObjects = getPageObjects(['settings', 'common', 'header']);
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/174066
|
||||
describe.skip('creating and deleting default data view', function describeIndexTests() {
|
||||
describe('creating and deleting default data view', function describeIndexTests() {
|
||||
before(async function () {
|
||||
await esArchiver.emptyKibanaIndex();
|
||||
await esArchiver.loadIfNeeded(
|
||||
|
|
|
@ -215,14 +215,14 @@ export class SettingsPageObject extends FtrService {
|
|||
}
|
||||
|
||||
async getSaveDataViewButtonActive() {
|
||||
await this.retry.try(async () => {
|
||||
expect(
|
||||
await this.retry.waitFor('active save button', async () => {
|
||||
return (
|
||||
(
|
||||
await this.find.allByCssSelector(
|
||||
'[data-test-subj="saveIndexPatternButton"]:not(.euiButton-isDisabled)'
|
||||
)
|
||||
).length
|
||||
).to.be(1);
|
||||
).length === 1
|
||||
);
|
||||
});
|
||||
return await this.testSubjects.find('saveIndexPatternButton');
|
||||
}
|
||||
|
@ -615,7 +615,13 @@ export class SettingsPageObject extends FtrService {
|
|||
await this.clickEditIndexButton();
|
||||
await this.header.waitUntilLoadingHasFinished();
|
||||
|
||||
let hasSubmittedTheForm = false;
|
||||
|
||||
await this.retry.try(async () => {
|
||||
if (hasSubmittedTheForm && !(await this.testSubjects.exists('indexPatternEditorFlyout'))) {
|
||||
// the flyout got closed
|
||||
return;
|
||||
}
|
||||
if (dataViewName) {
|
||||
await this.setNameField(dataViewName);
|
||||
}
|
||||
|
@ -627,6 +633,8 @@ export class SettingsPageObject extends FtrService {
|
|||
const indexPatternSaveBtn = await this.getSaveIndexPatternButton();
|
||||
await indexPatternSaveBtn.click();
|
||||
|
||||
hasSubmittedTheForm = true;
|
||||
|
||||
const form = await this.testSubjects.findAll('indexPatternEditorForm');
|
||||
const hasValidationErrors =
|
||||
form.length !== 0 && (await form[0].getAttribute('data-validation-error')) === '1';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue