# Test SlapJS UI

Test RenderJS UI
click | //a[@data-i18n="Servers" and @accesskey="c"] |
waitForElementPresent | //a[@data-i18n='Servers' and @accesskey="u"] |
waitForElementPresent | //h1[@data-i18n='Servers'] |
waitForElementPresent | //span[@data-i18n="No records"] |
waitForElementPresent | //a[@data-i18n="Add"] |
click | //a[@data-i18n="Add"] |
waitForElementPresent | //a[@data-i18n="New Computer"] |
waitForElementPresent | //input[@id="title"] |
type | //input[@id="title"] | TEST-SLAPOSJS-COMPUTER 0
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="New Computer created."] |
waitForElementPresent | //a[text()=" Click here to access your computer "] |
waitForElementPresent | //textarea[@name="certificate"] |
waitForElementPresent | //textarea[@name="key"] |
click | //a[text()=" Click here to access your computer "] |
waitForElementPresent | //a[@data-i18n="Computer: TEST-SLAPOSJS-COMPUTER 0"] |
pause | 5000 | 5000
click | //a[@data-i18n="Servers" and @accesskey="c"] |
waitForElementPresent | //a[@data-i18n='Servers' and @accesskey="u"] |
waitForElementPresent | //h1[@data-i18n='Servers'] |
waitForElementPresent | //span[@data-i18n="1 Records"] |
waitForElementPresent | //a[text()="TEST-SLAPOSJS-COMPUTER 0"] |
click | //a[text()="TEST-SLAPOSJS-COMPUTER 0"] |
waitForElementPresent | //a[@data-i18n="Computer: TEST-SLAPOSJS-COMPUTER 0"] |
click | //a[text()="Supply"] |
waitForElementPresent | //span[@data-i18n="Select one Software"] |
waitForElementPresent | //h1[@data-i18n="Software Products"] |
waitForElementPresent | //td/a[text()="Frontend"] |
click | //td/a[text()="Frontend"] |
waitForElementPresent | //span[@data-i18n="Select one Release"] |
waitForElementPresent | //h1[@data-i18n="Software Releases"] |
waitForElementPresent | //td/a[text()="Frontend"] |
click | //td/a[text()="Frontend"] |
waitForElementPresent | //h1[@class="ui-title"]/span |
waitForElementPresent | //label[text()="Software Release to be Installed"] |
waitForElementPresent | //label[text()="Target Computer Title"] |
waitForElementPresent | //p[text()="TEST-SLAPOSJS-COMPUTER 0"] |
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="New Software Installation created."] |
waitForElementPresent | //a[text()="Software Installation : Frontend"] |
waitForElementPresent | //a[text()="TEST-SLAPOSJS-COMPUTER 0"] |
click | //a[text()="TEST-SLAPOSJS-COMPUTER 0"] |
pause | 5000 | 5000
click | //th/a[text()="Software Release"] |
waitForElementPresent | //div[text()="Frontend (0.1)"] |
waitForElementPresent | //div[text()="Frontend (0.1)"] |
click | //div[text()="Frontend (0.1)"] |
waitForElementPresent | //a[text()="Software Installation : Frontend"] |
waitForElementPresent | //a[@data-i18n="Destroy"] |
click | //a[@data-i18n="Destroy"] |
waitForElementPresent | //span[@data-i18n="Destroy Software Installation"] |
waitForElementPresent | //button[@data-i18n="Proceed"] |
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="You sucessfully request destruction."] |
waitForElementPresent | //a[text()="TEST-SLAPOSJS-COMPUTER 0"] |
click | //a[text()="TEST-SLAPOSJS-COMPUTER 0"] |
waitForElementPresent | //a[@data-i18n="Computer: TEST-SLAPOSJS-COMPUTER 0"] |
waitForElementPresent | //a[@data-i18n="Request Certificate"] |
click | //a[@data-i18n="Request Certificate"] |
waitForElementPresent | //a[@data-i18n="Request New Certificate"] |
waitForElementPresent | //button[@data-i18n="Proceed"] |
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="This computer already has one certificate, please revoke it before request a new one.."] |
waitForElementPresent | //a[@data-i18n="Request New Certificate"] |
click | //a[@data-i18n="Request New Certificate"] |
waitForElementPresent | //a[@data-i18n="Computer: TEST-SLAPOSJS-COMPUTER 0"] |
waitForElementPresent | //a[@data-i18n="Revoke Certificate"] |
click | //a[@data-i18n="Revoke Certificate"] |
waitForElementPresent | //a[@data-i18n="Revoke Computer Certificate"] |
waitForElementPresent | //button[@data-i18n="Proceed"] |
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="Certificate is Revoked."] |
waitForElementPresent | //a[@data-i18n="Computer: TEST-SLAPOSJS-COMPUTER 0"] |
waitForElementPresent | //a[@data-i18n="Request Certificate"] |
click | //a[@data-i18n="Request Certificate"] |
waitForElementPresent | //a[@data-i18n="Request New Certificate"] |
waitForElementPresent | //button[@data-i18n="Proceed"] |
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="Certificate is Requested."] |
waitForElementPresent | //textarea[@name="certificate"] |
waitForElementPresent | //textarea[@name="key"] |
waitForElementPresent | //a[@data-i18n="Request New Certificate"] |
click | //a[@data-i18n="Request New Certificate"] |
waitForElementPresent | //a[@data-i18n="Computer: TEST-SLAPOSJS-COMPUTER 0"] |
waitForElementPresent | //select[@id="allocation_scope"] |
select | //select[@id="allocation_scope"] | Closed forever
waitForElementPresent | //button[@data-i18n="Save"] |
click | //button[@data-i18n="Save"] |
waitForElementPresent | //button[@type="submit" and text()="Data Updated"] |
click | //a[@data-i18n="Servers" and @accesskey="c"] |
waitForElementPresent | //a[@data-i18n='Servers' and @accesskey="u"] |
waitForElementPresent | //h1[@data-i18n='Servers'] |
pause | 5000 | 5000
click | //th/a[text()="Title"] |
waitForElementPresent | //span[@data-i18n="No records"] |