-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '24_2' into 24_2_unskip_platforms_demo_tests
- Loading branch information
Showing
135 changed files
with
10,271 additions
and
6,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Use the following properties to customize the Chat component: | ||
|
||
- To display/hide Chat UI elements: | ||
- [showAvatar](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showAvatar) | ||
- [showUserName](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showUserName) | ||
- [showDayHeaders](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showDayHeaders) | ||
- [showMessageTimestamp](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showMessageTimestamp) | ||
|
||
- To modify date/time formats: | ||
- [dayHeaderFormat](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#dayHeaderFormat) | ||
- [messageTimestampFormat](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#messageTimestampFormat) | ||
|
||
- To deactivate Chat, use the [disabled](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#disabled) property. | ||
<!--split--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; | ||
import { Selector } from 'testcafe'; | ||
import { runManualTest } from '../../../utils/visual-tests/matrix-test-helper'; | ||
import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils'; | ||
|
||
fixture('Chat.Customization') | ||
.page('http://localhost:8080/') | ||
.before(async (ctx) => { | ||
ctx.initialWindowSize = [900, 800]; | ||
}); | ||
|
||
runManualTest('Chat', 'Customization', ['jQuery'], (test) => { | ||
test('Customization', async (t) => { | ||
const { takeScreenshot, compareResults } = createScreenshotsComparer(t); | ||
|
||
await t | ||
.click('#day-headers-format') | ||
.click(Selector('.dx-list-item').nth(2)) | ||
.wait(500); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_day_headers_format_is_changed.png'); | ||
|
||
await t | ||
.click('#show-day-headers'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_day_headers_is_hidden.png'); | ||
|
||
await t | ||
.click('#show-avatar'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_avatar_is_hidden.png'); | ||
|
||
await t | ||
.click('#show-avatar'); | ||
|
||
await t | ||
.click('#show-user-name'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_username_is_hidden.png'); | ||
|
||
await t | ||
.click('#show-user-name'); | ||
|
||
await t | ||
.click('#message-timestamp-format') | ||
.click(Selector('.dx-list-item').nth(5)) | ||
.wait(500); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_message_timestamp_format_is_changed.png'); | ||
|
||
await t | ||
.click('#show-message-timestamp'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_message_timestamps_is_hidden.png'); | ||
|
||
await t | ||
.typeText('.dx-texteditor-input', 'testing') | ||
.pressKey('enter') | ||
.click('#chat-disabled'); | ||
|
||
await testScreenshot(t, takeScreenshot, 'chat_customization_is_disabled_after_sent.png'); | ||
|
||
await t | ||
.expect(compareResults.isValid()) | ||
.ok(compareResults.errorMessages()); | ||
}); | ||
}); |
Binary file added
BIN
+80.5 KB
...idgets/chat/etalons/chat_customization_avatar_is_hidden (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87 KB
...gets/chat/etalons/chat_customization_avatar_is_hidden (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+77.9 KB
apps/demos/testing/widgets/chat/etalons/chat_customization_avatar_is_hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.8 KB
...talons/chat_customization_day_headers_format_is_changed (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+98.6 KB
...lons/chat_customization_day_headers_format_is_changed (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.4 KB
...sting/widgets/chat/etalons/chat_customization_day_headers_format_is_changed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.9 KB
...s/chat/etalons/chat_customization_day_headers_is_hidden (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.9 KB
...chat/etalons/chat_customization_day_headers_is_hidden (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.6 KB
...demos/testing/widgets/chat/etalons/chat_customization_day_headers_is_hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.8 KB
.../chat/etalons/chat_customization_is_disabled_after_sent (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.1 KB
...hat/etalons/chat_customization_is_disabled_after_sent (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78.3 KB
...emos/testing/widgets/chat/etalons/chat_customization_is_disabled_after_sent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.8 KB
.../chat_customization_message_timestamp_format_is_changed (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.9 KB
...hat_customization_message_timestamp_format_is_changed (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.7 KB
...widgets/chat/etalons/chat_customization_message_timestamp_format_is_changed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+82.7 KB
...etalons/chat_customization_message_timestamps_is_hidden (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.6 KB
...alons/chat_customization_message_timestamps_is_hidden (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+80.9 KB
...esting/widgets/chat/etalons/chat_customization_message_timestamps_is_hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+82.3 KB
...gets/chat/etalons/chat_customization_username_is_hidden (fluent.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88 KB
...ts/chat/etalons/chat_customization_username_is_hidden (material.blue.light).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.9 KB
apps/demos/testing/widgets/chat/etalons/chat_customization_username_is_hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.