Skip to content

Commit

Permalink
Fixed regression on autocomplete feature of object.
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Jun 6, 2024
1 parent a8b1df2 commit 632dd5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 9 additions & 8 deletions source/src/main/webapp/js/global/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ function initTags(configs, context) {

return Promise.all([objectsPromise]).then(function (data) {
var availableObjects = data[0];
// console.info(availableObjects);
var availableProperties = testCaseProperties.concat(inheritedProperties.filter(function (item) {
return testCaseProperties.indexOf(item) < 0;
}));
Expand Down Expand Up @@ -493,14 +494,6 @@ function initTags(configs, context) {
"X-Requested-With"
];
let tags = [
{
name: 'datalibProperty',
array: availableDatalibProperties,
regex: "%datalib\\.[^\\.]*\\.",
addBefore: "",
addAfter: "%",
isCreatable: false
},
{
name: 'objectProperty',
array: availableObjectProperties,
Expand All @@ -517,6 +510,14 @@ function initTags(configs, context) {
addAfter: ".",
isCreatable: true
},
{
name: 'datalibProperty',
array: availableDatalibProperties,
regex: "%datalib\\.[^\\.]*\\.",
addBefore: "",
addAfter: "%",
isCreatable: false
},
{
name: 'datalib',
array: availableObjects,
Expand Down
2 changes: 2 additions & 0 deletions source/src/main/webapp/js/pages/TestCaseScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -3634,6 +3634,8 @@ var autocompleteAllFields, getTags, setTags, handlerToDeleteOnStepChange = [];
.attr("src", "ReadApplicationObjectImage?application=" + tcInfo.application + "&object=" + name + "&time=" + new Date().getTime())
.attr("data-toggle", "tooltip").attr("title", name).attr("onclick", "displayPictureOfMinitature1(this)");
}
console.info(TagsToUse[1]);
console.info(name);
if (!objectIntoTagToUseExist(TagsToUse[1], name)) {
var addEntry = $('<span class="input-group-btn many ' + name + '"><button id="editEntry" onclick="openModalApplicationObject(\'' + tcInfo.application + '\', \'' + name + '\',\'ADD\' ,\'testCaseScript\' );"\n\
class="buttonObject btn btn-default input-sm " \n\
Expand Down

0 comments on commit 632dd5a

Please sign in to comment.