[jbosstools-commits] JBoss Tools SVN: r22790 - trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Jun 14 10:10:14 EDT 2010


Author: vpakan at redhat.com
Date: 2010-06-14 10:10:14 -0400 (Mon, 14 Jun 2010)
New Revision: 22790

Modified:
   trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2AbstractRefactorTest.java
   trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2MoveParticipantTest.java
Log:
Fix UI label changes

Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2AbstractRefactorTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2AbstractRefactorTest.java	2010-06-14 14:07:18 UTC (rev 22789)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2AbstractRefactorTest.java	2010-06-14 14:10:14 UTC (rev 22790)
@@ -46,9 +46,9 @@
 			bot.menu("File").menu("New").menu("Other...").click(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 			bot.shell("New").activate(); //$NON-NLS-1$
 			tree = bot.tree();
-			tree.expandNode("JBoss Tools Web").select("XHTML Page"); //$NON-NLS-1$ //$NON-NLS-2$
+			tree.expandNode("JBoss Tools Web").select("XHTML File"); //$NON-NLS-1$ //$NON-NLS-2$
 			bot.button("Next >").click(); //$NON-NLS-1$
-			bot.textWithLabel("File name:").setText("echo"); //$NON-NLS-1$ //$NON-NLS-2$
+			bot.textWithLabel("Name*").setText("echo"); //$NON-NLS-1$ //$NON-NLS-2$
 			bot.button("Finish").click(); //$NON-NLS-1$
 			bot.sleep(2000);
 			SWTBotEclipseEditor editor = bot
@@ -74,9 +74,9 @@
 			bot.menu("File").menu("New").menu("Other...").click(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 			bot.shell("New").activate(); //$NON-NLS-1$
 			tree = bot.tree();
-			tree.expandNode("JBoss Tools Web").select("XHTML Page"); //$NON-NLS-1$ //$NON-NLS-2$
+			tree.expandNode("JBoss Tools Web").select("XHTML File"); //$NON-NLS-1$ //$NON-NLS-2$
 			bot.button("Next >").click(); //$NON-NLS-1$
-			bot.textWithLabel("File name:").setText(JSF2_Test_Page_Name); //$NON-NLS-1$
+			bot.textWithLabel("Name*").setText(JSF2_Test_Page_Name); //$NON-NLS-1$
 			bot.button("Finish").click(); //$NON-NLS-1$
 		}
 		SWTBotEclipseEditor editor = bot.editorByTitle(

Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2MoveParticipantTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2MoveParticipantTest.java	2010-06-14 14:07:18 UTC (rev 22789)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/jsf2/refactor/JSF2MoveParticipantTest.java	2010-06-14 14:10:14 UTC (rev 22790)
@@ -49,6 +49,7 @@
 	}
 
 	private void createDistResFolder() throws Exception {
+	  bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).show();
 		SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
 				.bot();
 		SWTBotTree tree = innerBot.tree();



More information about the jbosstools-commits mailing list