Skip to content

Commit

Permalink
[testing] These Semantic tests seem to fail often on MacCatalyst (dot…
Browse files Browse the repository at this point in the history
…net#25408)

* [tests] Skip semantic tests on iOS

* [testing] Skip on MACCATALYST

* Update HandlerTestBaseOfT.Tests.cs
  • Loading branch information
rmarinho authored Oct 23, 2024
1 parent 98249b2 commit 454a30d
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 454a30d

Please sign in to comment.