Fixing tests
Added scroll into view Made popup widget get the right scroll Made automation runner able to find widgets that aren't visible
This commit is contained in:
parent
d7c2560de6
commit
20f54e28cc
5 changed files with 10 additions and 8 deletions
|
|
@ -146,17 +146,12 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
testRunner.ClickByName("Features Tab");
|
||||
|
||||
// Find any sibling toggle switch and scroll the parent to the bottom
|
||||
var widget = testRunner.GetWidgetByName("has_fan Row", out _);
|
||||
var scrollable = widget.Parents<ScrollableWidget>().First();
|
||||
scrollable.ScrollPosition = new Vector2(0, -100);
|
||||
|
||||
CheckAndUncheckSetting(testRunner, SettingsKey.heat_extruder_before_homing, false);
|
||||
|
||||
CheckAndUncheckSetting(testRunner, SettingsKey.has_fan, true);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}, overrideWidth: 1224, overrideHeight: 900);
|
||||
}, overrideWidth: 1224, overrideHeight: 900, maxTimeToRun: 600);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
@ -372,6 +367,8 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
Assert.IsTrue(ActiveSliceSettings.Instance.GetValue<bool>(settingToChange) != valueToSet);
|
||||
|
||||
testRunner.ScrollIntoView(checkBoxName);
|
||||
|
||||
testRunner.ClickByName(checkBoxName);
|
||||
// give some time for the ui to update if necessary
|
||||
testRunner.Delay(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue