Make helper method pin SliceSettings tab as needed

- Use "Slice Settings" tab name expected by tests
This commit is contained in:
John Lewin 2017-06-12 20:35:48 -07:00
parent 77878d780b
commit 604d131a1b
4 changed files with 13 additions and 6 deletions

View file

@ -355,8 +355,6 @@ namespace MatterHackers.MatterControl.Tests.Automation
await MatterControlUtilities.RunTest((testRunner) =>
{
SystemWindow systemWindow;
testRunner.WaitForName("Cancel Wizard Button", 1);
// Set custom adjustment values
@ -377,7 +375,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.ClickByName("Start Print Button", 1);
var container = testRunner.GetWidgetByName("ManualPrinterControls.ControlsContainer", out systemWindow, 5);
var container = testRunner.GetWidgetByName("ManualPrinterControls.ControlsContainer", out _, 5);
// Scroll the widget into view
var scrollable = container.Parents<ManualPrinterControls>().First().Children<ScrollableWidget>().First();

View file

@ -548,8 +548,14 @@ 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
testRunner.ClickByName("Slice Settings Tab");
//testRunner.ClickByName("Slice Settings Tab");
// Show the overflow menu
testRunner.ClickByName("Slice Settings Overflow Menu");