2022-01-27 08:55:08 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<ExportDialog /> renders export dialog 1`] = `
|
2023-03-06 12:13:17 +00:00
|
|
|
<div
|
|
|
|
aria-describedby="mx_Dialog_content"
|
|
|
|
aria-labelledby="mx_BaseDialog_title"
|
|
|
|
class="mx_ExportDialog false mx_Dialog_fixedWidth"
|
|
|
|
data-focus-lock-disabled="false"
|
|
|
|
role="dialog"
|
|
|
|
>
|
|
|
|
<div
|
2024-03-13 13:38:32 +00:00
|
|
|
class="mx_Dialog_header"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2024-02-16 14:23:33 +00:00
|
|
|
<h1
|
2023-07-04 16:54:28 +00:00
|
|
|
class="mx_Heading_h3 mx_Dialog_title"
|
2023-03-06 12:13:17 +00:00
|
|
|
id="mx_BaseDialog_title"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
Export Chat
|
2024-02-16 14:23:33 +00:00
|
|
|
</h1>
|
2023-03-06 12:13:17 +00:00
|
|
|
</div>
|
2024-03-13 13:38:32 +00:00
|
|
|
<div
|
|
|
|
aria-label="Close dialog"
|
|
|
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2023-03-06 12:13:17 +00:00
|
|
|
<p>
|
|
|
|
Select from the options below to export chats from your timeline
|
|
|
|
</p>
|
|
|
|
<div
|
|
|
|
class="mx_ExportDialog_options"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<span
|
|
|
|
class="mx_ExportDialog_subheading"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
Format
|
|
|
|
</span>
|
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
id="exportFormat-Html"
|
|
|
|
name="exportFormat"
|
|
|
|
type="radio"
|
|
|
|
value="Html"
|
2022-01-27 08:55:08 +00:00
|
|
|
/>
|
2023-03-06 12:13:17 +00:00
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
2022-01-27 08:55:08 +00:00
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_StyledRadioButton_content"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
HTML
|
2022-01-27 08:55:08 +00:00
|
|
|
</div>
|
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_StyledRadioButton_spacer"
|
2022-01-27 08:55:08 +00:00
|
|
|
/>
|
2023-03-06 12:13:17 +00:00
|
|
|
</label>
|
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<input
|
|
|
|
id="exportFormat-PlainText"
|
|
|
|
name="exportFormat"
|
|
|
|
type="radio"
|
|
|
|
value="PlainText"
|
2022-01-27 08:55:08 +00:00
|
|
|
/>
|
2023-03-06 12:13:17 +00:00
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
2022-01-27 08:55:08 +00:00
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_StyledRadioButton_content"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
Plain Text
|
2022-01-27 08:55:08 +00:00
|
|
|
</div>
|
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
id="exportFormat-Json"
|
|
|
|
name="exportFormat"
|
|
|
|
type="radio"
|
|
|
|
value="Json"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
2022-01-27 08:55:08 +00:00
|
|
|
</div>
|
2023-03-06 12:13:17 +00:00
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
JSON
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<span
|
|
|
|
class="mx_ExportDialog_subheading"
|
|
|
|
>
|
|
|
|
Messages
|
|
|
|
</span>
|
2022-01-27 08:55:08 +00:00
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_Field mx_Field_select"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<select
|
|
|
|
id="export-type"
|
|
|
|
type="text"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<option
|
|
|
|
value="Timeline"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
Current Timeline
|
|
|
|
</option>
|
|
|
|
<option
|
|
|
|
value="Beginning"
|
|
|
|
>
|
|
|
|
From the beginning
|
|
|
|
</option>
|
|
|
|
<option
|
|
|
|
value="LastNMessages"
|
|
|
|
>
|
|
|
|
Specify a number of messages
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<label
|
|
|
|
for="export-type"
|
|
|
|
/>
|
2022-01-27 08:55:08 +00:00
|
|
|
</div>
|
2023-03-06 12:13:17 +00:00
|
|
|
<span
|
|
|
|
class="mx_ExportDialog_subheading"
|
|
|
|
>
|
|
|
|
Size Limit
|
|
|
|
</span>
|
2022-01-27 08:55:08 +00:00
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_Field mx_Field_input"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<input
|
|
|
|
autocomplete="off"
|
|
|
|
id="size-limit"
|
|
|
|
type="number"
|
|
|
|
value="8"
|
|
|
|
/>
|
|
|
|
<label
|
|
|
|
for="size-limit"
|
|
|
|
/>
|
2022-01-31 11:54:14 +00:00
|
|
|
<span
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_Field_postfix"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<span>
|
|
|
|
MB
|
|
|
|
</span>
|
2022-01-27 08:55:08 +00:00
|
|
|
</span>
|
2023-03-06 12:13:17 +00:00
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
id="include-attachments"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<label
|
|
|
|
for="include-attachments"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-03-06 12:13:17 +00:00
|
|
|
class="mx_Checkbox_background"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
2022-01-27 08:55:08 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2023-03-06 12:13:17 +00:00
|
|
|
<div>
|
|
|
|
Include Attachments
|
2022-01-27 08:55:08 +00:00
|
|
|
</div>
|
2023-03-06 12:13:17 +00:00
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_Dialog_buttons"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Dialog_buttons_row"
|
2022-01-27 08:55:08 +00:00
|
|
|
>
|
2023-03-06 12:13:17 +00:00
|
|
|
<button
|
|
|
|
data-testid="dialog-cancel-button"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
Cancel
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="mx_Dialog_primary"
|
|
|
|
data-testid="dialog-primary-button"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
Export
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-01-27 08:55:08 +00:00
|
|
|
</div>
|
|
|
|
`;
|
2023-03-06 12:13:17 +00:00
|
|
|
|
|
|
|
exports[`<ExportDialog /> renders success screen when export is finished 1`] = `null`;
|