Create Sales
click link=Group
waitForVisible css=div.ui-dialog
click css=div.ui-dialog table.worklist a.minimal > span.glyphicons.glyphicons-circle-plus
waitForVisible css=form[id^="formGroupsPeek"]
type name=name Sales
click name=is_private
select css=div.ui-dialog select[name="member_levels[]"]:nth(1) label=Manager
select css=div.ui-dialog select[name="member_levels[]"]:nth(2) label=Member
click css=form[id^="formGroupsPeek"] button.submit
waitForElementNotPresent css=form[id^="formGroupsPeek"]
waitForElementPresent css=div.ui-dialog table.worklistBody a.subject:nth(0)
clickAndWait css=div.ui-dialog table.worklistBody a.subject:nth(0)
waitForElementPresent link=Buckets 1
click link=Buckets 1
waitForElementPresent css=div.ui-tabs-panel:nth(1) td.title-toolbar a:first
click css=div.ui-tabs-panel:nth(1) td.title-toolbar a:first
waitForElementPresent css=form[id^="frmBucketPeek"]
type name=name Leads
select name=group_id label=Sales
click css=form[id^="frmBucketPeek"] div.buttons > button:first
waitForElementNotPresent css=form[id^="frmBucketPeek"]
waitForElementPresent css=div.ui-tabs-panel:nth(1) td.title-toolbar a:first
click css=div.ui-tabs-panel:nth(1) td.title-toolbar a:first
waitForElementPresent css=form[id^="frmBucketPeek"]
type name=name Receipts
select name=group_id label=Sales
click css=form[id^="frmBucketPeek"] div.buttons > button:first
waitForElementNotPresent css=form[id^="frmBucketPeek"]
waitForElementPresent link=Responsibilities
click link=Responsibilities
waitForVisible css=div.ui-tabs-panel form button > span.glyphicons-cogwheel
click css=div.ui-tabs-panel form button > span.glyphicons-cogwheel
waitForVisible id=group2Responsibilities
type name=responsibilities[4][3] 70
type name=responsibilities[4][1] 50
type name=responsibilities[5][3] 100
type name=responsibilities[5][1] 10
type name=responsibilities[6][3] 90
type name=responsibilities[6][1] 50
click css=#group2Responsibilities button.submit
waitForElementNotPresent id=group2Responsibilities