@@ -46,7 +46,8 @@ import {
4646 expectLegendDisplayStyleToBeText ,
4747 expectLegendToBeEnabled ,
4848 expectSingleValueToBeColor ,
49- expectSingleValueToNotBeColor ,
49+ expectSingleValueToHaveBackgroundColor ,
50+ expectSingleValueToNotHaveBackgroundColor ,
5051 OPTIONS_TAB_LEGEND ,
5152 toggleLegendKeyOption ,
5253 expectLegendKeyOptionToBeEnabled ,
@@ -152,6 +153,7 @@ describe('Options - Legend', () => {
152153 describe ( 'Applying a legend: Single value' , ( ) => {
153154 const TEST_ITEM = TEST_ITEMS [ 0 ]
154155 const EXPECTED_STANDARD_TEXT_COLOR = '#212934'
156+ const EXPECTED_LEGEND_BACKGROUND_COLOR = 'rgb(255, 255, 178)'
155157 it ( 'navigates to the start page and adds data items' , ( ) => {
156158 goToStartPage ( )
157159 changeVisType ( visTypeDisplayNames [ VIS_TYPE_SINGLE_VALUE ] )
@@ -160,6 +162,9 @@ describe('Options - Legend', () => {
160162 clickDimensionModalUpdateButton ( )
161163 expectVisualizationToBeVisible ( VIS_TYPE_SINGLE_VALUE )
162164 expectSingleValueToBeColor ( EXPECTED_STANDARD_TEXT_COLOR )
165+ expectSingleValueToNotHaveBackgroundColor (
166+ EXPECTED_LEGEND_BACKGROUND_COLOR
167+ )
163168 } )
164169 it ( 'enables legend' , ( ) => {
165170 clickMenuBarOptionsButton ( )
@@ -171,7 +176,9 @@ describe('Options - Legend', () => {
171176 expectVisualizationToBeVisible ( VIS_TYPE_SINGLE_VALUE )
172177 } )
173178 it ( 'legend is applied' , ( ) => {
174- expectSingleValueToNotBeColor ( EXPECTED_STANDARD_TEXT_COLOR )
179+ expectSingleValueToHaveBackgroundColor (
180+ EXPECTED_LEGEND_BACKGROUND_COLOR
181+ )
175182 } )
176183 it ( 'legend key is hidden' , ( ) => {
177184 expectLegendKeyToBeHidden ( )
@@ -459,7 +466,7 @@ describe('Options - Legend', () => {
459466 } )
460467 } )
461468 describe ( 'Transferring a legend: Column -> Single value' , ( ) => {
462- const EXPECTED_STANDARD_TEXT_COLOR = '#212934 '
469+ const EXPECTED_LEGEND_BACKGROUND_COLOR = 'rgb(255, 255, 178) '
463470 it ( 'navigates to the start page and adds data items' , ( ) => {
464471 goToStartPage ( )
465472 openDimension ( DIMENSION_ID_DATA )
@@ -490,7 +497,9 @@ describe('Options - Legend', () => {
490497 expectVisualizationToBeVisible ( VIS_TYPE_SINGLE_VALUE )
491498 } )
492499 it ( 'legend is applied to Single value' , ( ) => {
493- expectSingleValueToNotBeColor ( EXPECTED_STANDARD_TEXT_COLOR )
500+ expectSingleValueToHaveBackgroundColor (
501+ EXPECTED_LEGEND_BACKGROUND_COLOR
502+ )
494503 } )
495504 it ( 'verifies that options are persisted' , ( ) => {
496505 clickMenuBarOptionsButton ( )
0 commit comments