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

Commit

Permalink
Add E2E test of audio player (#10441)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
3 people authored Apr 6, 2023
1 parent e03eac1 commit 374a23e
Show file tree
Hide file tree
Showing 7 changed files with 392 additions and 2 deletions.
389 changes: 389 additions & 0 deletions cypress/e2e/audio-player/audio-player.spec.ts

Large diffs are not rendered by default.

Binary file added cypress/fixtures/1sec-long-name-audio-file.ogg
Binary file not shown.
Binary file added cypress/fixtures/upload-first.ogg
Binary file not shown.
Binary file added cypress/fixtures/upload-second.ogg
Binary file not shown.
Binary file added cypress/fixtures/upload-third.ogg
Binary file not shown.
4 changes: 2 additions & 2 deletions src/components/views/settings/ThemeChoicePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class ThemeChoicePanel extends React.Component<IProps, IState> {
(findHighContrastTheme(this.state.theme) || isHighContrastTheme(this.state.theme))
) {
return (
<div>
<div data-testid="theme-choice-panel-highcontrast">
<StyledCheckbox
checked={isHighContrastTheme(this.state.theme)}
onChange={(e) => this.highContrastThemeChanged(e.target.checked)}
Expand Down Expand Up @@ -248,7 +248,7 @@ export default class ThemeChoicePanel extends React.Component<IProps, IState> {
<div className="mx_SettingsTab_section mx_ThemeChoicePanel">
<span className="mx_SettingsTab_subheading">{_t("Theme")}</span>
{systemThemeSection}
<div className="mx_ThemeSelectors">
<div className="mx_ThemeSelectors" data-testid="theme-choice-panel-selectors">
<StyledRadioGroup
name="theme"
definitions={orderedThemes.map((t) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`ThemeChoicePanel renders the theme choice UI 1`] = `
</span>
<div
class="mx_ThemeSelectors"
data-testid="theme-choice-panel-selectors"
>
<label
class="mx_StyledRadioButton mx_ThemeSelector_light mx_StyledRadioButton_disabled mx_StyledRadioButton_outlined"
Expand Down

0 comments on commit 374a23e

Please sign in to comment.