mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3384] Create automated tests for Version Component (#3631)
* fix version component restore and delete event * version manager actions * fix test * fix unit test * remove fdescribe * fix tslint * fix screenshot rewrite problem * remove fdescribe * multi instance try * remove fdescribe * try uncomment some test * error page * fix user preferences pagiantion * search page test include * fix type tslint e2e * restore code * default lang momentadapter * fix test * [ADF-3384] removed console log from test * [ADF-3384] adding some fixes for tests and code * [ADF-3384] fixed some test and code
This commit is contained in:
committed by
Eugenio Romano
parent
17074478e2
commit
a12662e7e2
@@ -20,7 +20,7 @@ var exports = module.exports = {};
|
||||
/**
|
||||
*Rest API Response statusCodes
|
||||
*/
|
||||
exports.HTTP_RESPONSE_STATUS_CODE ={
|
||||
exports.HTTP_RESPONSE_STATUS_CODE = {
|
||||
FORBIDDEN: 403,
|
||||
OK: 200,
|
||||
BAD_REQUEST: 400,
|
||||
@@ -32,7 +32,7 @@ exports.HTTP_RESPONSE_STATUS_CODE ={
|
||||
/**
|
||||
*Rest API Response Messages
|
||||
*/
|
||||
exports.HTTP_RESPONSE_STATUS ={
|
||||
exports.HTTP_RESPONSE_STATUS = {
|
||||
OK: {
|
||||
'CODE': 200,
|
||||
'MESSAGE': 'OK'
|
||||
@@ -55,8 +55,8 @@ exports.HTTP_RESPONSE_STATUS ={
|
||||
*Rest API HTTP content types
|
||||
*/
|
||||
exports.HTTP_CONTENT_TYPE = {
|
||||
JSON : 'application/json',
|
||||
URLENCODED : 'application/x-www-form-urlencoded',
|
||||
JSON: 'application/json',
|
||||
URLENCODED: 'application/x-www-form-urlencoded',
|
||||
IMAGE_PNG: 'image/png',
|
||||
TEXT: 'text/csv'
|
||||
};
|
||||
@@ -120,3 +120,10 @@ exports.PROCESSSTATUS = {
|
||||
RUNNING: 'Running',
|
||||
COMPLETED: 'Completed'
|
||||
};
|
||||
|
||||
exports.CS_USER_ROLES = {
|
||||
CONSUMER: 'SiteConsumer',
|
||||
COLLABORATOR: 'SiteCollaborator',
|
||||
CONTRIBUTOR: 'SiteContributor',
|
||||
MANAGER: 'SiteManager'
|
||||
};
|
||||
|
@@ -182,11 +182,27 @@ exports.Files = {
|
||||
file_location: "/resources/adf/allFileTypes/a_png_file.png",
|
||||
file_name: "a_png_file.png"
|
||||
},
|
||||
PNG_B: {
|
||||
file_location: "/resources/adf/allFileTypes/b_png_file.png",
|
||||
file_name: "b_png_file.png"
|
||||
},
|
||||
PNG_C: {
|
||||
file_location: "/resources/adf/allFileTypes/c_png_file.png",
|
||||
file_name: "c_png_file.png"
|
||||
},
|
||||
PNG_D: {
|
||||
file_location: "/resources/adf/allFileTypes/d_png_file.png",
|
||||
file_name: "d_png_file.png"
|
||||
},
|
||||
PPT: {
|
||||
file_location: "/resources/adf/allFileTypes/a_ppt_file.pptx",
|
||||
file_name: "a_ppt_file.pptx",
|
||||
first_page_text: "PPTX test file"
|
||||
},
|
||||
PPT_B: {
|
||||
file_location: "/resources/adf/allFileTypes/b_ppt_file.pptx",
|
||||
file_name: "b_ppt_file.pptx"
|
||||
},
|
||||
TEST: {
|
||||
file_location: "/resources/adf/allFileTypes/testExtension.test",
|
||||
file_name: "testExtension.test"
|
||||
|
Reference in New Issue
Block a user