Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 374a23e

Browse files
luixxiulrichvdht3chguy
authored
Add E2E test of audio player (#10441)
Co-authored-by: Richard van der Hoff <[email protected]> Co-authored-by: Michael Telatynski <[email protected]>
1 parent e03eac1 commit 374a23e

File tree

7 files changed

+392
-2
lines changed

7 files changed

+392
-2
lines changed

cypress/e2e/audio-player/audio-player.spec.ts

Lines changed: 389 additions & 0 deletions
Large diffs are not rendered by default.
3.56 KB
Binary file not shown.

cypress/fixtures/upload-first.ogg

3.56 KB
Binary file not shown.

cypress/fixtures/upload-second.ogg

3.56 KB
Binary file not shown.

cypress/fixtures/upload-third.ogg

3.56 KB
Binary file not shown.

src/components/views/settings/ThemeChoicePanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default class ThemeChoicePanel extends React.Component<IProps, IState> {
168168
(findHighContrastTheme(this.state.theme) || isHighContrastTheme(this.state.theme))
169169
) {
170170
return (
171-
<div>
171+
<div data-testid="theme-choice-panel-highcontrast">
172172
<StyledCheckbox
173173
checked={isHighContrastTheme(this.state.theme)}
174174
onChange={(e) => this.highContrastThemeChanged(e.target.checked)}
@@ -248,7 +248,7 @@ export default class ThemeChoicePanel extends React.Component<IProps, IState> {
248248
<div className="mx_SettingsTab_section mx_ThemeChoicePanel">
249249
<span className="mx_SettingsTab_subheading">{_t("Theme")}</span>
250250
{systemThemeSection}
251-
<div className="mx_ThemeSelectors">
251+
<div className="mx_ThemeSelectors" data-testid="theme-choice-panel-selectors">
252252
<StyledRadioGroup
253253
name="theme"
254254
definitions={orderedThemes.map((t) => ({

test/components/views/settings/__snapshots__/ThemeChoicePanel-test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ exports[`ThemeChoicePanel renders the theme choice UI 1`] = `
1212
</span>
1313
<div
1414
class="mx_ThemeSelectors"
15+
data-testid="theme-choice-panel-selectors"
1516
>
1617
<label
1718
class="mx_StyledRadioButton mx_ThemeSelector_light mx_StyledRadioButton_disabled mx_StyledRadioButton_outlined"

0 commit comments

Comments
 (0)