Commit b12b5614 authored by Alexandra's avatar Alexandra Committed by Alain Takoudjou

Mynij Search: Details useful for ui tests

parent 72f90ee2
......@@ -37,16 +37,8 @@
})
.declareMethod("handleSubmit", function (content_dict, parent_options) {
var return_submit_dict = {
notify: {
message: "Hello",
status: "Status"
},
redirect: {
command: "raw",
options: {"url" : "#/" + parent_options.action_options.jio_key}
}
}, gadget = this,
var return_submit_dict,
gadget = this,
list = parent_options.doc.links,
index_name = parent_options.doc.title,
property;
......@@ -55,7 +47,17 @@
.push(function(){
return gadget.state.parser_gadget.parse_user_entry_list(list, index_name);
})
.push(function(){
.push(function(result){
return_submit_dict = {
notify: {
message: "Index built : " + result + " item(s) added.",
status: "Status"
},
redirect: {
command: "raw",
options: {"url" : "#/" + parent_options.action_options.jio_key}
}
}
return return_submit_dict;
})
});
......
......@@ -70,6 +70,7 @@
.push(function(){
console.log("Index saved : ");
console.log(gadget.state.indices[index_name].info());
return gadget.state.indices[index_name].info().items;
})
.push(undefined, function (my_error) {
console.log(my_error);
......
......@@ -91,7 +91,7 @@
<item>
<key> <string>text_content</string> </key>
<value> <string>CONFIGURATION MANIFEST\n
# generated on Sun Aug 9 11:17:44 2020\n
# generated on Tue Aug 11 15:11:01 2020\n
CACHE:\n
\n
hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL015bmlqIFNlYXJjaCBDb2xsZWN0aW9uIE1vZHVsZQ==\n
......
......@@ -281,6 +281,10 @@
<key> <string>title</string> </key>
<value> <string>Mynij Search</string> </value>
</item>
<item>
<key> <string>user_allowed_login</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
......
......@@ -227,6 +227,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>authorization_forced</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
......
......@@ -146,6 +146,10 @@
<key> <string>id</string> </key>
<value> <string>hateoas_appcache</string> </value>
</item>
<item>
<key> <string>layout_configuration_form_id</string> </key>
<value> <string>WebSection_viewOfficeJSApplicationPreference</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Static Web Section</string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment