Fix test regression due to wrapped settings -> content below fold
This commit is contained in:
parent
2b3535ac98
commit
a909958999
2 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ using MatterHackers.Agg;
|
|||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.GuiAutomation;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using MatterHackers.VectorMath;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace MatterHackers.MatterControl.Tests.Automation
|
||||
|
|
@ -172,6 +173,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
testRunner.ClickByName("Printer Tab");
|
||||
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, 30);
|
||||
|
||||
CheckAndUncheckSetting(testRunner, SettingsKey.heat_extruder_before_homing, false);
|
||||
|
||||
CheckAndUncheckSetting(testRunner, SettingsKey.has_fan, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue