Skip to content

Commit

Permalink
better fallback when scripted field tab isn't available - for functio…
Browse files Browse the repository at this point in the history
…nal test
  • Loading branch information
mattkime committed Sep 18, 2024
1 parent aa5130e commit b5dac4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/page_objects/settings_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,12 @@ export class SettingsPageObject extends FtrService {
}

async getScriptedFieldsTabCount() {
return await this.retry.try(async () => {
try {
const text = await this.testSubjects.getVisibleText('tab-scriptedFields');
return text.split(' ')[2].replace(/\((.*)\)/, '$1') || '0';
});
} catch (e) {
return '0';
}
}

async getRelationshipsTabCount() {
Expand Down

0 comments on commit b5dac4d

Please sign in to comment.