@@ -3,8 +3,9 @@ import { DialAIEntityModel } from '@/chat/types/models';
33import { noSimpleModelSkipReason } from '@/src/core/baseFixtures' ;
44import dialTest from '@/src/core/dialFixtures' ;
55import { ExpectedConstants , ExpectedMessages , ThemeId } from '@/src/testData' ;
6- import { Colors } from '@/src/ui/domData' ;
6+ import { ThemeColorAttributes } from '@/src/ui/domData' ;
77import { GeneratorUtil , ModelsUtil } from '@/src/utils' ;
8+ import { ThemesUtil } from '@/src/utils/themesUtil' ;
89import { Locator , expect } from '@playwright/test' ;
910
1011const expectedChatMessageIndex = 2 ;
@@ -137,9 +138,10 @@ dialTest(
137138 ExpectedMessages . tableEntityBackgroundColorIsValid ,
138139 )
139140 . toBe (
140- theme === ThemeId . dark
141- ? Colors . backgroundLayer4Dark
142- : Colors . backgroundLayer4Light ,
141+ ThemesUtil . getRgbColorByKey (
142+ ThemeColorAttributes . bgLayer4 ,
143+ theme as ThemeId ,
144+ ) ,
143145 ) ;
144146
145147 const tableRowBackgroundColor =
@@ -152,9 +154,10 @@ dialTest(
152154 ExpectedMessages . tableEntityBackgroundColorIsValid ,
153155 )
154156 . toBe (
155- theme === ThemeId . dark
156- ? Colors . backgroundLayer3Dark
157- : Colors . backgroundLayer3Light ,
157+ ThemesUtil . getRgbColorByKey (
158+ ThemeColorAttributes . bgLayer3 ,
159+ theme as ThemeId ,
160+ ) ,
158161 ) ;
159162 } ,
160163 ) ;
0 commit comments