Skip to content

Commit 3dc8d13

Browse files
Chat: rename option errors to alerts (#28270)
1 parent 3cb60da commit 3dc8d13

File tree

78 files changed

+308
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+308
-308
lines changed

apps/react-storybook/stories/chat/Chat.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const Overview: Story = {
3636
args: {
3737
items: initialMessages,
3838
user: firstAuthor,
39-
errors: [],
39+
alerts: [],
4040
...commonArgs,
4141
},
4242
argTypes: {
@@ -52,7 +52,7 @@ export const Overview: Story = {
5252
hint: {
5353
control: 'text',
5454
},
55-
errors: {
55+
alerts: {
5656
control: 'select',
5757
options: ['None', 'One error', 'One error with long text', 'Three errors'],
5858
mapping: {
@@ -77,7 +77,7 @@ export const Overview: Story = {
7777
rtlEnabled,
7878
user,
7979
items,
80-
errors,
80+
alerts,
8181
visible,
8282
hint,
8383
activeStateEnabled,
@@ -105,7 +105,7 @@ export const Overview: Story = {
105105
disabled={disabled}
106106
rtlEnabled={rtlEnabled}
107107
user={user}
108-
errors={errors}
108+
alerts={alerts}
109109
onMessageEntered={onMessageEntered}
110110
visible={visible}
111111
hint={hint}

e2e/testcafe-devextreme/tests/chat/errorList.ts renamed to e2e/testcafe-devextreme/tests/chat/alertList.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ import url from '../../helpers/getPageUrl';
66
import { createWidget } from '../../helpers/createWidget';
77
import { getFullThemeName, testScreenshot } from '../../helpers/themeUtils';
88

9-
fixture.disablePageReloads`ChatErrorList`
9+
fixture.disablePageReloads`ChatAlertList`
1010
.page(url(__dirname, '../container.html'));
1111

1212
test.clientScripts([
1313
{ module: 'mockdate' },
1414
{ content: 'window.MockDate = MockDate;' },
15-
])('Errorlist appearance', async (t) => {
15+
])('Alertlist appearance', async (t) => {
1616
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1717
const chat = new Chat('#container');
1818

19-
await testScreenshot(t, takeScreenshot, 'Errorlist with one error.png', { element: '#container' });
19+
await testScreenshot(t, takeScreenshot, 'Alertlist with one error.png', { element: '#container' });
2020

21-
await chat.option('errors', [
21+
await chat.option('alerts', [
2222
{ id: 1, message: 'Error Message 1. Error Description...' },
2323
{ id: 2, message: 'Error Message 2. Message was not sent' },
2424
{ id: 3, message: 'Error Message 3. An unexpected issue occurred while processing your request. Please check your internet connection or contact support for further assistance.' },
2525
]);
2626

27-
await testScreenshot(t, takeScreenshot, 'Errorlist with long text in error.png', {
27+
await testScreenshot(t, takeScreenshot, 'Alertlist with long text in error.png', {
2828
element: '#container',
2929
shouldTestInCompact: true,
3030
compactCallBack: async () => {
@@ -33,7 +33,7 @@ test.clientScripts([
3333
});
3434

3535
const darkTheme = getFullThemeName().replace('light', 'dark');
36-
await testScreenshot(t, takeScreenshot, 'Errorlist with long text in error.png', {
36+
await testScreenshot(t, takeScreenshot, 'Alertlist with long text in error.png', {
3737
element: '#container',
3838
theme: darkTheme,
3939
themeChanged: async () => {
@@ -43,7 +43,7 @@ test.clientScripts([
4343

4444
await chat.option('rtlEnabled', true);
4545

46-
await testScreenshot(t, takeScreenshot, 'Errorlist appearance in RTL mode.png', { element: '#container' });
46+
await testScreenshot(t, takeScreenshot, 'Alertlist appearance in RTL mode.png', { element: '#container' });
4747

4848
await t
4949
.expect(compareResults.isValid())
@@ -86,7 +86,7 @@ test.clientScripts([
8686
user: userFirst,
8787
width: 400,
8888
height: 600,
89-
errors: [{ id: 1, message: 'Error Message 1. Error Description...' }],
89+
alerts: [{ id: 1, message: 'Error Message 1. Error Description...' }],
9090
});
9191
}).after(async () => {
9292
await ClientFunction(() => {

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist appearance in RTL mode (fluent-blue-light).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist appearance in RTL mode (fluent-blue-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist appearance in RTL mode (generic-light).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist appearance in RTL mode (generic-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist appearance in RTL mode (material-blue-light).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist appearance in RTL mode (material-blue-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist with long text in error (fluent-blue-dark).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist with long text in error (fluent-blue-dark).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist with long text in error (fluent-blue-light).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist with long text in error (fluent-blue-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist with long text in error (fluent-blue-light-compact).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist with long text in error (fluent-blue-light-compact).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist with long text in error (generic-dark).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist with long text in error (generic-dark).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Errorlist with long text in error (generic-light).png renamed to e2e/testcafe-devextreme/tests/chat/etalons/Alertlist with long text in error (generic-light).png

File renamed without changes.

0 commit comments

Comments
 (0)