Julia Rechkunova 2023-01-09 14:19:01 +01:00 committed by GitHub
parent 5de62a95b8
commit 001ffad8e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

1
.github/CODEOWNERS vendored
View file

@ -13,6 +13,7 @@
/src/plugins/saved_search/ @elastic/kibana-data-discovery
/x-pack/plugins/discover_enhanced/ @elastic/kibana-data-discovery
/x-pack/test/functional/apps/discover/ @elastic/kibana-data-discovery
/x-pack/test/functional_with_es_ssl/apps/discover/ @elastic/kibana-data-discovery
/test/functional/apps/discover/ @elastic/kibana-data-discovery
/test/functional/apps/context/ @elastic/kibana-data-discovery
/test/api_integration/apis/unified_field_list/ @elastic/kibana-data-discovery

View file

@ -258,8 +258,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(await toasts.getToastCount()).to.be(0);
} else {
expect(await toasts.getToastCount()).to.be(1);
expect(await toasts.getToastContent(1)).to.equal(
`Displayed documents may vary\nThe displayed documents might differ from the documents that triggered the alert. Some documents might have been added or deleted.`
expect((await toasts.getToastContent(1)).startsWith('Displayed documents may vary')).to.be(
true
);
}
expect(await filterBar.getFilterCount()).to.be(0);
@ -306,16 +306,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(await titleElem.getVisibleText()).to.equal(dataView);
};
// Failing: See https://github.com/elastic/kibana/issues/148388
// Failing: See https://github.com/elastic/kibana/issues/148386
// Failing: https://github.com/elastic/kibana/issues/147958
// Failing: https://github.com/elastic/kibana/issues/148367
// Failing: https://github.com/elastic/kibana/issues/148385
// Failing: https://github.com/elastic/kibana/issues/148387
// Failing: https://github.com/elastic/kibana/issues/148389
// Failing: https://github.com/elastic/kibana/issues/148390
// Failing: https://github.com/elastic/kibana/issues/148391
describe.skip('Search source Alert', () => {
describe('Search source Alert', () => {
before(async () => {
await security.testUser.setRoles(['discover_alert']);
@ -372,6 +363,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await input.type('search-source-alert-o*');
await testSubjects.click('explore-matching-indices-button');
await retry.waitFor('selection to happen', async () => {
const dataViewSelector = await testSubjects.find('selectDataViewExpression');
return (await dataViewSelector.getVisibleText()) === 'DATA VIEW\nsearch-source-alert-o*';
});
await testSubjects.click('saveRuleButton');
const errorElem = await testSubjects.find('esQueryAlertExpressionError');
@ -382,6 +378,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should navigate to alert results via view in app link', async () => {
await testSubjects.click('selectDataViewExpression');
await testSubjects.click('indexPattern-switcher--input');
if (await testSubjects.exists('clearSearchButton')) {
await testSubjects.click('clearSearchButton');
}
const dataViewsElem = await testSubjects.find('euiSelectableList');
const sourceDataViewOption = await dataViewsElem.findByCssSelector(
`[title="${SOURCE_DATA_VIEW}"]`