Skip to content

Commit

Permalink
Increase delay for location check in system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Jan 17, 2025
1 parent e459a85 commit cbfaeb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/SystemTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ 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(2));

if (HandleLocationPrompt()) Thread.Sleep(TimeSpan.FromSeconds(2));
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));
driver.FindElementByXPath("//Button[@Name='Yes']").Click();
Thread.Sleep(TimeSpan.FromSeconds(5));
driver.FindElementByXPath("//Button[@Name='Yes']").Click();
Thread.Sleep(TimeSpan.FromSeconds(2));

driver.SwitchTo().Window(driver.WindowHandles[0]);
driver.FindElementByXPath("//Window[@Name='Select Theme']").Click();
Expand Down

0 comments on commit cbfaeb9

Please sign in to comment.