* added test with switch widget within farm widget * Added another usecase with Switch * added wait * updated locators * minor update * add locators for switch widget spec * removed waits and replaced with suitable assertions Co-authored-by: nandan.anantharamu <nandan.anantharamu@thoughtspot.com> Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro.local>
133 lines
4.0 KiB
JSON
133 lines
4.0 KiB
JSON
{
|
|
"dsl": {
|
|
"widgetName": "MainContainer",
|
|
"backgroundColor": "none",
|
|
"rightColumn": 1118,
|
|
"snapColumns": 16,
|
|
"detachFromLayout": true,
|
|
"widgetId": "0",
|
|
"topRow": 0,
|
|
"bottomRow": 1280,
|
|
"containerStyle": "none",
|
|
"snapRows": 33,
|
|
"parentRowSpace": 1,
|
|
"type": "CANVAS_WIDGET",
|
|
"canExtend": true,
|
|
"version": 14,
|
|
"minHeight": 1292,
|
|
"parentColumnSpace": 1,
|
|
"dynamicBindingPathList": [],
|
|
"leftColumn": 0,
|
|
"children": [
|
|
{
|
|
"isVisible": true,
|
|
"widgetName": "Form1",
|
|
"backgroundColor": "white",
|
|
"children": [
|
|
{
|
|
"isVisible": true,
|
|
"widgetName": "Canvas1",
|
|
"version": 1,
|
|
"containerStyle": "none",
|
|
"canExtend": false,
|
|
"detachFromLayout": true,
|
|
"children": [
|
|
{
|
|
"isVisible": true,
|
|
"text": "Form",
|
|
"textStyle": "HEADING",
|
|
"textAlign": "LEFT",
|
|
"widgetName": "Text1",
|
|
"version": 1,
|
|
"type": "TEXT_WIDGET",
|
|
"isLoading": false,
|
|
"leftColumn": 0,
|
|
"rightColumn": 12,
|
|
"topRow": 0,
|
|
"bottomRow": 1,
|
|
"parentId": "xht61hwrwp",
|
|
"widgetId": "xbcdejxqqi"
|
|
},
|
|
{
|
|
"isVisible": true,
|
|
"widgetName": "FormButton1",
|
|
"text": "Submit",
|
|
"isDefaultClickDisabled": true,
|
|
"version": 1,
|
|
"buttonStyle": "PRIMARY_BUTTON",
|
|
"disabledWhenInvalid": true,
|
|
"resetFormOnClick": true,
|
|
"type": "FORM_BUTTON_WIDGET",
|
|
"isLoading": false,
|
|
"leftColumn": 12,
|
|
"rightColumn": 16,
|
|
"topRow": 11,
|
|
"bottomRow": 12,
|
|
"parentId": "xht61hwrwp",
|
|
"widgetId": "v5ivupuzl0"
|
|
},
|
|
{
|
|
"isVisible": true,
|
|
"widgetName": "FormButton2",
|
|
"text": "Reset",
|
|
"isDefaultClickDisabled": true,
|
|
"version": 1,
|
|
"buttonStyle": "SECONDARY_BUTTON",
|
|
"disabledWhenInvalid": false,
|
|
"resetFormOnClick": true,
|
|
"type": "FORM_BUTTON_WIDGET",
|
|
"isLoading": false,
|
|
"leftColumn": 8,
|
|
"rightColumn": 12,
|
|
"topRow": 11,
|
|
"bottomRow": 12,
|
|
"parentId": "xht61hwrwp",
|
|
"widgetId": "u3hmsi7blk"
|
|
},
|
|
{
|
|
"isVisible": true,
|
|
"label": "Label",
|
|
"defaultSwitchState": true,
|
|
"widgetName": "Switch1",
|
|
"alignWidget": "LEFT",
|
|
"version": 1,
|
|
"type": "SWITCH_WIDGET",
|
|
"isLoading": false,
|
|
"parentColumnSpace": 26.9765625,
|
|
"parentRowSpace": 40,
|
|
"leftColumn": 4,
|
|
"rightColumn": 6,
|
|
"topRow": 4,
|
|
"bottomRow": 5,
|
|
"parentId": "xht61hwrwp",
|
|
"widgetId": "xq23pko1ff"
|
|
}
|
|
],
|
|
"minHeight": 520,
|
|
"type": "CANVAS_WIDGET",
|
|
"isLoading": false,
|
|
"parentColumnSpace": 1,
|
|
"parentRowSpace": 1,
|
|
"leftColumn": 0,
|
|
"rightColumn": 471.625,
|
|
"topRow": 0,
|
|
"bottomRow": 520,
|
|
"parentId": "c99gng6mgt",
|
|
"widgetId": "xht61hwrwp"
|
|
}
|
|
],
|
|
"type": "FORM_WIDGET",
|
|
"isLoading": false,
|
|
"parentColumnSpace": 67.375,
|
|
"parentRowSpace": 40,
|
|
"leftColumn": 2,
|
|
"rightColumn": 9,
|
|
"topRow": 13,
|
|
"bottomRow": 26,
|
|
"parentId": "0",
|
|
"widgetId": "c99gng6mgt"
|
|
}
|
|
],
|
|
"dynamicTriggerPathList": []
|
|
}
|
|
} |