Commit c9962f54 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio_ui_test: Fix Basic Navigation Test

parent bd5e345c
...@@ -18,6 +18,16 @@ ...@@ -18,6 +18,16 @@
<td>Done.</td> <td>Done.</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/ERP5Site_setupDummyMailHost</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>True</td>
<td></td>
</tr>
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/ERP5Site_removeTestUserList</td> <td>${base_url}/ERP5Site_removeTestUserList</td>
...@@ -55,10 +65,16 @@ ...@@ -55,10 +65,16 @@
<td></td> <td></td>
</tr> </tr>
<!-- Logout -->
<tr>
<td>open</td>
<td>${base_url}/web_site_module/hostingjs/WebSite_logout</td>
<td></td>
</tr>
<!-- Initialize --> <!-- Initialize -->
<tr> <tr>
<td>open</td> <td>open</td>
<td>${base_url}/web_site_module/hostingjs/#!display?n.me=</td> <td>${base_url}/web_site_module/hostingjs/</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -82,135 +98,103 @@ ...@@ -82,135 +98,103 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>clickAndWait</td>
<td>//input[@value="Login"]</td> <td>//input[@value="Login"]</td>
<td></td> <td></td>
</tr> </tr>
<!-- Basic Menu Navigation --> <!-- Dashboard -->
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Home']</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Account']</td> <td>//span[@data-i18n='Dashboard']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Tickets']</td> <td>//h1[@data-i18n='Sites']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Sites']</td> <td>//h1[@data-i18n='Pending Tickets to Process']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Check if map is ok -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Projects']</td> <td>//a[@class='leaflet-control-zoom-out']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>pause</td>
<td>//a[@data-i18n='Invoices']</td> <td>5000</td>
<td></td> <td>5000</td>
</tr> </tr>
<!-- Access Menu -->
<tr> <tr>
<td>waitForElementPresent</td> <td>click</td>
<td>//a[@data-i18n='Services']</td> <td>//button[@data-i18n='Menu']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Servers']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Networks']</td> <td>//button[@data-i18n='Menu']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[@data-i18n='Home']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Dashboard -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Dashboard']</td> <td>//a[@data-i18n='Account']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//h1[@data-i18n='Sites']</td> <td>//a[@data-i18n='Tickets']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//h1[@data-i18n='Tickets']</td> <td>//a[@data-i18n='Sites']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Check if map is ok -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@class='leaflet-control-zoom-out']</td> <td>//a[@data-i18n='Projects']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Menu']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td> <td>//a[@data-i18n='Invoices']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Account -->
<tr>
<td>click</td>
<td>//a[@data-i18n="Account"]</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Your Account : Demo User Functional']</td> <td>//a[@data-i18n='Services']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//label[@for="first_name"]</td> <td>//a[@data-i18n='Servers']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td> <td>//a[@data-i18n='Networks']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//button[@data-i18n='Menu']</td> <td>//a[@data-i18n='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<!-- Tickets --> <!-- Tickets -->
<tr> <tr>
<td>click</td> <td>click</td>
...@@ -219,7 +203,7 @@ ...@@ -219,7 +203,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Tickets']</td> <td>//a[@data-i18n='Tickets']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -247,7 +231,7 @@ ...@@ -247,7 +231,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Sites']</td> <td>//a[@data-i18n='Sites']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -275,7 +259,7 @@ ...@@ -275,7 +259,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Projects']</td> <td>//a[@data-i18n='Projects']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -305,7 +289,7 @@ ...@@ -305,7 +289,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Invoices']</td> <td>//a[@data-i18n='Invoices']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -334,7 +318,7 @@ ...@@ -334,7 +318,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Invoices']</td> <td>//a[@data-i18n='Invoices']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -363,7 +347,7 @@ ...@@ -363,7 +347,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Services']</td> <td>//a[@data-i18n='Services']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -392,7 +376,7 @@ ...@@ -392,7 +376,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Servers']</td> <td>//a[@data-i18n='Servers']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -421,13 +405,13 @@ ...@@ -421,13 +405,13 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//span[@data-i18n='Networks']</td> <td>//a[@data-i18n='Networks']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementPresent</td> <td>waitForElementPresent</td>
<td>//h1[@data-i18n='Networks']</td> <td>//h1[@data-i18n='Network']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -442,6 +426,23 @@ ...@@ -442,6 +426,23 @@
<td></td> <td></td>
</tr> </tr>
<tr>
<td>click</td>
<td>//a[@data-i18n="Account"]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Your Account : Demo User Functional']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//label[@for="first_name"]</td>
<td></td>
</tr>
<!-- Logout --> <!-- Logout -->
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
......
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