From 782d9e2cfa7c8a52a455d45e66c4e3be7d82081f Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Tue, 15 Dec 2009 18:08:47 +0000 Subject: [PATCH] [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 --- .../org/apache/archiva/web/test/AuditLogsReportTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" ); -- 2.39.5