# Test SlapJS UI

Test RenderJS UI
click | //a[@data-i18n="Tickets"] |
waitForElementPresent | //a[@data-i18n='Tickets'] |
waitForElementPresent | //h1[@data-i18n='Tickets'] |
waitForElementPresent | //span[@data-i18n="No records"] |
waitForElementPresent | //a[@data-i18n="Add"] |
click | //a[@data-i18n="Add"] |
waitForElementPresent | //input[@id="title"] |
type | //input[@id="title"] | TEST-SLAPOSJS-SUPPORT-REQUEST 0
type | //textarea[@id="description"] | TEST-SLAPOSJS-SUPPORT-REQUEST DESCRIPTION
select | //select[@id="resource"] | Complaint
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and text()="New Ticket created."] |
waitForElementPresent | //a[@data-i18n="Support Request : TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
verifyElementNotPresent | //button[@type="submit" and @data-i18n="Save"] |
pause | 5000 | 5000
click | //a[@data-i18n="Tickets"] |
waitForElementPresent | //a[@data-i18n='Tickets'] |
waitForElementPresent | //h1[@data-i18n='Tickets'] |
waitForElementPresent | //span[@data-i18n="1 Records"] |
waitForElementPresent | //a[text()="TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
click | //a[text()="TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
waitForElementPresent | //a[@data-i18n="Support Request : TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
waitForElementPresent | //a[@data-i18n="Support Request : TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
waitForElementPresent | //span[@data-i18n="1 Records"] |
verifyTextPresent | Demo User Functional |
verifyTextPresent | TEST-SLAPOSJS-SUPPORT-REQUEST 0 |
verifyTextPresent | TEST-SLAPOSJS-SUPPORT-REQUEST DESCRIPTION |
waitForElementPresent | //a[@data-i18n="Add"] |
click | //a[@data-i18n="Add"] |
waitForElementPresent | //a[@data-i18n="New Message"] |
waitForElementPresent | //textarea[@id="text_content"] |
type | //textarea[@id="text_content"] | TEST-SLAPOSJS-SUPPORT-REQUEST NEW MESSAGE
waitForElementPresent | //button[@data-i18n="Proceed"] |
click | //button[@data-i18n="Proceed"] |
waitForElementPresent | //a[@data-i18n="Support Request : TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
waitForElementPresent | //a[@data-i18n="Support Request : TEST-SLAPOSJS-SUPPORT-REQUEST 0"] |
waitForElementPresent | //span[@data-i18n="2 Records"] |
verifyTextPresent | TEST-SLAPOSJS-SUPPORT-REQUEST NEW MESSAGE |