assertTextPresent Done.
openAndWait ${base_url}/ERP5Site_initSlapOSUITest
assertTextPresent Done.
openAndWait ${base_url}/ERP5Site_setupDummyMailHost
assertTextPresent True
open ${base_url}/ERP5Site_removeTestUserList
assertTextPresent Done.
assertTextPresent Done.
open ${base_url}/web_site_module/hostingjs/ERP5Site_createTestUserList
assertTextPresent Done.
assertTextPresent Done.
open ${base_url}/web_site_module/hostingjs/WebSite_logout
open ${base_url}/web_site_module/hostingjs/
waitForElementPresent __ac_name
type __ac_name demo_functional_user
type __ac_password demo_functional_user
waitForElementPresent //input[@value="Login"]
clickAndWait //input[@value="Login"]
assertTextPresent Done.
open ${base_url}/web_site_module/hostingjs/
Wait for Dashboard on header and front page elements
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//span[@data-i18n='Dashboard']
waitForElementNotPresent //div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1//span[contains(@class, "ui-icon-spinner")]
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), "Sites")]
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1[contains(text(), "Pending Tickets to Process")]
waitForElementPresent //a[@class='leaflet-control-zoom-out']
Logout the website
waitForElementPresent //a[@data-i18n='Logout']
click //a[@data-i18n='Logout']
waitForElementPresent //input[@value='Confirm']
click //input[@value='Confirm']
waitForElementPresent //input[@value='Login']
Menu Item
click //button[@data-i18n='Menu']
waitForElementPresent //button[@data-i18n='Menu']
click
assertElementPresent
waitForElementPresent
assertElementPresent
waitForElementPresent
assertElementPresent
waitForElementPresent
click
Menu Item
click //button[@data-i18n='Menu']
waitForElementPresent //button[@data-i18n='Menu']
click
assertElementPresent
waitForElementPresent
assertElementPresent
Menu Item
waitForElementPresent //input[@id="title"]
type //input[@id="title"]
Menu Item
waitForElementPresent
assertElementPresent
click
Click on Proceed
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Proceed']
assertElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Proceed']
waitForElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Proceed'][contains(@class, "ui-disabled")]
assertElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Proceed'][contains(@class, "ui-disabled")]
assertElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Proceed']
click //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n="Proceed"]
Menu Item
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//a[@data-i18n="Delete"]
click //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//a[@data-i18n="Delete"]
waitForElementPresent
assertElementPresent
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n="Proceed"]
click //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n="Proceed"]
Wait for the content to be loaded
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//h1//*[contains(@class, "ui-icon-spinner")]
waitForElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//h1//*[contains(@class, "ui-icon-spinner")]

Wait for the application to be loaded
waitForElementPresent //div[@class="ui-icon-spinner ui-btn-icon-notext first-loader"]
assertElementPresent //div[@class="ui-icon-spinner ui-btn-icon-notext first-loader"]
waitForElementNotPresent //div[@class="ui-icon-spinner ui-btn-icon-notext first-loader"]
assertElementNotPresent //div[@class="ui-icon-spinner ui-btn-icon-notext first-loader"]
waitForElementPresent //div[@data-gadget-scope='header' and not(@data-gadget-async-url)]
assertElementPresent //div[@data-gadget-scope='header' and not(@data-gadget-async-url)]
waitForElementPresent //div[@data-gadget-scope='panel' and not(@data-gadget-async-url)]
assertElementPresent //div[@data-gadget-scope='panel' and not(@data-gadget-async-url)]

waitForElementPresent
assertElementPresent
waitForElementPresent
assertElementPresent

Wait for the notification message
waitForElementPresent
assertElementPresent

Click on Save
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Save']
assertElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Save']
waitForElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Save'][contains(@class, "ui-disabled")]
assertElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Save'][contains(@class, "ui-disabled")]
assertElementPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Save']
click //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//button[@data-i18n='Save']
Save
waitForElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//h1//*[contains(@class, "ui-icon-spinner")]
assertElementNotPresent //div[contains(@data-gadget-url, 'gadget_slapos_header.html')]//h1//*[contains(@class, "ui-icon-spinner")]
verifyElementNotPresent //button[@data-i18n="Save"][contains(@class, "ui-disabled")]
verifyElementPresent //button[@data-i18n="Save"][contains(@class, "ui-icon-check")]

Wait for the listbox to be loaded
waitForElementNotPresent //div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1//span[contains(@class, "ui-icon-spinner")]
waitForElementPresent //div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//nav//span[@class="ui-disabled"]
assertElementPresent //div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//nav//span[@class="ui-disabled"]