Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
contents: write

steps:
- uses: fastify/[email protected].1
- uses: fastify/[email protected].2
14 changes: 10 additions & 4 deletions tests/MaterialDesignThemes.UITests/WPF/TextBoxes/TextBoxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,18 @@ public async Task ContextMenu_UsesInheritedFontFamily()
</StackPanel>
");
var textBox = await stackPanel.GetElement<TextBox>("/TextBox");
await textBox.RightClick();

var contextMenu = await textBox.GetElement<ContextMenu>(".ContextMenu");

var textBoxFont = await textBox.GetFontFamily();
await Assert.That(textBoxFont?.FamilyNames.Values.First()).IsEqualTo("Times New Roman");

IVisualElement<ContextMenu> contextMenu = null!;
await Wait.For(async () =>
{
await textBox.RightClick();
contextMenu = await textBox.GetElement<ContextMenu>(".ContextMenu");
return await contextMenu.GetIsOpen();
});


await Assert.That(await contextMenu.GetFontFamily()).IsEqualTo(textBoxFont);

recorder.Success();
Expand Down
Loading