@@ -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 ( )
@@ -460,6 +467,7 @@ describe('Options - Legend', () => {
460467 } )
461468 describe ( 'Transferring a legend: Column -> Single value' , ( ) => {
462469 const EXPECTED_STANDARD_TEXT_COLOR = '#212934'
470+ const EXPECTED_LEGEND_BACKGROUND_COLOR = 'rgb(255, 255, 178)'
463471 it ( 'navigates to the start page and adds data items' , ( ) => {
464472 goToStartPage ( )
465473 openDimension ( DIMENSION_ID_DATA )
@@ -490,7 +498,9 @@ describe('Options - Legend', () => {
490498 expectVisualizationToBeVisible ( VIS_TYPE_SINGLE_VALUE )
491499 } )
492500 it ( 'legend is applied to Single value' , ( ) => {
493- expectSingleValueToNotBeColor ( EXPECTED_STANDARD_TEXT_COLOR )
501+ expectSingleValueToHaveBackgroundColor (
502+ EXPECTED_LEGEND_BACKGROUND_COLOR
503+ )
494504 } )
495505 it ( 'verifies that options are persisted' , ( ) => {
496506 clickMenuBarOptionsButton ( )
0 commit comments