core-jgi/ztl/resource/test/LoginTest.ztl

27 lines
967 B
Plaintext
Raw Normal View History

<test tags="login" action="">
<case id="login">
<client>
<![CDATA[
type(jq("$loginPanel $txtUserId"), "GardenAdmin");
type(jq("$loginPanel $txtPassword"), "GardenAdmin");
click(widget(jq("$loginPanel $chkSelectRole")).$n("real"));
click(jq("$loginPanel $Ok"));
waitResponse();
JQuery lstClient = jq("$rolePanel $lstClient");
if (lstClient.exists() && lstClient.isVisible()) {
click(jq("$rolePanel $lstClient ~ .z-combobox-btn"));
click(jq("$rolePanel $lstClient $GardenWorld"));
waitResponse();
}
click(jq("$rolePanel $lstRole ~ .z-combobox-btn"));
click(jq("$rolePanel $lstRole $GardenWorld\\\\ Admin"));
waitResponse();
click(jq("$rolePanel $lstOrganisation ~ .z-combobox-btn"));
click(jq("$rolePanel $lstOrganisation $HQ"));
click(jq("$rolePanel $Ok"));
waitResponse();
verifyEquals("GardenAdmin@GardenWorld.HQ/GardenWorld Admin", jq("$loginUserAndRole").text());
]]>
</client>
</case>
</test>