Skip to content

Commit

Permalink
[release/9.0.1xx] [testing] These Semantic tests seem to fail often o…
Browse files Browse the repository at this point in the history
…n MacCatalyst (#25459)

* [tests] Skip semantic tests on iOS

* [testing] Skip on MACCATALYST

* Update HandlerTestBaseOfT.Tests.cs

---------

Co-authored-by: Rui Marinho <[email protected]>
  • Loading branch information
github-actions[bot] and rmarinho authored Oct 23, 2024
1 parent 6e039af commit 8e4105b
Showing 1 changed file with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ public virtual async Task SetVisibility(Visibility visibility)
Assert.Equal(view.Visibility, id);
}

[Fact(DisplayName = "Setting Semantic Description makes element accessible")]
[Fact(DisplayName = "Setting Semantic Description makes element accessible"
#if MACCATALYST
, Skip = "This test fails sometimes on MACCATALYST"
#endif
)]
public async virtual Task SettingSemanticDescriptionMakesElementAccessible()
{
var view = new TStub();
Expand All @@ -96,7 +100,11 @@ public async virtual Task SettingSemanticDescriptionMakesElementAccessible()
Assert.True(important);
}

[Fact(DisplayName = "Setting Semantic Hint makes element accessible")]
[Fact(DisplayName = "Setting Semantic Hint makes element accessible"
#if MACCATALYST
, Skip = "This test fails sometimes on MACCATALYST"
#endif
)]
public async virtual Task SettingSemanticHintMakesElementAccessible()
{
var view = new TStub();
Expand All @@ -117,6 +125,8 @@ public async virtual Task SettingSemanticHintMakesElementAccessible()
[Fact(DisplayName = "Semantic Description is set correctly"
#if ANDROID
, Skip = "This value can't be validated through automated tests"
#elif MACCATALYST
, Skip = "This test fails sometimes on MACCATALYST"
#endif
)]
public async Task SetSemanticDescription()
Expand All @@ -130,6 +140,8 @@ public async Task SetSemanticDescription()
[Fact(DisplayName = "Semantic Hint is set correctly"
#if ANDROID
, Skip = "This value can't be validated through automated tests"
#elif MACCATALYST
, Skip = "This test fails sometimes on MACCATALYST"
#endif
)]
public async Task SetSemanticHint()
Expand All @@ -140,7 +152,11 @@ public async Task SetSemanticHint()
Assert.Equal(view.Semantics.Hint, id);
}

[Fact(DisplayName = "Semantic Heading is set correctly")]
[Fact(DisplayName = "Semantic Heading is set correctly"
#if MACCATALYST
, Skip = "This test fails sometimes on MACCATALYST"
#endif
)]
public async Task SetSemanticHeading()
{
var view = new TStub();
Expand Down

0 comments on commit 8e4105b

Please sign in to comment.