mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[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:
parent
92a4462243
commit
25913693c0
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue