Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data views] Fix create runtime field functional test on MKI #181101

Merged
merged 7 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions test/functional/page_objects/settings_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ export class SettingsPageObject extends FtrService {
) {
await this.clickAddField();
await this.setFieldName(name);
await this.setFieldTypeComposite();
await this.setFieldType('Composite');
await this.setCompositeScript(script);
if (subfieldCount > 0) {
await this.testSubjects.find(`typeField_${subfieldCount - 1}`);
Expand Down Expand Up @@ -874,14 +874,13 @@ export class SettingsPageObject extends FtrService {
}

async setFieldType(type: string) {
const typeFieldDataTestSubj = 'typeField';
this.log.debug('set type = ' + type);
await this.comboBox.set('typeField', type);
}

async setFieldTypeComposite() {
this.log.debug('set type = Composite');
await this.testSubjects.setValue('typeField', 'Composite');
await this.browser.pressKeys(this.browser.keys.RETURN);
await this.retry.try(async () => {
await this.comboBox.set(typeFieldDataTestSubj, type);
const comboBox = await this.testSubjects.find(typeFieldDataTestSubj);
expect(await this.comboBox.isOptionSelected(comboBox, type)).to.be(true);
});
}

async setFieldScript(script: string) {
Expand Down