Skip to content

Commit e8b61ec

Browse files
Bump fastify/github-action-merge-dependabot from 3.11.1 to 3.11.2 (#3940)
* Bump fastify/github-action-merge-dependabot from 3.11.1 to 3.11.2 Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 3.11.1 to 3.11.2. - [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases) - [Commits](fastify/github-action-merge-dependabot@v3.11.1...v3.11.2) --- updated-dependencies: - dependency-name: fastify/github-action-merge-dependabot dependency-version: 3.11.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Waits for context menu to open in test Wraps context menu right-click and element retrieval in a wait condition that checks if the context menu is open. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Bost <[email protected]>
1 parent acfa2df commit e8b61ec

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/pr_verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
contents: write
3030

3131
steps:
32-
- uses: fastify/[email protected].1
32+
- uses: fastify/[email protected].2

tests/MaterialDesignThemes.UITests/WPF/TextBoxes/TextBoxTests.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,18 @@ public async Task ContextMenu_UsesInheritedFontFamily()
335335
</StackPanel>
336336
");
337337
var textBox = await stackPanel.GetElement<TextBox>("/TextBox");
338-
await textBox.RightClick();
339-
340-
var contextMenu = await textBox.GetElement<ContextMenu>(".ContextMenu");
341-
342338
var textBoxFont = await textBox.GetFontFamily();
343339
await Assert.That(textBoxFont?.FamilyNames.Values.First()).IsEqualTo("Times New Roman");
340+
341+
IVisualElement<ContextMenu> contextMenu = null!;
342+
await Wait.For(async () =>
343+
{
344+
await textBox.RightClick();
345+
contextMenu = await textBox.GetElement<ContextMenu>(".ContextMenu");
346+
return await contextMenu.GetIsOpen();
347+
});
348+
349+
344350
await Assert.That(await contextMenu.GetFontFamily()).IsEqualTo(textBoxFont);
345351

346352
recorder.Success();

0 commit comments

Comments
 (0)