2022-01-27 16:55:08 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<ExportDialog /> renders export dialog 1`] = `
|
2023-03-06 20:13:17 +08: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
|
|
|
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<h2
|
2023-06-29 18:30:25 +08:00
|
|
|
class="mx_Heading_h4 mx_Dialog_title"
|
2023-03-06 20:13:17 +08:00
|
|
|
id="mx_BaseDialog_title"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
Export Chat
|
|
|
|
</h2>
|
|
|
|
<div
|
|
|
|
aria-label="Close dialog"
|
|
|
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
Select from the options below to export chats from your timeline
|
|
|
|
</p>
|
|
|
|
<div
|
|
|
|
class="mx_ExportDialog_options"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<span
|
|
|
|
class="mx_ExportDialog_subheading"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08: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 16:55:08 +08:00
|
|
|
/>
|
2023-03-06 20:13:17 +08:00
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
2022-01-27 16:55:08 +08:00
|
|
|
<div
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_StyledRadioButton_content"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
HTML
|
2022-01-27 16:55:08 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_StyledRadioButton_spacer"
|
2022-01-27 16:55:08 +08:00
|
|
|
/>
|
2023-03-06 20:13:17 +08:00
|
|
|
</label>
|
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<input
|
|
|
|
id="exportFormat-PlainText"
|
|
|
|
name="exportFormat"
|
|
|
|
type="radio"
|
|
|
|
value="PlainText"
|
2022-01-27 16:55:08 +08:00
|
|
|
/>
|
2023-03-06 20:13:17 +08:00
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
2022-01-27 16:55:08 +08:00
|
|
|
<div
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_StyledRadioButton_content"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
Plain Text
|
2022-01-27 16:55:08 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2023-03-06 20:13:17 +08: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 16:55:08 +08:00
|
|
|
</div>
|
2023-03-06 20:13:17 +08:00
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
JSON
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<span
|
|
|
|
class="mx_ExportDialog_subheading"
|
|
|
|
>
|
|
|
|
Messages
|
|
|
|
</span>
|
2022-01-27 16:55:08 +08:00
|
|
|
<div
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_Field mx_Field_select"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<select
|
|
|
|
id="export-type"
|
|
|
|
type="text"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<option
|
|
|
|
value="Timeline"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08: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 16:55:08 +08:00
|
|
|
</div>
|
2023-03-06 20:13:17 +08:00
|
|
|
<span
|
|
|
|
class="mx_ExportDialog_subheading"
|
|
|
|
>
|
|
|
|
Size Limit
|
|
|
|
</span>
|
2022-01-27 16:55:08 +08:00
|
|
|
<div
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_Field mx_Field_input"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<input
|
|
|
|
autocomplete="off"
|
|
|
|
id="size-limit"
|
|
|
|
type="number"
|
|
|
|
value="8"
|
|
|
|
/>
|
|
|
|
<label
|
|
|
|
for="size-limit"
|
|
|
|
/>
|
2022-01-31 19:54:14 +08:00
|
|
|
<span
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_Field_postfix"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<span>
|
|
|
|
MB
|
|
|
|
</span>
|
2022-01-27 16:55:08 +08:00
|
|
|
</span>
|
2023-03-06 20:13:17 +08: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 16:55:08 +08:00
|
|
|
>
|
|
|
|
<div
|
2023-03-06 20:13:17 +08:00
|
|
|
class="mx_Checkbox_background"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08:00
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
2022-01-27 16:55:08 +08:00
|
|
|
/>
|
|
|
|
</div>
|
2023-03-06 20:13:17 +08:00
|
|
|
<div>
|
|
|
|
Include Attachments
|
2022-01-27 16:55:08 +08:00
|
|
|
</div>
|
2023-03-06 20:13:17 +08:00
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_Dialog_buttons"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Dialog_buttons_row"
|
2022-01-27 16:55:08 +08:00
|
|
|
>
|
2023-03-06 20:13:17 +08: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 16:55:08 +08:00
|
|
|
</div>
|
|
|
|
`;
|
2023-03-06 20:13:17 +08:00
|
|
|
|
|
|
|
exports[`<ExportDialog /> renders success screen when export is finished 1`] = `null`;
|