From: Maria Odea B. Ching Date: Tue, 15 Dec 2009 18:08:47 +0000 (+0000) Subject: [MRM-1296] Audit Log Report X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=782d9e2cfa7c8a52a455d45e66c4e3be7d82081f;p=archiva.git [MRM-1296] Audit Log Report o update selenium tests to reflect changes in UI git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1296@890923 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AuditLogsReportTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AuditLogsReportTest.java index 2857cf7cf..45e14cda9 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AuditLogsReportTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AuditLogsReportTest.java @@ -50,6 +50,7 @@ public class AuditLogsReportTest { goToAuditLogReports(); assertAuditLogsReportPage(); + assertTextPresent( "Latest Events" ); } @Test(dependsOnMethods = { "testWithCorrectUsernamePassword" } ) @@ -61,7 +62,8 @@ public class AuditLogsReportTest setFieldValue( "groupId", "non.existing" ); submit(); - assertPage( "Apache Archiva \\ Audit Log Report" ); + assertPage( "Apache Archiva \\ Audit Log Report" ); + assertTextPresent( "Results" ); assertTextPresent( "No audit logs found." ); } @@ -76,6 +78,7 @@ public class AuditLogsReportTest submit(); assertAuditLogsReportPage(); + assertTextPresent( "Results" ); assertTextNotPresent( "No audit logs found." ); assertTextPresent( "test:test:1.0" ); assertTextPresent( "Uploaded File" ); @@ -94,6 +97,7 @@ public class AuditLogsReportTest submit(); assertAuditLogsReportPage(); + assertTextPresent( "Results" ); assertTextNotPresent( "No audit logs found." ); assertTextPresent( "test:test:1.0" ); assertTextPresent( "Uploaded File" ); @@ -111,6 +115,7 @@ public class AuditLogsReportTest submit(); assertAuditLogsReportPage(); + assertTextPresent( "Results" ); assertTextNotPresent( "No audit logs found." ); assertTextPresent( "test:test:1.0" ); assertTextPresent( "Uploaded File" );