Skip to content

Commit 0774c1f

Browse files
authored
Fixes flaky test that keeps failing (#2537)
Also addresses the superfluous images that were being created by the DialogTests
1 parent b7dad17 commit 0774c1f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

MaterialDesignThemes.UITests/WPF/DialogHosts/DialogHostTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ await Wait.For(async () =>
164164
Assert.Equal(Colors.Red, await card1.GetBackgroundColor());
165165
Assert.Equal(Colors.Red, await card2.GetBackgroundColor());
166166
});
167+
168+
recorder.Success();
167169
}
168170

169171
[Theory]
@@ -242,6 +244,8 @@ await Wait.For(async () =>
242244
await textBlock2.GetEffectiveBackground(),
243245
MinimumContrastSmallText);
244246
});
247+
248+
recorder.Success();
245249
}
246250
}
247251
}

MaterialDesignThemes.UITests/WPF/DrawerHosts/DrawerHostTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ await Wait.For(async () =>
5252
Assert.Equal(1, invocations.Count);
5353
});
5454

55+
await Wait.For(async () =>
56+
{
57+
Assert.True(await contentCover.GetIsHitTestVisible());
58+
Assert.True(await contentCover.GetOpacity() > 0.0);
59+
});
60+
5561
await drawerHost.LeftClick();
5662

5763
await Wait.For(async () => await contentCover.GetOpacity() <= 0.0);

0 commit comments

Comments
 (0)