You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2018/03/18 22:54:14 UTC

[directory-studio] branch master updated: Fix some tests

This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-studio.git


The following commit(s) were added to refs/heads/master by this push:
     new 9dd9ccb  Fix some tests
9dd9ccb is described below

commit 9dd9ccb3dd25e8c67939c7fd0d9d7cca07484425
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Sun Mar 18 23:53:53 2018 +0100

    Fix some tests
---
 .../directory/studio/test/integration/ui/bots/PreferencesBot.java   | 6 ++++++
 .../directory/studio/test/integration/ui/bots/SearchDialogBot.java  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/PreferencesBot.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/PreferencesBot.java
index 796f6ac..910ab42 100644
--- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/PreferencesBot.java
+++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/PreferencesBot.java
@@ -45,4 +45,10 @@ public class PreferencesBot extends DialogBot
         return treeBot.exists( path );
     }
 
+
+    @Override
+    public void clickOkButton()
+    {
+        super.clickButton( "Apply and Close" );
+    }
 }
diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/SearchDialogBot.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/SearchDialogBot.java
index 75899b6..e7f7a7a 100644
--- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/SearchDialogBot.java
+++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/SearchDialogBot.java
@@ -34,7 +34,7 @@ public class SearchDialogBot extends DialogBot
 
     public boolean isVisible()
     {
-        return super.isVisible() && bot.tabItem( "LDAP Search" ).isActive();
+        return super.isVisible() && searchPageWrapperBot.isVisible();
     }
 
 

-- 
To stop receiving notification emails like this one, please contact
seelmann@apache.org.