Getting automation tests to pass with new ui changes
issue: MatterHackers/MCCentral#4108 Many test failures related to Controls/Terminal tabs being hidden by default
This commit is contained in:
parent
5169b7d81c
commit
f4d69c8f28
6 changed files with 34 additions and 5 deletions
|
|
@ -867,9 +867,34 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
{
|
||||
// Change to Printer Controls
|
||||
EnsurePrinterSidebarOpen(testRunner);
|
||||
|
||||
if (!testRunner.NameExists("Controls Tab", 0.2))
|
||||
{
|
||||
testRunner.ClickByName("Printer Overflow Menu");
|
||||
testRunner.ClickByName("Show Controls Menu Item");
|
||||
}
|
||||
|
||||
testRunner.ClickByName("Controls Tab");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Switch to Printer -> Terminal
|
||||
/// </summary>
|
||||
/// <param name="testRunner"></param>
|
||||
public static void SwitchToTerminalTab(this AutomationRunner testRunner)
|
||||
{
|
||||
// Change to Printer Controls
|
||||
EnsurePrinterSidebarOpen(testRunner);
|
||||
|
||||
if (!testRunner.NameExists("Terminal Tab", 0.2))
|
||||
{
|
||||
testRunner.ClickByName("Printer Overflow Menu");
|
||||
testRunner.ClickByName("Show Terminal Menu Item");
|
||||
}
|
||||
|
||||
testRunner.ClickByName("Terminal Tab");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Switch to Printer -> GCode Tab - NOTE: as a short term hack this helper as adds content to the bed and slices to ensure GCode view options appear as expected
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue