mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.6`: - [fix for the skipped functional test `sync_colors.ts` (#146083)](https://github.com/elastic/kibana/pull/146083) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Rashmi Kulkarni","email":"rashmi.kulkarni@elastic.co"},"sourceCommit":{"committedDate":"2022-11-28T18:08:50Z","message":"fix for the skipped functional test `sync_colors.ts` (#146083)\n\ntrying to fix https://github.com/elastic/kibana/issues/97403\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"a270d75f36207567f340a63b3666f9229deb7a7f","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","v8.6.0","v8.7.0"],"number":146083,"url":"https://github.com/elastic/kibana/pull/146083","mergeCommit":{"message":"fix for the skipped functional test `sync_colors.ts` (#146083)\n\ntrying to fix https://github.com/elastic/kibana/issues/97403\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"a270d75f36207567f340a63b3666f9229deb7a7f"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146083","number":146083,"mergeCommit":{"message":"fix for the skipped functional test `sync_colors.ts` (#146083)\n\ntrying to fix https://github.com/elastic/kibana/issues/97403\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"a270d75f36207567f340a63b3666f9229deb7a7f"}}]}] BACKPORT--> Co-authored-by: Rashmi Kulkarni <rashmi.kulkarni@elastic.co>
This commit is contained in:
parent
d8a98e2d05
commit
d00d67ddd0
1 changed files with 6 additions and 3 deletions
|
@ -33,9 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
return colorMapping;
|
||||
}
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/97403
|
||||
describe.skip('sync colors', function () {
|
||||
describe('sync colors', function () {
|
||||
before(async function () {
|
||||
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
|
||||
await kibanaServer.importExport.load(
|
||||
|
@ -48,6 +46,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await kibanaServer.importExport.unload(
|
||||
'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json'
|
||||
);
|
||||
await kibanaServer.savedObjects.cleanStandardList();
|
||||
});
|
||||
|
||||
it('should sync colors on dashboard by default', async function () {
|
||||
|
@ -90,9 +89,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await filterBar.addFilter('geo.src', 'is not', 'CN');
|
||||
|
||||
await PageObjects.lens.save('vis2', false, true);
|
||||
await PageObjects.dashboard.useColorSync(true);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.dashboard.waitForRenderComplete();
|
||||
|
||||
const colorMapping1 = getColorMapping(await PageObjects.dashboard.getPanelChartDebugState(0));
|
||||
const colorMapping2 = getColorMapping(await PageObjects.dashboard.getPanelChartDebugState(1));
|
||||
|
||||
expect(Object.keys(colorMapping1)).to.have.length(6);
|
||||
expect(Object.keys(colorMapping1)).to.have.length(6);
|
||||
const panel1Keys = ['CN'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue