Skip to content

Commit 248309a

Browse files
Alexander-KeziknartovmIlyaBondar
authored
fix(chat): fix mindmap crashing (Issue #5370) (#5375) (#5387)
Co-authored-by: Maksim Nartov <81012703+nartovm@users.noreply.github.com> Co-authored-by: Ilya Bondar <ilya_bondar@epam.com>
1 parent a2433bc commit 248309a

2 files changed

Lines changed: 880 additions & 830 deletions

File tree

apps/chat-e2e/src/tests/mdTableModelResponse.test.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { DialAIEntityModel } from '@/chat/types/models';
33
import { noSimpleModelSkipReason } from '@/src/core/baseFixtures';
44
import dialTest from '@/src/core/dialFixtures';
55
import { ExpectedConstants, ExpectedMessages, ThemeId } from '@/src/testData';
6-
import { Colors } from '@/src/ui/domData';
6+
import { ThemeColorAttributes } from '@/src/ui/domData';
77
import { GeneratorUtil, ModelsUtil } from '@/src/utils';
8+
import { ThemesUtil } from '@/src/utils/themesUtil';
89
import { Locator, expect } from '@playwright/test';
910

1011
const 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

Comments
 (0)