[TSVB] fix borealis colors check on test (#206484)

## Summary

Fix and unskip TSVB Functional test by using the right Borealis colors.

fix https://github.com/elastic/kibana/issues/206380

---------

Co-authored-by: nickofthyme <nicholas.partridge@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Marco Vettorello 2025-01-20 18:58:53 +01:00 committed by GitHub
parent 92a4462243
commit 25913693c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const browser = getService('browser');
const kibanaServer = getService('kibanaServer');
// Failing: See https://github.com/elastic/kibana/issues/206380
describe.skip('visual builder', function describeIndexTests() {
describe('visual builder', function describeIndexTests() {
before(async () => {
await security.testUser.setRoles([
'kibana_admin',
@ -309,7 +308,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
expect(areasCount).to.be(2);
expect(legendNames).to.eql(['apache', 'nginx']);
expect(areaColors).to.eql(['#54b399', '#6092c0']);
// We need to use OR condition here because of how visColors are set inconsistently
// See https://github.com/elastic/kibana/issues/206380
const [firstColor, secondColor] = areaColors!;
expect(['#16c5c0', '#54b399']).contain(firstColor); // first color in elastic palette
expect(['#a6edea', '#6092c0']).contain(secondColor); // second color in elastic palette
expect(areaColors).to.length(2);
expect(firstAreaChartData).to.eql(firstAreaExpectedChartData);
expect(secondAreaChartData).to.eql(secondAreaExpectedChartData);
});