Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Sinha <manish.sinha@xamarin.com>2015-08-03 19:21:32 +0300
committerManish Sinha <manish.sinha@xamarin.com>2015-08-03 19:22:09 +0300
commit4bf8347054d801421dd954478095c71a8d0da9c4 (patch)
tree3ce7c9cdf5d1832cb735ce9b5bcf026e9a5aa1c8 /main/tests/UserInterfaceTests/VersionControlTests
parentdedcc6500c0e54bdeb80d11da96eda5a3a63b36b (diff)
[UITest] Git: After switching to a branch, wait for that branch to be selected
Diffstat (limited to 'main/tests/UserInterfaceTests/VersionControlTests')
-rw-r--r--main/tests/UserInterfaceTests/VersionControlTests/Git/GitBase.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/tests/UserInterfaceTests/VersionControlTests/Git/GitBase.cs b/main/tests/UserInterfaceTests/VersionControlTests/Git/GitBase.cs
index 922e52eb08..d5f15718d3 100644
--- a/main/tests/UserInterfaceTests/VersionControlTests/Git/GitBase.cs
+++ b/main/tests/UserInterfaceTests/VersionControlTests/Git/GitBase.cs
@@ -257,7 +257,12 @@ namespace UserInterfaceTests
protected bool IsBranchSwitched (string branchName)
{
- return Session.SelectElement (c => branchDisplayName (c).Text ("<b>" + branchName + "</b>"));
+ try {
+ Session.WaitForElement (c => branchDisplayName (c).Text ("<b>" + branchName + "</b>"));
+ return true;
+ } catch (TimeoutException) {
+ return false;
+ }
}
#endregion