mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.13`: - [[Discover] Fix customization flaky test (#180940)](https://github.com/elastic/kibana/pull/180940) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-04-16T20:09:08Z","message":"[Discover] Fix customization flaky test (#180940)\n\n- Closes https://github.com/elastic/kibana/issues/177401\r\n\r\n25x\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5695","sha":"d769242c37c5028b6156c53434b5c5a4641c85f0","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:DataDiscovery","backport:prev-minor","v8.14.0"],"title":"[Discover] Fix customization flaky test","number":180940,"url":"https://github.com/elastic/kibana/pull/180940","mergeCommit":{"message":"[Discover] Fix customization flaky test (#180940)\n\n- Closes https://github.com/elastic/kibana/issues/177401\r\n\r\n25x\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5695","sha":"d769242c37c5028b6156c53434b5c5a4641c85f0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/180940","number":180940,"mergeCommit":{"message":"[Discover] Fix customization flaky test (#180940)\n\n- Closes https://github.com/elastic/kibana/issues/177401\r\n\r\n25x\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5695","sha":"d769242c37c5028b6156c53434b5c5a4641c85f0"}}]}] BACKPORT--> Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
This commit is contained in:
parent
99ccbf71e4
commit
ad8cb2e3ed
2 changed files with 20 additions and 14 deletions
|
@ -20,6 +20,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
const testSubjects = getService('testSubjects');
|
||||
const browser = getService('browser');
|
||||
const dataGrid = getService('dataGrid');
|
||||
const retry = getService('retry');
|
||||
const defaultSettings = { defaultIndex: 'logstash-*' };
|
||||
|
||||
describe('Customizations', () => {
|
||||
|
@ -61,13 +62,15 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
await testSubjects.click('logsViewSelectorButton');
|
||||
await testSubjects.click('logsViewSelectorOption-ASavedSearch');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
await retry.try(async () => {
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
});
|
||||
});
|
||||
|
||||
it('Search bar Prepend Filters exists and should apply filter properly', async () => {
|
||||
|
|
|
@ -18,6 +18,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
const testSubjects = getService('testSubjects');
|
||||
const browser = getService('browser');
|
||||
const dataGrid = getService('dataGrid');
|
||||
const retry = getService('retry');
|
||||
const defaultSettings = { defaultIndex: 'logstash-*' };
|
||||
|
||||
describe('Customizations', () => {
|
||||
|
@ -60,13 +61,15 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
await testSubjects.click('logsViewSelectorButton');
|
||||
await testSubjects.click('logsViewSelectorOption-ASavedSearch');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
await retry.try(async () => {
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
});
|
||||
});
|
||||
|
||||
it('Search bar Prepend Filters exists and should apply filter properly', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue