mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Real small passable version of script view screen/widget
This commit is contained in:
@ -42,6 +42,9 @@ public class ScriptTableTest extends QBaseSeleniumTest
|
|||||||
super.addJavalinRoutes(qSeleniumJavalin);
|
super.addJavalinRoutes(qSeleniumJavalin);
|
||||||
qSeleniumJavalin
|
qSeleniumJavalin
|
||||||
.withRouteToFile("/data/script/1", "data/script/1.json")
|
.withRouteToFile("/data/script/1", "data/script/1.json")
|
||||||
|
.withRouteToFile("/data/scriptType/1", "data/scriptType/1.json")
|
||||||
|
.withRouteToFile("/data/scriptRevision/query", "data/scriptRevision/query.json")
|
||||||
|
.withRouteToFile("/data/scriptRevision/100", "data/scriptRevision/100.json")
|
||||||
.withRouteToFile("/metaData/table/script", "metaData/table/script.json")
|
.withRouteToFile("/metaData/table/script", "metaData/table/script.json")
|
||||||
.withRouteToFile("/widget/scriptViewer", "widget/scriptViewer.json")
|
.withRouteToFile("/widget/scriptViewer", "widget/scriptViewer.json")
|
||||||
;
|
;
|
||||||
@ -57,9 +60,11 @@ public class ScriptTableTest extends QBaseSeleniumTest
|
|||||||
{
|
{
|
||||||
qSeleniumLib.gotoAndWaitForBreadcrumbHeader("/developer/script/1", "Hello, Script");
|
qSeleniumLib.gotoAndWaitForBreadcrumbHeader("/developer/script/1", "Hello, Script");
|
||||||
|
|
||||||
qSeleniumLib.waitForSelectorContaining("span", "uh, script");
|
qSeleniumLib.waitForSelectorContaining("DIV.ace_line", "var hello;");
|
||||||
|
qSeleniumLib.waitForSelectorContaining("DIV", "2nd commit");
|
||||||
|
qSeleniumLib.waitForSelectorContaining("DIV", "Initial checkin");
|
||||||
|
|
||||||
// qSeleniumLib.waitForever();
|
qSeleniumLib.waitForever();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"values": {
|
"values": {
|
||||||
"name": "Hello, Script",
|
"name": "Hello, Script",
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
"currentScriptRevisionId": 100,
|
||||||
"tableName": "client",
|
"tableName": "client",
|
||||||
"createDate": "2023-02-18T00:47:51Z",
|
"createDate": "2023-02-18T00:47:51Z",
|
||||||
"modifyDate": "2023-02-18T00:47:51Z",
|
"modifyDate": "2023-02-18T00:47:51Z",
|
||||||
@ -11,8 +12,9 @@
|
|||||||
},
|
},
|
||||||
"displayValues": {
|
"displayValues": {
|
||||||
"tableName": "Client",
|
"tableName": "Client",
|
||||||
"scriptTypeId": "Unknown",
|
"scriptTypeId": "Record Script",
|
||||||
"name": "Hello, Script",
|
"name": "Hello, Script",
|
||||||
|
"currentScriptRevisionId": 100,
|
||||||
"id": "1",
|
"id": "1",
|
||||||
"createDate": "2023-02-18T00:47:51Z",
|
"createDate": "2023-02-18T00:47:51Z",
|
||||||
"modifyDate": "2023-02-18T00:47:51Z"
|
"modifyDate": "2023-02-18T00:47:51Z"
|
||||||
|
14
src/test/resources/fixtures/data/scriptRevision/100.json
Normal file
14
src/test/resources/fixtures/data/scriptRevision/100.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"tableName": "scriptRevision",
|
||||||
|
"values": {
|
||||||
|
"contents": "var hello;",
|
||||||
|
"id": 100,
|
||||||
|
"commitMessage": "Initial checkin",
|
||||||
|
"author": "Jon Programmer",
|
||||||
|
"createDate": "2023-02-18T00:47:51Z",
|
||||||
|
"modifyDate": "2023-02-18T00:47:51Z"
|
||||||
|
},
|
||||||
|
"displayValues": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
32
src/test/resources/fixtures/data/scriptRevision/query.json
Normal file
32
src/test/resources/fixtures/data/scriptRevision/query.json
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"records": [
|
||||||
|
{
|
||||||
|
"tableName": "scriptRevision",
|
||||||
|
"values": {
|
||||||
|
"contents": "var hello;",
|
||||||
|
"id": 100,
|
||||||
|
"sequenceNo": 2,
|
||||||
|
"commitMessage": "2nd commit",
|
||||||
|
"author": "Jon Programmer",
|
||||||
|
"createDate": "2023-02-18T00:47:51Z",
|
||||||
|
"modifyDate": "2023-02-18T00:47:51Z"
|
||||||
|
},
|
||||||
|
"displayValues": {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tableName": "scriptRevision",
|
||||||
|
"values": {
|
||||||
|
"contents": "var goodBye;",
|
||||||
|
"id": 99,
|
||||||
|
"sequenceNo": 1,
|
||||||
|
"commitMessage": "Initial checkin",
|
||||||
|
"author": "Jane Programmer",
|
||||||
|
"createDate": "2023-02-17T00:47:51Z",
|
||||||
|
"modifyDate": "2023-02-17T00:47:51Z"
|
||||||
|
},
|
||||||
|
"displayValues": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
12
src/test/resources/fixtures/data/scriptType/1.json
Normal file
12
src/test/resources/fixtures/data/scriptType/1.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"tableName": "scriptType",
|
||||||
|
"recordLabel": "Record Script",
|
||||||
|
"values": {
|
||||||
|
"name": "Record Script",
|
||||||
|
"id": 1,
|
||||||
|
"createDate": "2023-02-18T00:47:51Z",
|
||||||
|
"modifyDate": "2023-02-18T00:47:51Z"
|
||||||
|
},
|
||||||
|
"displayValues": {
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user