Commit a4c42231 authored by Gabriel Monnerat's avatar Gabriel Monnerat

- Use user created by macro

- store document url to test the sharing of document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45393 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c472d426
...@@ -48,22 +48,7 @@ ...@@ -48,22 +48,7 @@
<tr><td rowspan="1" colspan="3" tal:content="template/getId"/></tr>\n <tr><td rowspan="1" colspan="3" tal:content="template/getId"/></tr>\n
</thead><tbody>\n </thead><tbody>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/init" />\n <tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/init" />\n
<tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/create-user" />\n <tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/login" />\n
<tr>\n
<td>type</td>\n
<td>__ac_name</td>\n
<td>ung_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_password</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@type="submit"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>openAndWait</td>\n <td>openAndWait</td>\n
<td>${ung_url}/ERP5Site_createNewWebDocument?template=web_page_template</td>\n <td>${ung_url}/ERP5Site_createNewWebDocument?template=web_page_template</td>\n
...@@ -84,11 +69,6 @@ ...@@ -84,11 +69,6 @@
<td>//p[@id="more_properties"]</td>\n <td>//p[@id="more_properties"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@id="reference"]</td>\n
<td>web.Page.UNG.Test</td>\n
</tr>\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//input[@id="version"]</td>\n <td>//input[@id="version"]</td>\n
...@@ -119,11 +99,6 @@ ...@@ -119,11 +99,6 @@
<td>//p[@id="more_properties"]</td>\n <td>//p[@id="more_properties"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@id="reference"]</td>\n
<td>web.Page.UNG.Test</td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyValue</td>\n <td>verifyValue</td>\n
<td>//input[@id="version"]</td>\n <td>//input[@id="version"]</td>\n
...@@ -154,6 +129,11 @@ ...@@ -154,6 +129,11 @@
<td>//a[@name="document_state"]</td>\n <td>//a[@name="document_state"]</td>\n
<td>Shared</td>\n <td>Shared</td>\n
</tr>\n </tr>\n
<tr>\n
<td>storeText</td>\n
<td>//span[@id="sharing_url"]</td>\n
<td>document_url</td>\n
</tr> \n
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities"/>\n <tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n <tr>\n
<td>openAndWait</td>\n <td>openAndWait</td>\n
...@@ -242,7 +222,7 @@ ...@@ -242,7 +222,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>openAndWait</td>\n <td>openAndWait</td>\n
<td>${ung_url}/?key=web.Page.UNG.Test</td>\n <td>${document_url}</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -275,11 +255,6 @@ ...@@ -275,11 +255,6 @@
<td>//textarea[@id="keyword_list"]</td>\n <td>//textarea[@id="keyword_list"]</td>\n
<td>My Subject</td>\n <td>My Subject</td>\n
</tr>\n </tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@id="reference"]</td>\n
<td>web.Page.Change.Reference</td>\n
</tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>//div[@class="ui-dialog-buttonset"]/button[1]</td>\n <td>//div[@class="ui-dialog-buttonset"]/button[1]</td>\n
...@@ -290,21 +265,7 @@ ...@@ -290,21 +265,7 @@
<td>${ung_url}/WebSite_logout</td>\n <td>${ung_url}/WebSite_logout</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tal:block metal:use-macro="here/Zuite_CommonTemplateForUNG/macros/login" />\n
<td>type</td>\n
<td>__ac_name</td>\n
<td>ung_user</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>__ac_password</td>\n
<td>1234</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@type="submit"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>//table[@class="listbox your_listbox your_listbox-table"]/tbody/tr/td[3]/a</td>\n <td>//table[@class="listbox your_listbox your_listbox-table"]/tbody/tr/td[3]/a</td>\n
...@@ -320,11 +281,6 @@ ...@@ -320,11 +281,6 @@
<td>//p[@id="more_properties"]</td>\n <td>//p[@id="more_properties"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//input[@id="reference"]</td>\n
<td>web.Page.Change.Reference</td>\n
</tr>\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//input[@id="version"]</td>\n <td>//input[@id="version"]</td>\n
......
48 49
\ 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