# Test SlapOS Monitoring UI

Test SlapOS Monitoring UI
open | ${base_url}/bar_module/ListBoxZuite_reset |
assertTextPresent | Reset Successfully. |
open | ${base_url}/web_site_module/monitoring_rjs_unsafe/#page=settings_configurator&tab=add |
waitForElementPresent | //button[@data-i18n='Menu'] |
click | //a[@href='#config-add'] |
pause | 500 |
assertElementPresent | //button[@data-i18n='Load OPML'] |
store | http://localhost:5378/rootInstance/public/feeds | opml_url
store | admin | username
store | zwkuyjdl | password
type | name=url | ${opml_url}
click | //button[@data-i18n='Load OPML'] |
pause | 1000 |
assertTextPresent | Load OPML |
assertTextNotPresent | ERROR: Failed to load URL |
assertElementPresent | //table[contains(@class, 'custom-force-list')] |
assertTextPresent | http://localhost:5378/rootInstance/public/feed |
assertTextPresent | TEST Hosting Subscription |
assertTextPresent | rootInstance |
assertTextPresent | subInstance-1 |
assertTextPresent | subInstance-2 |
assertElementPresent | //button[@data-i18n='Configure'] |
type | name=username | ${username}
type | name=password | ${password}
clickAndWait | //button[@data-i18n='Configure'] |
pause | 2000 |
waitForTextPresent | Monitoring OPML List |
assertElementPresent | //button[contains(@class, 'sync-all')] |
assertElementPresent | //table[contains(@class, 'opml-tablelinks')] |
assertTextPresent | ${opml_url} |
storeElementPresent | //table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/a | has_hosting
storeText | //table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/a | hosting_title
click | //button[contains(@class, 'sync-all')] |
waitForTextPresent | Synchronizing Data... |
waitForTextPresent | Synchronisation finished |
click | //a[@href='#page=hosting_subscription_list'] |
pause | 2000 |
assertTextPresent | ${hosting_title} |
click | //table[contains(@class, 'instance-overview')]/tbody/tr[1]/td[1]/a |
pause | 2000 |
assertTextPresent | ${hosting_title} |
open | ${base_url}/web_page_module/Zuite_waitForActivities |
assertTextPresent | Done. |
open | ${base_url}/web_site_module/monitoring_render_js/#page=settings_configurator&tab=manage |
waitForElementPresent | //button[@data-i18n='Menu'] |
pause | 500 |
click | //table[contains(@class, 'opml-tablelinks')]/tbody/tr[1]/td[3]/a |
pause | 500 |
click | //button[@data-i18n='Load OPML'] |
pause | 500 |
waitForElementPresent | //button[@data-i18n='Configure'] |
type | name=username | ${username}
type | name=password | ${password}
click | //label[contains(@class, 'configure-auth')] |
assertElementPresent | //label[@data-i18n="New Password:"] |
assertElementPresent | //label[@data-i18n="Confirm New Password:"] |
type | name=new_password_confirm | ${password}
type | name=new_password | ${password}
click | //button[@data-i18n='Configure'] |
pause | 2000 |
assertElementPresent | //button[contains(@class, 'sync-all')] |
click | //button[contains(@class, 'sync-all')] |
waitForTextPresent | Synchronizing Data... |
waitForTextPresent | Synchronisation finished |
click | //input[@name='opml-all'] |
clickAndWait | //a[contains(@class, 'opml-delete')] |
waitForElementPresent | //button[@data-i18n='Menu'] |
pause | 500 |
assertTextNotPresent | ${opml_url} |
click | //a[@href='#page=hosting_subscription_list'] |
pause | 2000 |
assertTextNotPresent | ${hosting_title} |