Commit c5f50237 authored by Bartek Górny's avatar Bartek Górny

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
parent 0df7c02c
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
have id "2". This is probably a bit too stupid. -->\n have id "2". This is probably a bit too stupid. -->\n
<tr>\n <tr>\n
<td>assertLocation</td>\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 <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -103,7 +103,7 @@ have id "2". This is probably a bit too stupid. -->\n ...@@ -103,7 +103,7 @@ have id "2". This is probably a bit too stupid. -->\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>assertLocation</td>\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 <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -131,7 +131,7 @@ have id "2". This is probably a bit too stupid. -->\n ...@@ -131,7 +131,7 @@ have id "2". This is probably a bit too stupid. -->\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>assertLocation</td>\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 <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -153,7 +153,7 @@ another object of the same type. -->\n ...@@ -153,7 +153,7 @@ another object of the same type. -->\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>assertLocation</td>\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 <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
220 222
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment