Delete tests of removed behavior
- Add to queue removed from library menu, should not be tested
This commit is contained in:
parent
f0cf7d5ba8
commit
34a9ef72cc
2 changed files with 0 additions and 78 deletions
|
|
@ -191,77 +191,5 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
return Task.CompletedTask;
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AddToQueueFromLibraryButtonAddsItemToQueue()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
{
|
||||
int expectedCount = QueueData.Instance.ItemCount + 1;
|
||||
|
||||
testRunner.CloseSignInAndPrinterSelect();
|
||||
|
||||
testRunner.AddTestAssetsToLibrary("Rook.amf");
|
||||
|
||||
// Select Library Item
|
||||
testRunner.ClickByName("Row Item Rook");
|
||||
|
||||
// Add Library Item to the Print Queue
|
||||
MatterControlUtilities.LibraryAddSelectionToQueue(testRunner);
|
||||
testRunner.Delay(2);
|
||||
|
||||
// Make sure that the Queue Count increases by one
|
||||
Assert.AreEqual(expectedCount, QueueData.Instance.ItemCount, "Row item count should increase by one after add");
|
||||
|
||||
// Navigate to the PrintQueueContainer
|
||||
testRunner.NavigateToLibraryHome();
|
||||
testRunner.NavigateToFolder("Print Queue Row Item Collection");
|
||||
|
||||
// Make sure that the item exists in the PrintQueueContainer
|
||||
Assert.IsTrue(testRunner.WaitForName("Row Item Rook"), "Rook item should exist in the Queue after Add");
|
||||
|
||||
return Task.CompletedTask;
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AddToQueueFromLibraryButtonAddsItemsToQueue()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
{
|
||||
int expectedCount = QueueData.Instance.ItemCount + 2;
|
||||
|
||||
testRunner.CloseSignInAndPrinterSelect();
|
||||
|
||||
testRunner.AddTestAssetsToLibrary("Rook.amf", "Batman.stl");
|
||||
|
||||
// Select both items
|
||||
testRunner.ClickByName("Row Item Rook");
|
||||
Keyboard.SetKeyDownState(Keys.ControlKey, down: true);
|
||||
|
||||
testRunner.ClickByName("Row Item Batman");
|
||||
Keyboard.SetKeyDownState(Keys.ControlKey, down: false);
|
||||
|
||||
// Click the Add To Queue button
|
||||
testRunner.Delay(1);
|
||||
MatterControlUtilities.LibraryAddSelectionToQueue(testRunner);
|
||||
|
||||
// TODO: Somehow thumbnail generation is happening on the UI thread and bogging this down. Leave at 15 second for a short-term workaround
|
||||
testRunner.WaitFor(() => QueueData.Instance.ItemCount == expectedCount, 15, 500);
|
||||
|
||||
// Make sure Queue Count increases by the correct amount
|
||||
Assert.AreEqual(expectedCount, QueueData.Instance.ItemCount);
|
||||
|
||||
// Navigate to the PrintQueueContainer
|
||||
testRunner.NavigateToLibraryHome();
|
||||
testRunner.NavigateToFolder("Print Queue Row Item Collection");
|
||||
|
||||
// Make sure that the items exist in the PrintQueueContainer
|
||||
Assert.IsTrue(testRunner.WaitForName("Row Item Rook"), "Rook item should exist in the Queue after Add");
|
||||
Assert.IsTrue(testRunner.WaitForName("Row Item Batman"), "Batman item should exist in the Queue after Add");
|
||||
|
||||
return Task.CompletedTask;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -682,12 +682,6 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
});
|
||||
}
|
||||
|
||||
public static void LibraryAddSelectionToQueue(AutomationRunner testRunner)
|
||||
{
|
||||
testRunner.ClickByName("Print Library Overflow Menu");
|
||||
testRunner.ClickByName("Add to Queue Menu Item");
|
||||
}
|
||||
|
||||
public static void LibraryEditSelectedItem(AutomationRunner testRunner)
|
||||
{
|
||||
testRunner.ClickByName("Edit Menu Item");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue