Commit afff0b39 authored by Boxiang Sun's avatar Boxiang Sun

erp5_slapos_tutorial: Add selenium test to slapos-Tutorial.Install.Slapos.Node.Comp.123

parent aedaadec
......@@ -58,7 +58,22 @@ tags --><!-- replaces:
<p>If you are using a Freefib token, you can jump directly to &quot;<a href="#install_re6st">Install Re6st</a>&quot; section once you have the token, otherwise follow the steps below to get your re6st token.</p>
</details>
</section>
<test>
<table class="test" style="display: none;">
<tbody>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/hostingjs/</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Dashboard</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</test></section>
<section>
<h1>List of Instantiated Services</h1>
......@@ -66,6 +81,27 @@ tags --><!-- replaces:
<details open="open">
<p>Head to the list of services by clicking on the <i>Services</i> button on the side menu. The list will show all services currently <b>instantiated</b> (not the software currently installed!). To create an instance of an installed software, click the <i>Add</i> button in the subheader.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), "Services")]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(text(), "Services")]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), "Add")]</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</test>
</section>
<section>
......@@ -74,6 +110,32 @@ tags --><!-- replaces:
<details open="open">
<p>Select Re6st as this is the service we want to create an instance from.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
<tr>
<td>click</td>
<td>//a[contains(text(), "Add")]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), "Frontend")]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), "Re6st")]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(text(), "Re6st")]</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</test>
</section>
<section>
......@@ -82,6 +144,32 @@ tags --><!-- replaces:
<details open="open">
<p>Please choose the latest version.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
<tr>
<td>waitForElementPresent</td>
<td>//label[contains(text(), "Software Release URL")]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="title")]</td>
<td>FIRST-TOKEN</td>
</tr>
<tr>
<td>select</td>
<td>//select[@name="software_type")]</td>
<td>Re6st Token</td>
</tr>
<tr>
<td>click</td>
<td>//button[@name="submit")]</td>
<td></td>
</tr>
</tbody>
</table>
</test>
</section>
<section>
......
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