|
@@ -102,11 +102,11 @@ namespace WhiteTests
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
string[] files = Directory.GetFiles(getSketchAssistantDirectory() + @"\whitelisted", "*.svg", SearchOption.AllDirectories);
|
|
string[] files = Directory.GetFiles(getSketchAssistantDirectory() + @"\whitelisted", "*.svg", SearchOption.AllDirectories);
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("LoadMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("LoadMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("SVGMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("SVGMenuButton")).Click();
|
|
Thread.Sleep(1000);
|
|
Thread.Sleep(1000);
|
|
inputSimulator.Keyboard.TextEntry(getSketchAssistantDirectory() + @"whitelisted\" + filename + ".svg");
|
|
inputSimulator.Keyboard.TextEntry(getSketchAssistantDirectory() + @"whitelisted\" + filename + ".svg");
|
|
@@ -122,21 +122,21 @@ namespace WhiteTests
|
|
public void DrawLineOnCanvasTest()
|
|
public void DrawLineOnCanvasTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.MoveMouseBy(100,100);
|
|
inputSimulator.Mouse.MoveMouseBy(100,100);
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.MoveMouseBy(100, 100);
|
|
inputSimulator.Mouse.MoveMouseBy(100, 100);
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
@@ -146,23 +146,23 @@ namespace WhiteTests
|
|
public void UndoLineOnCanvasTest()
|
|
public void UndoLineOnCanvasTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.MoveMouseBy(0, 200);
|
|
inputSimulator.Mouse.MoveMouseBy(0, 200);
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.MoveMouseBy(500, 300);
|
|
inputSimulator.Mouse.MoveMouseBy(500, 300);
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
Thread.Sleep(100);
|
|
Thread.Sleep(100);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
@@ -174,31 +174,31 @@ namespace WhiteTests
|
|
public void InvalidLineTest()
|
|
public void InvalidLineTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DrawButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DrawButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.MoveMouseBy(0, 200);
|
|
inputSimulator.Mouse.MoveMouseBy(0, 200);
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.MoveMouseBy(500, 300);
|
|
inputSimulator.Mouse.MoveMouseBy(500, 300);
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.MoveMouseBy(-1000, 0);
|
|
inputSimulator.Mouse.MoveMouseBy(-1000, 0);
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.MoveMouseBy(1000, 0);
|
|
inputSimulator.Mouse.MoveMouseBy(1000, 0);
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
@@ -208,7 +208,7 @@ namespace WhiteTests
|
|
public void PointsOnCanvasSimilarityTest()
|
|
public void PointsOnCanvasSimilarityTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
InputSimulator inputSimulator = new InputSimulator();
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
MouseSimulator mouseSimulator = new MouseSimulator(inputSimulator);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
@@ -216,24 +216,24 @@ namespace WhiteTests
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
inputSimulator.Mouse.MoveMouseBy(0, 200);
|
|
inputSimulator.Mouse.MoveMouseBy(0, 200);
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("-", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
Assert.AreEqual("-", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
inputSimulator.Mouse.LeftButtonDown();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
inputSimulator.Mouse.LeftButtonUp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("1", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
Assert.AreEqual("1", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("-", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
Assert.AreEqual("-", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("1", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
Assert.AreEqual("1", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LineSimilarityBox")).Text.ToString());
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
@@ -244,10 +244,10 @@ namespace WhiteTests
|
|
public void CreateCanvasTest()
|
|
public void CreateCanvasTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
@@ -257,15 +257,15 @@ namespace WhiteTests
|
|
public void DrawLineTest()
|
|
public void DrawLineTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
@@ -277,27 +277,27 @@ namespace WhiteTests
|
|
public void DeleteLineTest()
|
|
public void DeleteLineTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DrawButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DrawButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
@@ -309,21 +309,21 @@ namespace WhiteTests
|
|
public void UndoTest()
|
|
public void UndoTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
@@ -333,25 +333,25 @@ namespace WhiteTests
|
|
public void RedoTest()
|
|
public void RedoTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
@@ -361,27 +361,27 @@ namespace WhiteTests
|
|
public void DrawSeveralLinesTest()
|
|
public void DrawSeveralLinesTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
Thread.Sleep(30000);
|
|
Thread.Sleep(30000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -390,35 +390,35 @@ namespace WhiteTests
|
|
public void DeleteSeveralLinesTest()
|
|
public void DeleteSeveralLinesTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
Thread.Sleep(24000);
|
|
Thread.Sleep(24000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 1 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Thread.Sleep(10000);
|
|
Thread.Sleep(10000);
|
|
Assert.AreEqual("Last Action: Line number 0 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
@@ -430,35 +430,35 @@ namespace WhiteTests
|
|
public void UndoSeveralLinesTest()
|
|
public void UndoSeveralLinesTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
Thread.Sleep(30000);
|
|
Thread.Sleep(30000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -467,43 +467,43 @@ namespace WhiteTests
|
|
public void RedoSeveralLinesTest()
|
|
public void RedoSeveralLinesTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
Thread.Sleep(24000);
|
|
Thread.Sleep(24000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -512,57 +512,57 @@ namespace WhiteTests
|
|
public void UndoAndRedoTest()
|
|
public void UndoAndRedoTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugTwo")).Click();
|
|
Thread.Sleep(24000);
|
|
Thread.Sleep(24000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("RedoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
|
|
Thread.Sleep(7000);
|
|
Thread.Sleep(7000);
|
|
Assert.AreEqual("Last Action: Line number 0 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 1 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -571,31 +571,31 @@ namespace WhiteTests
|
|
public void UndoAndDrawTest()
|
|
public void UndoAndDrawTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
Thread.Sleep(2000);
|
|
Thread.Sleep(2000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("UndoButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
Thread.Sleep(2000);
|
|
Thread.Sleep(2000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -604,37 +604,37 @@ namespace WhiteTests
|
|
public void DeleteSeveralLinesAtOnceTest()
|
|
public void DeleteSeveralLinesAtOnceTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
Thread.Sleep(2000);
|
|
Thread.Sleep(2000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
Thread.Sleep(2000);
|
|
Thread.Sleep(2000);
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 1 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
Thread.Sleep(2000);
|
|
Thread.Sleep(2000);
|
|
Assert.AreEqual("Last Action: Several Lines were deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Several Lines were deleted.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -643,19 +643,19 @@ namespace WhiteTests
|
|
public void PointDrawTest()
|
|
public void PointDrawTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugFour")).Click();
|
|
Thread.Sleep(4000);
|
|
Thread.Sleep(4000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -664,43 +664,43 @@ namespace WhiteTests
|
|
public void NewCanvasAfterDrawTest()
|
|
public void NewCanvasAfterDrawTest()
|
|
{
|
|
{
|
|
Window mainWindow = setupapp();
|
|
Window mainWindow = setupapp();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
|
|
mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
|
|
Thread.Sleep(4000);
|
|
Thread.Sleep(4000);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
// Click on No button in warning
|
|
// Click on No button in warning
|
|
Window messageBox0 = mainWindow.MessageBox("Warning");
|
|
Window messageBox0 = mainWindow.MessageBox("Warning");
|
|
messageBox0.Get<Button>(SearchCriteria.ByText("No")).Click();
|
|
messageBox0.Get<Button>(SearchCriteria.ByText("No")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
// close warning
|
|
// close warning
|
|
Window messageBox1 = mainWindow.MessageBox("Warning");
|
|
Window messageBox1 = mainWindow.MessageBox("Warning");
|
|
messageBox1.Close();
|
|
messageBox1.Close();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
// click yes button on warning
|
|
// click yes button on warning
|
|
Window messageBox2 = mainWindow.MessageBox("Warning");
|
|
Window messageBox2 = mainWindow.MessageBox("Warning");
|
|
messageBox2.Get<Button>(SearchCriteria.ByText("Yes")).Click();
|
|
messageBox2.Get<Button>(SearchCriteria.ByText("Yes")).Click();
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
|
|
- Thread.Sleep(20);
|
|
|
|
|
|
+ Thread.Sleep(30);
|
|
mainWindow.Close();
|
|
mainWindow.Close();
|
|
}
|
|
}
|
|
}
|
|
}
|