continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1412001 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/BuildDefinitionTest.java
Date Wed, 21 Nov 2012 07:44:28 GMT
Author: brett
Date: Wed Nov 21 07:44:27 2012
New Revision: 1412001

URL: http://svn.apache.org/viewvc?rev=1412001&view=rev
Log:
confirm build definition was deleted

Modified:
    continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/BuildDefinitionTest.java

Modified: continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/BuildDefinitionTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/BuildDefinitionTest.java?rev=1412001&r1=1412000&r2=1412001&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/BuildDefinitionTest.java
(original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/BuildDefinitionTest.java
Wed Nov 21 07:44:27 2012
@@ -226,8 +226,9 @@ public class BuildDefinitionTest
     {
         goToProjectInformationPage( projectGroupName, projectName );
         clickLinkWithXPath( "//input[contains(@id,'buildDefinition')]" );
-        addEditGroupBuildDefinition( null, buildDefinitionPomName, "clean org.apache.maven.plugins:maven-compile-plugin:2.4:compile",
buildDefinitionArguments,
-                                     buildDefinitionDescription, false, false, false );
+        addEditGroupBuildDefinition( null, buildDefinitionPomName,
+                                     "clean org.apache.maven.plugins:maven-compile-plugin:2.4:compile",
+                                     buildDefinitionArguments, buildDefinitionDescription,
false, false, false );
     }
 
     @Test( dependsOnMethods = { "testAddNotDefaultProjectBuildDefinition" } )
@@ -236,9 +237,13 @@ public class BuildDefinitionTest
     {
         goToProjectInformationPage( projectGroupName, projectName );
         // Click in Delete Image
-        clickLinkWithLocator( "id=remove-build-definition-" + buildDefinitionId );
+        String locator = "id=remove-build-definition-" + buildDefinitionId;
+        assertElementPresent( locator );
+        clickLinkWithLocator( locator );
         assertDeleteBuildDefinitionPage( buildDefinitionDescription, buildDefinitionGoals
);
         clickButtonWithValue( "Delete" );
         assertProjectInformationPage();
+
+        assertElementNotPresent( locator );
     }
 }



Mime
View raw message