From 314cbbc218a39c7a5d29cd97c522678766fb496b Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Tue, 30 Nov 2010 07:20:27 +0000
Subject: [PATCH] At end of test login as test runner.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40902 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../testAnonymousRequestPasswordReset.xml     | 32 +++++++++++++++++++
 .../testDefaultPadAnonymousMode.xml           |  2 +-
 bt5/erp5_km_ui_test/bt/revision               |  2 +-
 3 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testAnonymousRequestPasswordReset.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testAnonymousRequestPasswordReset.xml
index fd9923dc8e..c91fb5575e 100644
--- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testAnonymousRequestPasswordReset.xml
+++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testAnonymousRequestPasswordReset.xml
@@ -91,6 +91,38 @@
 \t<td></td>\n
 </tr>\n
 \n
+<!-- Login as test runner -->\n
+<tr>\n
+\t<td>openAndWait</td>\n
+\t<td>${base_url}/web_site_module/km_test_web_site</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>clickAndWait</td>\n
+\t<td>login-logout-link</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>type</td>\n
+\t<td>__ac_name</td>\n
+\t<td>ERP5TypeTestCase</td>\n
+</tr>\n
+<tr>\n
+\t<td>type</td>\n
+\t<td>__ac_password</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>clickAndWait</td>\n
+\t<td>WebSite_login:method</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+\t<td>verifyTextPresent</td>\n
+\t<td>ERP5TypeTestCase</td>\n
+\t<td></td>\n
+</tr>\n
+\n
 <span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities"> Wait for activities</span>\n
 \n
 <tal:block metal:use-macro="here/KMZuite_CommonTemplate/macros/deleteKMWebSite" />\n
diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testDefaultPadAnonymousMode.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testDefaultPadAnonymousMode.xml
index d020da07cc..a808476a74 100644
--- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testDefaultPadAnonymousMode.xml
+++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/anonymous_user/testDefaultPadAnonymousMode.xml
@@ -101,7 +101,7 @@
 </tr>\n
 <tr>\n
 \t<td>type</td>\n
-\t<td>password</td>\n
+\t<td>__ac_password</td>\n
 \t<td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_km_ui_test/bt/revision b/bt5/erp5_km_ui_test/bt/revision
index 6d3e9dc78d..8306ec157b 100644
--- a/bt5/erp5_km_ui_test/bt/revision
+++ b/bt5/erp5_km_ui_test/bt/revision
@@ -1 +1 @@
-129
\ No newline at end of file
+130
\ No newline at end of file
-- 
2.30.9