Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/TestStack.White.UITests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Core>
<add key="TooltipWaitTime" value="3000"/>
<add key="BusyTimeout" value="10000"/>
<add key="ComboBoxItemSelectDelay" value="100" />
</Core>
</White>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

namespace TestStack.White.UITests.ControlTests.ListControls
{
[TestFixture(WindowsFramework.WinForms)]
//[TestFixture(WindowsFramework.WinForms)]
// Problem with WinForms tests
[TestFixture(WindowsFramework.Wpf)]
[Category("NeedsFix")]
[Ignore("NeedsFix")]
public class ComboBoxTests : WhiteUITestBase
{
protected ComboBox ComboBoxUnderTest { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/TestStack.White/Configuration/CoreAppXmlConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static CoreAppXmlConfiguration()
DefaultValues.Add("InProc", false);
DefaultValues.Add("ComboBoxItemsPopulatedWithoutDropDownOpen", false);
DefaultValues.Add("ComboBoxItemSelectionTimeout", 1000);
DefaultValues.Add("ComboBoxItemSelectDelay", 10);
DefaultValues.Add("RawInputQueueProcessingTime", 50);
DefaultValues.Add("RawElementBasedSearch", false);
DefaultValues.Add("MaxElementSearchDepth", 10);
Expand Down Expand Up @@ -164,6 +165,12 @@ public virtual int ComboBoxItemSelectionTimeout
set { SetUsedValue("ComboBoxItemSelectionTimeout", value); }
}

public virtual int ComboBoxItemSelectDelay
{
get { return Convert.ToInt32(UsedValues["ComboBoxItemSelectDelay"]); }
set { SetUsedValue("ComboBoxItemSelectDelay", value); }
}

public virtual int RawInputQueueProcessingTime
{
get { return Convert.ToInt32(UsedValues["RawInputQueueProcessingTime"]); }
Expand Down
1 change: 1 addition & 0 deletions src/TestStack.White/Configuration/ICoreConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public interface ICoreConfiguration
bool InProc { get; set; }
bool ComboBoxItemsPopulatedWithoutDropDownOpen { get; set; }
int ComboBoxItemSelectionTimeout { get; set; }
int ComboBoxItemSelectDelay { get; set; }
int RawInputQueueProcessingTime { get; set; }
bool RawElementBasedSearch { get; set; }
int MaxElementSearchDepth { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/TestStack.White/UIItems/ListBoxItems/ListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static void WaitForBoundsToStabilise(IUIItem item)
Retry.For(() =>
{
var oldBounds = item.Bounds;
Thread.Sleep(10);
Thread.Sleep(CoreAppXmlConfiguration.Instance.ComboBoxItemSelectDelay);
return oldBounds.Equals(item.Bounds);
}, TimeSpan.FromSeconds(1), TimeSpan.FromMilliseconds(10));
}
Expand Down