2012-12-06 17:29:41 +07:00
|
|
|
<test tags="login" action="">
|
|
|
|
<case id="login">
|
|
|
|
<client>
|
|
|
|
<![CDATA[
|
2012-12-11 00:20:08 +07:00
|
|
|
type(jq("$loginPanel $txtUserId"), "GardenAdmin");
|
|
|
|
type(jq("$loginPanel $txtPassword"), "GardenAdmin");
|
2012-12-06 17:29:41 +07:00
|
|
|
click(widget(jq("$loginPanel $chkSelectRole")).$n("real"));
|
|
|
|
click(jq("$loginPanel $Ok"));
|
|
|
|
waitResponse();
|
2012-12-11 00:20:08 +07:00
|
|
|
JQuery lstClient = jq("$rolePanel $lstClient");
|
|
|
|
if (lstClient.exists() && lstClient.isVisible()) {
|
|
|
|
click(jq("$rolePanel $lstClient ~ .z-combobox-btn"));
|
|
|
|
click(jq("$rolePanel $lstClient $GardenWorld"));
|
|
|
|
waitResponse();
|
|
|
|
}
|
2012-12-06 17:29:41 +07:00
|
|
|
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();
|
2012-12-11 00:20:08 +07:00
|
|
|
verifyEquals("GardenAdmin@GardenWorld.HQ/GardenWorld Admin", jq("$loginUserAndRole").text());
|
2012-12-06 17:29:41 +07:00
|
|
|
]]>
|
|
|
|
</client>
|
|
|
|
</case>
|
|
|
|
</test>
|