9c7d935aae
* Integrate compound design tokens The icons should not be included in this repo, and should live in the compound design token repo, but for simplicity sake at this phase of the integration they will be added here * Delete unused or incorrect - sass variables * Typography pass * Deprecate _font-weights.pcss and use Compound instead * lint fix * Fix snapshot * Fix typography pass feedback * Remove unwanted e2e test cypress tests should test functionality not visual output. And we should not test visual output by inspecting CSS properties * lintfix * Migration script for baseFontSize * Updates after design review * Update font scaling panel to use min/max size * Fix custom font * Fix font slider e2e test * Update custom font * Update new baseFontSizeV2 * Disambiguate heading props * Fix appearance test * change max font size * fix e2ee test * fix tests * test baseFontSize migration code * typescript strict * Migrate baseFontSize account setting * Change assertion for font size * Fix font size controller test
206 lines
4 KiB
Text
206 lines
4 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<ExportDialog /> renders export dialog 1`] = `
|
|
<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"
|
|
>
|
|
<h2
|
|
class="mx_Heading_h4 mx_Dialog_title"
|
|
id="mx_BaseDialog_title"
|
|
>
|
|
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"
|
|
>
|
|
<span
|
|
class="mx_ExportDialog_subheading"
|
|
>
|
|
Format
|
|
</span>
|
|
<label
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
|
>
|
|
<input
|
|
checked=""
|
|
id="exportFormat-Html"
|
|
name="exportFormat"
|
|
type="radio"
|
|
value="Html"
|
|
/>
|
|
<div>
|
|
<div />
|
|
</div>
|
|
<div
|
|
class="mx_StyledRadioButton_content"
|
|
>
|
|
HTML
|
|
</div>
|
|
<div
|
|
class="mx_StyledRadioButton_spacer"
|
|
/>
|
|
</label>
|
|
<label
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled"
|
|
>
|
|
<input
|
|
id="exportFormat-PlainText"
|
|
name="exportFormat"
|
|
type="radio"
|
|
value="PlainText"
|
|
/>
|
|
<div>
|
|
<div />
|
|
</div>
|
|
<div
|
|
class="mx_StyledRadioButton_content"
|
|
>
|
|
Plain Text
|
|
</div>
|
|
<div
|
|
class="mx_StyledRadioButton_spacer"
|
|
/>
|
|
</label>
|
|
<label
|
|
class="mx_StyledRadioButton mx_StyledRadioButton_enabled"
|
|
>
|
|
<input
|
|
id="exportFormat-Json"
|
|
name="exportFormat"
|
|
type="radio"
|
|
value="Json"
|
|
/>
|
|
<div>
|
|
<div />
|
|
</div>
|
|
<div
|
|
class="mx_StyledRadioButton_content"
|
|
>
|
|
JSON
|
|
</div>
|
|
<div
|
|
class="mx_StyledRadioButton_spacer"
|
|
/>
|
|
</label>
|
|
<span
|
|
class="mx_ExportDialog_subheading"
|
|
>
|
|
Messages
|
|
</span>
|
|
<div
|
|
class="mx_Field mx_Field_select"
|
|
>
|
|
<select
|
|
id="export-type"
|
|
type="text"
|
|
>
|
|
<option
|
|
value="Timeline"
|
|
>
|
|
Current Timeline
|
|
</option>
|
|
<option
|
|
value="Beginning"
|
|
>
|
|
From the beginning
|
|
</option>
|
|
<option
|
|
value="LastNMessages"
|
|
>
|
|
Specify a number of messages
|
|
</option>
|
|
</select>
|
|
<label
|
|
for="export-type"
|
|
/>
|
|
</div>
|
|
<span
|
|
class="mx_ExportDialog_subheading"
|
|
>
|
|
Size Limit
|
|
</span>
|
|
<div
|
|
class="mx_Field mx_Field_input"
|
|
>
|
|
<input
|
|
autocomplete="off"
|
|
id="size-limit"
|
|
type="number"
|
|
value="8"
|
|
/>
|
|
<label
|
|
for="size-limit"
|
|
/>
|
|
<span
|
|
class="mx_Field_postfix"
|
|
>
|
|
<span>
|
|
MB
|
|
</span>
|
|
</span>
|
|
</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"
|
|
>
|
|
<div
|
|
class="mx_Checkbox_background"
|
|
>
|
|
<div
|
|
class="mx_Checkbox_checkmark"
|
|
/>
|
|
</div>
|
|
<div>
|
|
Include Attachments
|
|
</div>
|
|
</label>
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="mx_Dialog_buttons"
|
|
>
|
|
<span
|
|
class="mx_Dialog_buttons_row"
|
|
>
|
|
<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>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<ExportDialog /> renders success screen when export is finished 1`] = `null`;
|