forked from appsmithorg/appsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Table UI test cases (appsmithorg#5910)
* TableUITestCases Commit * Table-widget-testcases On Search Text Change Action Default array data On Row Selected Action Explore Widget related documents Verification On Page Change Action Default search text Default selected row Delete Table Widget Changing Column data type to "Image" Changing Column data type to "URL" Table Widget Functionality To Verify Row Height Functionality Drage and Drop Table widget and verify default data Table Widget Functionality To Filter The Data using 'Empty Table Widget Functionality To Filter The Data using 'Not Empty' * Discarded changes in cypress.json Discarded changes in cypress.json * Updated the test cases * Undo changes to Cypress.json Undo changes to Cypress.json * Added new dsl json file * Merge branch 'release' into SelectUITestCases * table test cases fix Co-authored-by: arslan <>
- Loading branch information
1 parent
652950d
commit 01e5d8d
Showing
16 changed files
with
646 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
|
||
# test coverage | ||
coverage-summary.json | ||
app/client/cypress/locators/Widgets.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,129 +1,127 @@ | ||
{ | ||
"dsl": { | ||
"widgetName": "MainContainer", | ||
"backgroundColor": "none", | ||
"rightColumn": 1224, | ||
"snapColumns": 16, | ||
"detachFromLayout": true, | ||
"widgetId": "0", | ||
"topRow": 0, | ||
"bottomRow": 1280, | ||
"containerStyle": "none", | ||
"snapRows": 33, | ||
"parentRowSpace": 1, | ||
"type": "CANVAS_WIDGET", | ||
"canExtend": true, | ||
"version": 8, | ||
"minHeight": 1292, | ||
"parentColumnSpace": 1, | ||
"dynamicBindingPathList": [], | ||
"leftColumn": 0, | ||
"children": [ | ||
{ | ||
"isVisible": true, | ||
"label": "Data", | ||
"widgetName": "Table1", | ||
"searchKey": "", | ||
"tableData": "{{\n[\n {\n \"id\": 2381224,\n \"email\": \"[email protected]\",\n \"userName\": \"Michael Lawson\",\n \"productName\": \"Chicken Sandwich\",\n \"orderAmount\": 4.99\n },\n {\n \"id\": 2736212,\n \"email\": \"[email protected]\",\n \"userName\": \"Lindsay Ferguson\",\n \"productName\": \"Tuna Salad\",\n \"orderAmount\": 9.99\n },\n {\n \"id\": 6788734,\n \"email\": \"[email protected]\",\n \"userName\": \"Tobias Funke\",\n \"productName\": \"Beef steak\",\n \"orderAmount\": 19.99\n }\n]\n}}", | ||
"type": "TABLE_WIDGET", | ||
"isLoading": false, | ||
"parentColumnSpace": 74, | ||
"parentRowSpace": 40, | ||
"leftColumn": 2, | ||
"rightColumn": 10, | ||
"topRow": 12, | ||
"bottomRow": 19, | ||
"parentId": "0", | ||
"widgetId": "sb070qr2ir", | ||
"dsl": { | ||
"widgetName": "MainContainer", | ||
"backgroundColor": "none", | ||
"rightColumn": 1224, | ||
"snapColumns": 16, | ||
"detachFromLayout": true, | ||
"widgetId": "0", | ||
"topRow": 0, | ||
"bottomRow": 1280, | ||
"containerStyle": "none", | ||
"snapRows": 33, | ||
"parentRowSpace": 1, | ||
"type": "CANVAS_WIDGET", | ||
"canExtend": true, | ||
"version": 8, | ||
"minHeight": 1292, | ||
"parentColumnSpace": 1, | ||
"dynamicBindingPathList": [], | ||
"primaryColumns": { | ||
"id": { | ||
"index": 0, | ||
"width": 150, | ||
"id": "id", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"leftColumn": 0, | ||
"children": [{ | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "id", | ||
"computedValue": "" | ||
}, | ||
"email": { | ||
"index": 1, | ||
"width": 150, | ||
"id": "email", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "email", | ||
"computedValue": "" | ||
}, | ||
"userName": { | ||
"index": 2, | ||
"width": 150, | ||
"id": "userName", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "userName", | ||
"computedValue": "" | ||
}, | ||
"productName": { | ||
"index": 3, | ||
"width": 150, | ||
"id": "productName", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "productName", | ||
"computedValue": "" | ||
}, | ||
"orderAmount": { | ||
"index": 4, | ||
"width": 150, | ||
"id": "orderAmount", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "orderAmount", | ||
"computedValue": "" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
"label": "Data", | ||
"widgetName": "Table1", | ||
"searchKey": "", | ||
"tableData": "{{\n[\n {\n \"id\": 2381224,\n \"email\": \"[email protected]\",\n \"userName\": \"Michael Lawson\",\n \"productName\": \"Chicken Sandwich\",\n \"orderAmount\": 4.99\n },\n {\n \"id\": 2736212,\n \"email\": \"[email protected]\",\n \"userName\": \"Lindsay Ferguson\",\n \"productName\": \"Tuna Salad\",\n \"orderAmount\": 9.99\n },\n {\n \"id\": 6788734,\n \"email\": \"[email protected]\",\n \"userName\": \"Tobias Funke\",\n \"productName\": \"Beef steak\",\n \"orderAmount\": 19.99\n }\n]\n}}", | ||
"type": "TABLE_WIDGET", | ||
"isLoading": false, | ||
"parentColumnSpace": 74, | ||
"parentRowSpace": 40, | ||
"leftColumn": 2, | ||
"rightColumn": 10, | ||
"topRow": 12, | ||
"bottomRow": 19, | ||
"parentId": "0", | ||
"widgetId": "sb070qr2ir", | ||
"dynamicBindingPathList": [], | ||
"primaryColumns": { | ||
"id": { | ||
"index": 0, | ||
"width": 150, | ||
"id": "id", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "id", | ||
"computedValue": "" | ||
}, | ||
"email": { | ||
"index": 1, | ||
"width": 150, | ||
"id": "email", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "email", | ||
"computedValue": "" | ||
}, | ||
"userName": { | ||
"index": 2, | ||
"width": 150, | ||
"id": "userName", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "userName", | ||
"computedValue": "" | ||
}, | ||
"productName": { | ||
"index": 3, | ||
"width": 150, | ||
"id": "productName", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "productName", | ||
"computedValue": "" | ||
}, | ||
"orderAmount": { | ||
"index": 4, | ||
"width": 150, | ||
"id": "orderAmount", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "orderAmount", | ||
"computedValue": "" | ||
} | ||
} | ||
}] | ||
} | ||
} |
127 changes: 127 additions & 0 deletions
127
app/client/cypress/fixtures/tableNewDslWithPagination.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"dsl": { | ||
"widgetName": "MainContainer", | ||
"backgroundColor": "none", | ||
"rightColumn": 1224, | ||
"snapColumns": 16, | ||
"detachFromLayout": true, | ||
"widgetId": "0", | ||
"topRow": 0, | ||
"bottomRow": 1280, | ||
"containerStyle": "none", | ||
"snapRows": 33, | ||
"parentRowSpace": 1, | ||
"type": "CANVAS_WIDGET", | ||
"canExtend": true, | ||
"version": 8, | ||
"minHeight": 1292, | ||
"parentColumnSpace": 1, | ||
"dynamicBindingPathList": [], | ||
"leftColumn": 0, | ||
"children": [{ | ||
"isVisible": true, | ||
"label": "Data", | ||
"widgetName": "Table1", | ||
"searchKey": "", | ||
"tableData": "{{[\n {\n \"id\": 2381224,\n \"email\": \"[email protected]\",\n \"userName\": \"Michael Lawson\",\n \"productName\": \"Chicken Sandwich\",\n \"orderAmount\": 4.99\n },\n {\n \"id\": 2736212,\n \"email\": \"[email protected]\",\n \"userName\": \"Lindsay Ferguson\",\n \"productName\": \"Tuna Salad\",\n \"orderAmount\": 9.99\n },\n {\n \"id\": 6788734,\n \"email\": \"[email protected]\",\n \"userName\": \"Tobias Funke\",\n \"productName\": \"Beef steak\",\n \"orderAmount\": 19.99\n },\n {\n \"id\": 2381224,\n \"email\": \"[email protected]\",\n \"userName\": \"Michael Lawson\",\n \"productName\": \"Chicken Sandwich\",\n \"orderAmount\": 4.99\n },\n {\n \"id\": 2736212,\n \"email\": \"[email protected]\",\n \"userName\": \"Lindsay Ferguson\",\n \"productName\": \"Tuna Salad\",\n \"orderAmount\": 9.99\n },\n {\n \"id\": 6788734,\n \"email\": \"[email protected]\",\n \"userName\": \"Tobias Funke\",\n \"productName\": \"Beef steak\",\n \"orderAmount\": 19.99\n }\n]}}", | ||
"type": "TABLE_WIDGET", | ||
"isLoading": false, | ||
"parentColumnSpace": 74, | ||
"parentRowSpace": 40, | ||
"leftColumn": 2, | ||
"rightColumn": 10, | ||
"topRow": 12, | ||
"bottomRow": 19, | ||
"parentId": "0", | ||
"widgetId": "sb070qr2ir", | ||
"dynamicBindingPathList": [], | ||
"primaryColumns": { | ||
"id": { | ||
"index": 0, | ||
"width": 150, | ||
"id": "id", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "id", | ||
"computedValue": "" | ||
}, | ||
"email": { | ||
"index": 1, | ||
"width": 150, | ||
"id": "email", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "email", | ||
"computedValue": "" | ||
}, | ||
"userName": { | ||
"index": 2, | ||
"width": 150, | ||
"id": "userName", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "userName", | ||
"computedValue": "" | ||
}, | ||
"productName": { | ||
"index": 3, | ||
"width": 150, | ||
"id": "productName", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "productName", | ||
"computedValue": "" | ||
}, | ||
"orderAmount": { | ||
"index": 4, | ||
"width": 150, | ||
"id": "orderAmount", | ||
"horizontalAlignment": "LEFT", | ||
"verticalAlignment": "CENTER", | ||
"columnType": "text", | ||
"textColor": "#4E5D78", | ||
"textSize": "PARAGRAPH", | ||
"fontStyle": "NORMAL", | ||
"enableFilter": true, | ||
"enableSort": true, | ||
"isVisible": true, | ||
"isDerived": false, | ||
"label": "orderAmount", | ||
"computedValue": "" | ||
} | ||
} | ||
}] | ||
} | ||
} |
Oops, something went wrong.