You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MediaPlayerElement][Skia][Test] The Test for Pause do not work properly on CI #12692
area/tests 🧪Categorizes an issue or PR as relevant to testsdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/enhancementNew feature or requestno-reproproject/media 📺Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)
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
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.
area/tests 🧪Categorizes an issue or PR as relevant to testsdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/enhancementNew feature or requestno-reproproject/media 📺Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)
Activity
MediaPlayerElement/MediaPlayer#2642MartinZikmund commentedon Apr 13, 2026
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 insrc/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.