Switch tests to Controls tab as needed

This commit is contained in:
John Lewin 2017-06-13 13:22:22 -07:00
parent bf6c40acab
commit a6630fb8f8
3 changed files with 21 additions and 13 deletions

View file

@ -549,9 +549,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void SwitchToAdvancedSliceSettings(this AutomationRunner testRunner)
{
testRunner.ClickByName("Slice Settings Sidebar");
testRunner.ClickByName("Pin Settings Button");
testRunner.Delay(1);
// Switch to Slice Settings Tab
@ -566,6 +564,19 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.Delay(.5);
}
public static void SwitchToControlsTab(this AutomationRunner testRunner)
{
// If the sidebar exists, we need to expand and pin it
if (testRunner.WaitForName("Slice Settings Sidebar", 0.2))
{
testRunner.ClickByName("Slice Settings Sidebar");
testRunner.ClickByName("Pin Settings Button");
testRunner.Delay(1);
}
testRunner.ClickByName("Controls Tab");
}
/// <summary>
/// Adds the given asset names to the local library and validates the result
/// </summary>