Commit 3ff2a34f authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel_ui_test: limit Software Instance to manager only

parent eaef10db
......@@ -130,6 +130,39 @@
'text': 'New Allocation Supply created.'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
</tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr>
<td colspan="3"><b>Limit to only Manager user XXX</b></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='field_my_title']</td>
<td>Manual test Project Manager only</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='field_my_destination_title']</td>
<td>Manual test Project Manager</td>
</tr>
<tr>
<td>fireEvent</td>
<td>//input[@name='field_my_destination_title']</td>
<td>input</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//li[contains(@data-relative-url, 'person_module/')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//li[contains(@data-relative-url, 'person_module/')]</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/save" />
......@@ -174,6 +207,13 @@
<tr>
<td colspan="3"><b>Ensure everything is indexed, to be able to select the software product</b></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/wait_for_activities" />
<!--tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/logout" />
<tal:block tal:define="login_configuration python: {'user': 'customer', 'password': 'eiChaxo5Eefier9vAek7phie#'}">
<tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/login" />
......@@ -286,7 +326,7 @@
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr>
<td>click</td>
<td>//input[@name='field_matrixbox_allocable_cell_0_1_0']</td>
<td>//input[@name='field_matrixbox_allocable_cell_0_0_0']</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/save" />
......@@ -378,7 +418,7 @@
<tr>
<td>select</td>
<td>//select[@name='software_type']</td>
<td>Default (slave)</td>
<td>Custom Personal (Slave)</td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tal:block tal:define="notification_configuration python: {'class': 'success',
......
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