Real small passable version of script view screen/widget

This commit is contained in:
2023-03-08 12:16:12 -06:00
parent d585994a48
commit a31661d150
5 changed files with 68 additions and 3 deletions

View File

@ -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();
} }
} }

View File

@ -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"

View 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": {
}
}

View 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": {
}
}
]
}

View 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": {
}
}