Author: vpakan(a)redhat.com
Date: 2009-12-16 12:00:33 -0500 (Wed, 16 Dec 2009)
New Revision: 19363
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
Log:
Since JBT 3.1.0 RC1 Menu Add JSF Capabilities was moved to Configure Submenu.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java 2009-12-16
16:58:01 UTC (rev 19362)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java 2009-12-16
17:00:33 UTC (rev 19363)
@@ -35,6 +35,7 @@
private static final String WEB_PROJECT_JBT_JSF_POPUP_MENU = "JBoss Tools
JSF";
private static final String PACKAGE_EXPLORER_JBT_POPUP_MENU = "JBoss Tools";
+ private static final String PACKAGE_EXPLORER_CONFIGURE_POPUP_MENU =
"Configure";
private static final String ADD_JSF_CAPABILITIES_POPUP_MENU = "Add JSF
Capabilities...";
private static final String CLOSE_PROJECT_POPUP_MENU = "Clo&se Project";
private static final String OPEN_PROJECT_POPUP_MENU = "Op&en Project";
@@ -302,9 +303,16 @@
delay();
- new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ try{
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
PACKAGE_EXPLORER_JBT_POPUP_MENU, false)).menu(
ADD_JSF_CAPABILITIES_POPUP_MENU).click();
+ } catch (WidgetNotFoundException wnfe){
+ // From 3.1.0.RC1 version this menu is moved to Configure submenu
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ PACKAGE_EXPLORER_CONFIGURE_POPUP_MENU, false)).menu(
+ ADD_JSF_CAPABILITIES_POPUP_MENU).click();
+ }
bot.shell("Add JSF Capabilities").activate();
bot.button(WidgetVariables.NEXT_BUTTON).click();
Show replies by date