[Search] unskip tests of example plugin (#119604)

This commit is contained in:
Anton Dosov 2021-11-25 10:16:32 +01:00 committed by GitHub
parent d2d5432c05
commit 8468061908
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View file

@ -299,6 +299,7 @@ export const SearchSessionsExampleApp = ({
setIndexPattern(id);
}}
isClearable={false}
data-test-subj="indexPatternSelector"
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
@ -313,6 +314,7 @@ export const SearchSessionsExampleApp = ({
setNumericFieldName(fld?.name);
}}
sortMatchesBy="startsWith"
data-test-subj="searchMetricField"
/>
</EuiFlexItem>
</EuiFlexGroup>

View file

@ -16,12 +16,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const comboBox = getService('comboBox');
const toasts = getService('toasts');
describe('Search session example', () => {
describe('Search example', () => {
const appId = 'searchExamples';
before(async function () {
await PageObjects.common.navigateToApp(appId, { insertTimestamp: false });
await comboBox.set('indexPatternSelector', 'logstash-*');
await comboBox.setCustom('indexPatternSelector', 'logstash-*');
await comboBox.set('searchBucketField', 'geo.src');
await comboBox.set('searchMetricField', 'memory');
await PageObjects.timePicker.setAbsoluteRange(

View file

@ -14,9 +14,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const log = getService('log');
const es = getService('es');
const searchSessions = getService('searchSessions');
const comboBox = getService('comboBox');
// FLAKY: https://github.com/elastic/kibana/issues/118921
describe.skip('Search session example', () => {
describe('Search session example', () => {
const appId = 'searchExamples';
before(async function () {
@ -36,6 +36,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
it('should start search, save session, restore session using "restore" button', async () => {
await comboBox.setCustom('indexPatternSelector', 'logstash-*');
await comboBox.setCustom('searchMetricField', 'bytes');
await testSubjects.clickWhenNotDisabled('startSearch');
await testSubjects.find('searchResults-1');
await searchSessions.expectState('completed');

View file

@ -27,13 +27,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
return text;
}
// FLAKY: https://github.com/elastic/kibana/issues/116537
describe.skip('Search session client side cache', () => {
describe('Search session client side cache', () => {
const appId = 'searchExamples';
before(async function () {
await PageObjects.common.navigateToApp(appId, { insertTimestamp: false });
await comboBox.set('indexPatternSelector', 'logstash-*');
await comboBox.setCustom('indexPatternSelector', 'logstash-*');
await comboBox.set('searchBucketField', 'extension.raw');
await comboBox.set('searchMetricField', 'phpmemory');
});