From c5f50237516587363db72fd2d6d49e48744e4892 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Sat, 6 Oct 2007 15:04:28 +0000
Subject: [PATCH] Zelenium returns location with no host, so we have to compare
 with portal's id, not absolute_url

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16877 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_tests/document_zuite/testAddObject.xml         | 8 ++++----
 bt5/erp5_ui_test/bt/revision                              | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml
index 87c513773e..bc0948b0c3 100644
--- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml
+++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml
@@ -82,7 +82,7 @@
 have id "2". This is probably a bit too stupid. -->\n
 <tr>\n
   <td>assertLocation</td>\n
-  <td tal:content="python: \'%s/foo_module/2/view\' % here.portal_url.getPortalObject().absolute_url()"/>\n
+  <td tal:content="python: \'/%s/foo_module/2/view\' % here.getPortalObject().getId()"/>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -103,7 +103,7 @@ have id "2". This is probably a bit too stupid. -->\n
 </tr>\n
 <tr>\n
   <td>assertLocation</td>\n
-  <td tal:content="python: \'%s/foo_module/2/1/view\' % here.portal_url.getPortalObject().absolute_url()"/>\n
+  <td tal:content="python: \'/%s/foo_module/2/1/view\' % here.getPortalObject().getId()"/>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -131,7 +131,7 @@ have id "2". This is probably a bit too stupid. -->\n
 </tr>\n
 <tr>\n
   <td>assertLocation</td>\n
-  <td tal:content="python: \'%s/foo_module/3/view\' % here.portal_url.getPortalObject().absolute_url()"/>\n
+  <td tal:content="python: \'/%s/foo_module/3/view\' % here.getPortalObject().getId()"/>\n
   <td></td>\n
 </tr>\n
 <tr>\n
@@ -153,7 +153,7 @@ another object of the same type. -->\n
 </tr>\n
 <tr>\n
   <td>assertLocation</td>\n
-  <td tal:content="python: \'%s/foo_module/4/view\' % here.portal_url.getPortalObject().absolute_url()"/>\n
+  <td tal:content="python: \'/%s/foo_module/4/view\' % here.getPortalObject().getId()"/>\n
   <td></td>\n
 </tr>\n
 <tr>\n
diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision
index 3960544522..6dd90d24d3 100644
--- a/bt5/erp5_ui_test/bt/revision
+++ b/bt5/erp5_ui_test/bt/revision
@@ -1 +1 @@
-220
\ No newline at end of file
+222
\ No newline at end of file
-- 
2.30.9