<commit_before>﻿namespace Gu.Wpf.UiAutomation.UITests.Elements
{
    using System;
    using System.IO;
    using NUnit.Framework;

    public class ContextMenuTests
    {
        private static readonly string ExeFileName = Path.Combine(
            TestContext.CurrentContext.TestDirectory,
            @"..\..\TestApplications\WpfApplication\bin\WpfApplication.exe");

        [Test]
        public void ContextMenuTest()
        {
            using (var app = Application.Launch(ExeFileName, "ContextMenuWindow"))
            {
                var window = app.MainWindow();
                var btn = window.FindButton("ContextMenu");
                btn.RightClick();
                Wait.For(TimeSpan.FromMilliseconds(100));
                var ctxMenu = window.ContextMenu;
                var subMenuLevel1 = ctxMenu.Items;
                Assert.AreEqual(2, subMenuLevel1.Count);
                var subMenuLevel2 = subMenuLevel1[1].Items;
                Assert.AreEqual(1, subMenuLevel2.Count);
                var innerItem = subMenuLevel2[0];
                Assert.AreEqual("Inner Context", innerItem.Text);
            }
        }
    }
}<commit_msg>Try original wait.<commit_after>﻿namespace Gu.Wpf.UiAutomation.UITests.Elements
{
    using System.IO;
    using NUnit.Framework;

    public class ContextMenuTests
    {
        private static readonly string ExeFileName = Path.Combine(
            TestContext.CurrentContext.TestDirectory,
            @"..\..\TestApplications\WpfApplication\bin\WpfApplication.exe");

        [Test]
        public void ContextMenuTest()
        {
            using (var app = Application.Launch(ExeFileName, "ContextMenuWindow"))
            {
                var window = app.MainWindow();
                var btn = window.FindButton("ContextMenu");
                //// btn.RightClick();
                //// Wait.For(TimeSpan.FromMilliseconds(100));
                Mouse.Click(MouseButton.Right, btn.GetClickablePoint());
                Wait.UntilInputIsProcessed();
                var ctxMenu = window.ContextMenu;
                var subMenuLevel1 = ctxMenu.Items;
                Assert.AreEqual(2, subMenuLevel1.Count);
                var subMenuLevel2 = subMenuLevel1[1].Items;
                Assert.AreEqual(1, subMenuLevel2.Count);
                var innerItem = subMenuLevel2[0];
                Assert.AreEqual("Inner Context", innerItem.Text);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.1009811937857727, 'fraction_numerical': 0.01062959934587081, 'mean_word_length': 1.848661233993015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2010555', 'n_tokens_mistral': 668, 'n_tokens_neox': 618, 'n_words': 113}