Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Disabled] Flaky cypress test: FilePanel > render > should render the audio player and play the audio file on the panel #26045

Closed
richvdh opened this issue Aug 24, 2023 · 1 comment · Fixed by matrix-org/matrix-react-sdk#11954
Labels
A-Developer-Experience O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Flaky-Test A test is raising false alarms

Comments

@richvdh
Copy link
Member

richvdh commented Aug 24, 2023

https://cloud.cypress.io/projects/ppvnzg/runs/17606/test-results

@andybalaam andybalaam added T-Defect S-Minor Impairs non-critical functionality or suitable workarounds exist A-Developer-Experience O-Occasional Affects or can be seen by some users regularly or most users rarely Z-Flaky-Test A test is raising false alarms labels Aug 24, 2023
@richvdh richvdh changed the title Flaky cypress test: FilePanel > render > should render the audio player and play the audio file on the panel Flaky cypress test: FilePanel > render > should render the audio player and play the audio file on the panel Sep 22, 2023
@richvdh
Copy link
Member Author

richvdh commented Oct 26, 2023

https://github.com/matrix-org/matrix-react-sdk/actions/runs/6653291163/job/18078969380#step:8:809

   AssertionError: Timed out retrying after 10000ms: Unable to find an accessible element with the role "button" and name "Pause"

Here are the accessible roles:

  button:

  Name "Play":
  <div
    aria-label="Play"
    class="mx_AccessibleButton mx_PlayPauseButton mx_PlayPauseButton_play"
    data-testid="play-pause-button"
    role="button"
    tabindex="-1"
  />

  --------------------------------------------------
  time:

  Name "":
  <time
    class="mx_Clock"
    datetime="PT1S"
  />

  --------------------------------------------------slider:

  Name "":
  <input
    class="mx_SeekBar"
    max="1"
    min="0"
    step="0.001"
    style="--fillTo:0.246772;"
    tabindex="-1"
    type="range"
    value="0.24677187948350007"
  />

  --------------------------------------------------
  timer:

  Name "":
  <time
    class="mx_Clock"
    datetime="PT0S"
    role="timer"
  />

  --------------------------------------------------

Ignored nodes: comments, script, style
<div
  class="mx_MediaBody mx_AudioPlayer_container"
  tabindex="0"
>
  <div
    class="mx_AudioPlayer_primaryContainer"
  >
    <div
      aria-label="Play"
      class="mx_AccessibleButton mx_PlayPauseButton mx_PlayPauseButton_play"
      data-testid="play-pause-button"
      role="button"
      tabindex="-1"
    >
      <div />
    </div>
    <div
      class="mx_AudioPlayer_mediaInfo"
    >
      <span
        class="mx_AudioPlayer_mediaName"
      >
        1sec.ogg
      </span>
      <div
        class="mx_AudioPlayer_byline"
      >
        <time
          class="mx_Clock"
          datetime="PT1S"
        >
          00:01
        </time>
          
        (3.56 KB)
      </div>
    </div>
  </div>
  <div
    class="mx_AudioPlayer_seek"
  >
    <input
      class="mx_SeekBar"
      max="1"
      min="0"
      step="0.001"
      style="--fillTo:0.246772;"
      tabindex="-1"
      type="range"
      value="0.24677187948350007"
    />
    <time
      class="mx_Clock"
      datetime="PT0S"
      role="timer"
    >
      00:00
    </time>
  </div>
</div>
      at Context.eval (webpack://matrix-react-sdk/./cypress/e2e/right-panel/file-panel.spec.ts:173:69)

richvdh added a commit to matrix-org/matrix-react-sdk that referenced this issue Oct 26, 2023
@richvdh richvdh changed the title Flaky cypress test: FilePanel > render > should render the audio player and play the audio file on the panel [Disabled] Flaky cypress test: FilePanel > render > should render the audio player and play the audio file on the panel Oct 27, 2023
github-merge-queue bot pushed a commit to matrix-org/matrix-react-sdk that referenced this issue Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Developer-Experience O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Flaky-Test A test is raising false alarms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants