From 50b64ed9d7ddbbe86d1a6de0c8dfcef2c0a23c4a Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Thu, 2 Jan 2025 07:54:57 -0500 Subject: [PATCH] Increase delays in system tests --- test/SystemTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/SystemTests.cs b/test/SystemTests.cs index 5d1b4f0..128aeaf 100644 --- a/test/SystemTests.cs +++ b/test/SystemTests.cs @@ -26,23 +26,24 @@ public void ShouldUpdateWallpaper() { driver.FindElementByXPath("//Window[@Name='Select Language']").Click(); driver.FindElementByXPath("//Button[@Name='OK']").Click(); - Thread.Sleep(TimeSpan.FromSeconds(5)); + Thread.Sleep(TimeSpan.FromSeconds(10)); driver.SwitchTo().Window(driver.WindowHandles[0]); driver.FindElementByXPath("//Window[@Name='Configure Schedule']").Click(); driver.FindElementByAccessibilityId("radioButton1").Click(); driver.FindElementByAccessibilityId("locationBox").SendKeys("New York NY"); driver.FindElementByXPath("//Button[@Name='OK']").Click(); - Thread.Sleep(TimeSpan.FromSeconds(2)); + Thread.Sleep(TimeSpan.FromSeconds(5)); driver.SwitchTo().Window(driver.WindowHandles.Last()); driver.FindElementByXPath("//Button[@Name='Yes']").Click(); - Thread.Sleep(TimeSpan.FromSeconds(5)); + Thread.Sleep(TimeSpan.FromSeconds(10)); driver.SwitchTo().Window(driver.WindowHandles[0]); driver.FindElementByXPath("//Window[@Name='Select Theme']").Click(); driver.FindElementByAccessibilityId("listView1").SendKeys(Keys.Control + Keys.End); driver.FindElementByXPath("//ListItem[@Name='Windows 11']").Click(); driver.FindElementByXPath("//Button[@Name='Apply']").Click(); + Thread.Sleep(TimeSpan.FromSeconds(5)); Assert.Contains(["scripts", "settings.json", "themes"], Directory.GetFileSystemEntries(Path.GetDirectoryName(AppPath)).Select(Path.GetFileName).ToArray());