mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Unskip and fix "Search source alert" tests (#148436)
Closes https://github.com/elastic/kibana/issues/148390 Closes https://github.com/elastic/kibana/issues/148391 Closes https://github.com/elastic/kibana/issues/148389 Closes https://github.com/elastic/kibana/issues/148388 Closes https://github.com/elastic/kibana/issues/148387 Closes https://github.com/elastic/kibana/issues/148386 Closes https://github.com/elastic/kibana/issues/148385 Closes https://github.com/elastic/kibana/issues/148370 Closes https://github.com/elastic/kibana/issues/148369 Closes https://github.com/elastic/kibana/issues/148368 Closes https://github.com/elastic/kibana/issues/148367 Closes https://github.com/elastic/kibana/issues/147958 100x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1709 (1 failed but in a different test file, so it's all green for Search source alert) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
5de62a95b8
commit
001ffad8e3
2 changed files with 12 additions and 12 deletions
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
|
@ -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
|
||||
|
|
|
@ -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}"]`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue