Skip to content

[MediaPlayerElement][Skia][Test] The Test for Pause do not work properly on CI #12692

Description

@rafael-rosa-knowcode

What would you like to be added:

Just for Skia.
The Test for Pause dowork properly on CI.
Today the player do not have time to pause, doe the video do not auto play.

Why is this needed:

To have runtime tests to validate the feature.

Some times the Pause can not be set, (mostly on CI) due the status of the player is been different of playing.
(you change the _owner.PlaybackSession.PlaybackState on the InitializeSource to Paused.
So the MediaPlayerExtension.events => OnPrepared never get it to play, due the validation of the Opening)

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Timed out waiting for condition to be met. Timeout waiting for the playback session state changing to Pause on PlayPause.
at Private.Infrastructure.TestServices.WindowHelper.WaitFor(Func`1 condition, Int32 timeoutMS, String message, String callerMemberName, Int32 lineNumber) in D:\a\1\s\src\Uno.UI.RuntimeTests\IntegrationTests\common\TestServices.WindowHelper.cs:line 306
at Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.Given_MediaPlayerElement.When_MediaPlayerElement_SetSource_Check_PlayPause() in D:\a\1\s\src\Uno.UI.RuntimeTests\Tests\Windows_UI_Xaml_Controls\Given_MediaPlayerElement.cs:line 236
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass63_1.<<ExecuteTestsForInstance>g__InvokeTestMethod|2>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 906

For which Platform:

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

Anything else we need to know?

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jun 23, 2023
  2. added
    project/media 📺
    on Jun 26, 2023
  3. removed
    triage/untriaged
    on Jun 27, 2023
  4. added
    difficulty/medium 🤔
    area/tests 🧪
    and removed
    difficulty/tbd
    on Sep 19, 2023
  5. added theissue type on Jul 22, 2025
  6. changed the issue type fromtoon Jul 22, 2025
  7. MartinZikmund commented on Apr 13, 2026

    @MartinZikmund
    Member

    Repro generator

    This issue was classified as not reproducible with a separate code sample or test.

    Reason: The referenced test (Given_MediaPlayerElement.When_MediaPlayerElement_SetSource_Check_PlayPause) already exists in src/Uno.UI.RuntimeTests. The issue tracks a CI-only reliability/timing concern with that specific test under the Skia MediaPlayer backend (pause state not reached before the assertion's timeout on CI). Resolving it is a flakiness/fix task on the existing test rather than a new reproduction. See also the broader flaky-tests tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tests 🧪difficulty/medium 🤔kind/enhancementno-reproproject/media 📺

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions