diff --git a/build/run.e2e.translations.tests.bat b/build/run.e2e.translations.tests.bat index aea5cf212c..cb1284a694 100644 --- a/build/run.e2e.translations.tests.bat +++ b/build/run.e2e.translations.tests.bat @@ -27,14 +27,10 @@ powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y REM fix paths -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf" -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf" -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-mail.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Mail\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-mail.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf" -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf" REM restart nginx diff --git a/build/run.e2e.translations.tests.personal.bat b/build/run.e2e.translations.tests.personal.bat new file mode 100644 index 0000000000..93e7bd2f43 --- /dev/null +++ b/build/run.e2e.translations.tests.personal.bat @@ -0,0 +1,67 @@ +@echo off + +PUSHD %~dp0 +call runasadmin.bat "%~dpnx0" + +if %errorlevel% == 0 ( +PUSHD %~dp0.. + + +echo "mode=" + + +REM call yarn wipe +call yarn install + +call yarn build:test.translation:personal + +REM call yarn wipe +call yarn deploy:personal + + + +REM copy nginx configurations to deploy folder +xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y +powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | Out-File -encoding ASCII build\deploy\nginx\onlyoffice.conf" + +xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y + +REM fix paths +powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf" +powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf" +powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf" +powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf" +powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf" + +REM restart nginx +echo service nginx stop +call sc stop nginx > nul + +REM sleep 5 seconds +call ping 127.0.0.1 -n 6 > nul + +echo service nginx start +call sc start nginx > nul + +REM sleep 5 seconds +call ping 127.0.0.1 -n 6 > nul + +call yarn e2e.test:translation:personal + +exit + + + +if NOT %errorlevel% == 0 ( + echo Couldn't restarte Onlyoffice%%~nf service +) + +) + +echo. + +POPD + +if "%1"=="nopause" goto start +pause +:start \ No newline at end of file diff --git a/package.json b/package.json index 89695ad573..5bfca360d0 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "build:personal": "lerna run build:personal --parallel --scope {@appserver/studio,@appserver/people,@appserver/files,@appserver/editor}", "build:test": "lerna run build:test --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc --ignore @appserver/debug-info", "build:test.translation": "lerna run build:test.translation --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc --ignore @appserver/debug-info", + "build:test.translation:personal": "lerna run build:test.translation:personal --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc --ignore @appserver/debug-info", "bump": "lerna version --no-push --no-git-tag-version", "clean": "lerna run clean --parallel", "deploy": "shx rm -rf build/deploy/products && shx rm -rf build/deploy/public && shx rm -rf build/deploy/studio && lerna run deploy --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc && shx cp -r public build/deploy", @@ -44,7 +45,8 @@ "e2e.test": "lerna run test:sequential --parallel --scope {@appserver/people,@appserver/files,@appserver/login}", "e2e.test:sequential": "yarn workspace @appserver/people test:sequential && yarn workspace @appserver/files test:sequential && yarn workspace @appserver/login test:sequential", "e2e.test:model": "yarn workspace @appserver/people test:model && yarn workspace @appserver/files test:model && yarn workspace @appserver/login test:model", - "e2e.test:translation": "lerna run test:translation --parallel --scope {@appserver/people,@appserver/files}" + "e2e.test:translation": "lerna run test:translation:model --parallel --scope {@appserver/people,@appserver/files} && lerna run test:translation --parallel --scope {@appserver/people,@appserver/files}", + "e2e.test:translation:personal": "lerna run test:translation:model:personal --parallel --scope {@appserver/people,@appserver/files} && lerna run test:translation:personal --parallel --scope {@appserver/people,@appserver/files}" }, "devDependencies": { "auto-changelog": "https://github.com/ONLYOFFICE/auto-changelog.git#master", diff --git a/packages/asc-web-components/table-container/StyledTableContainer.js b/packages/asc-web-components/table-container/StyledTableContainer.js index f2646ef43c..6e8f1e082f 100644 --- a/packages/asc-web-components/table-container/StyledTableContainer.js +++ b/packages/asc-web-components/table-container/StyledTableContainer.js @@ -263,7 +263,7 @@ const StyledTableHeaderCell = styled.div` color: ${(props) => props.isActive ? props.theme.tableContainer.header.activeTextColor - : props.theme.tableContainer.header.textColor} !important; + : props.theme.tableContainer.header.textColor}; &:hover { color: ${(props) => diff --git a/products/ASC.Files/Client/.gitignore b/products/ASC.Files/Client/.gitignore index df12414764..62bd82d8a2 100644 --- a/products/ASC.Files/Client/.gitignore +++ b/products/ASC.Files/Client/.gitignore @@ -7,6 +7,7 @@ /coverage /tests/output /tests/reports +/tests/screenshots/translation # production /build diff --git a/products/ASC.Files/Client/codecept.conf.js b/products/ASC.Files/Client/codecept.conf.js index 8a94847297..9c77246f20 100644 --- a/products/ASC.Files/Client/codecept.conf.js +++ b/products/ASC.Files/Client/codecept.conf.js @@ -26,14 +26,14 @@ const isModel = !!process.env.MODEL; const screenshotOutput = isTranslation ? isModel - ? `./tests/screenshots/translation/${browser}/${deviceType}` - : `./tests/output/translation/${browser}/${deviceType}` + ? `./tests/screenshots/translation/` + : `./tests/output/translation/` : isModel ? `./tests/screenshots/${browser}/${deviceType}` : `./tests/output/${browser}/${deviceType}`; const baseFolder = isTranslation - ? `./tests/screenshots/translation/${browser}/${deviceType}` + ? `./tests/screenshots/translation` : `./tests/screenshots/${browser}/${deviceType}`; const tests = isTranslation @@ -63,6 +63,12 @@ if (isTranslation) { fs.mkdir(diffFolder, { recursive: true }, (err) => { if (err) throw err; }); + + if (isModel) { + fs.rmdir(screenshotOutput, { recursive: true }, (err) => { + if (err) throw err; + }); + } } exports.config = { diff --git a/products/ASC.Files/Client/package.json b/products/ASC.Files/Client/package.json index 32a306acbd..1a0a98753f 100644 --- a/products/ASC.Files/Client/package.json +++ b/products/ASC.Files/Client/package.json @@ -8,6 +8,7 @@ "build:personal": "webpack --mode production --env personal=true", "build:test": "webpack --env minimize=false --mode production", "build:test.translation": "webpack --env minimize=false hideText=true --mode production", + "build:test.translation:personal": "webpack --env minimize=false hideText=true personal=true --mode production", "clean": "shx rm -rf dist", "deploy": "shx --silent mkdir -p ../../../build/deploy/products/ASC.Files/client && shx cp -r dist/* ../../../build/deploy/products/ASC.Files/client", "serve": "serve dist -p 5008", @@ -19,12 +20,14 @@ "test:smallTablet": "cross-env DEVICE_TYPE=smallTablet yarn test:codeceptjs", "test:tablet": "cross-env DEVICE_TYPE=tablet yarn test:codeceptjs", "test:desktop": "cross-env DEVICE_TYPE=desktop yarn test:codeceptjs ", - "test:translation": "cross-env DEVICE_TYPE=desktop translation=true yarn test:codeceptjs --profile chromium", + "test:translation": "cross-env DEVICE_TYPE=desktop translation=true yarn test:codeceptjs --profile chromium ", + "test:translation:personal": "cross-env DEVICE_TYPE=desktop translation=true personal=true yarn test:codeceptjs --profile chromium ", "test:mobile:model": "cross-env DEVICE_TYPE=mobile MODEL=true yarn test:codeceptjs", "test:smallTablet:model": "cross-env DEVICE_TYPE=smallTablet MODEL=true yarn test:codeceptjs", "test:tablet:model": "cross-env DEVICE_TYPE=tablet MODEL=true yarn test:codeceptjs", "test:desktop:model": "cross-env DEVICE_TYPE=desktop MODEL=true yarn test:codeceptjs", - "test:translation:model": "cross-env DEVICE_TYPE=desktop MODEL=true TRANSLATION=true yarn test:codeceptjs --profile chromium", + "test:translation:model": "cross-env DEVICE_TYPE=desktop MODEL=true translation=true yarn test:codeceptjs --profile chromium && node tests/helpers/cloneModelScreenshot.js", + "test:translation:model:personal": "cross-env DEVICE_TYPE=desktop MODEL=true translation=true personal=true yarn test:codeceptjs --profile chromium && node tests/helpers/cloneModelScreenshot.js", "test:chromium:parallel": "run-p -c \"test:mobile --profile chromium \" \"test:smallTablet --profile chromium \" \"test:tablet --profile chromium \" \"test:desktop --profile chromium \" && yarn test:parse-xml", "test:chromium:sequential": "run-s -c \"test:mobile --profile chromium \" \"test:smallTablet --profile chromium \" \"test:tablet --profile chromium \" \"test:desktop --profile chromium \" && yarn test:parse-xml", "test:chromium:model": "run-s -c \"test:mobile:model --profile chromium \" \"test:smallTablet:model --profile chromium \" \"test:tablet:model --profile chromium \" \"test:desktop:model --profile chromium \" && yarn test:parse-xml", diff --git a/products/ASC.Files/Client/steps_file.js b/products/ASC.Files/Client/steps_file.js index 5fadef46bc..a55a2befac 100644 --- a/products/ASC.Files/Client/steps_file.js +++ b/products/ASC.Files/Client/steps_file.js @@ -17,6 +17,7 @@ module.exports = function () { this.mockEndpoint(Endpoints.capabilities, "capabilities"); this.mockEndpoint(Endpoints.thirdparty, "thirdparty"); this.mockEndpoint(Endpoints.thumbnails, "thumbnails"); + this.mockEndpoint(Endpoints.getFolder(1), "1"); }, selectAuthor: function () { diff --git a/products/ASC.Files/Client/tests/helpers/changeCulture.js b/products/ASC.Files/Client/tests/helpers/changeCulture.js index 58ad47d628..e554a889cb 100644 --- a/products/ASC.Files/Client/tests/helpers/changeCulture.js +++ b/products/ASC.Files/Client/tests/helpers/changeCulture.js @@ -1,34 +1,49 @@ -const fs = require('fs'); -const path = require('path'); +const fs = require("fs"); +const path = require("path"); const settingsFile = require(path.resolve( __dirname, - '../mocking/mock-data/settings/settingsTranslation.json', + "../mocking/mock-data/settings/settingsTranslation.json" +)); + +const settingsFilePersonal = require(path.resolve( + __dirname, + "../mocking/mock-data/settings/settingsTranslationPersonal.json" )); const selfFile = require(path.resolve( __dirname, - '../mocking/mock-data/people/selfTranslation.json', + "../mocking/mock-data/people/selfTranslation.json" )); -function changeCulture(culture) { - settingsFile.response.culture = culture; +function changeCulture(culture, isPersonal) { + if (isPersonal) { + settingsFilePersonal.response.culture = culture; + } else { + settingsFile.response.culture = culture; + } selfFile.response.cultureName = culture; fs.writeFile( - path.resolve(__dirname, '../mocking/mock-data/settings/settingsTranslation.json'), - JSON.stringify(settingsFile, null, 2), + path.resolve( + __dirname, + `../mocking/mock-data/settings/settingsTranslation${ + isPersonal ? "Personal" : "" + }.json` + ), + + JSON.stringify(isPersonal ? settingsFilePersonal : settingsFile, null, 2), function writeJSON(err) { if (err) return console.log(err); - }, + } ); fs.writeFile( - path.resolve(__dirname, '../mocking/mock-data/people/selfTranslation.json'), + path.resolve(__dirname, "../mocking/mock-data/people/selfTranslation.json"), JSON.stringify(selfFile, null, 2), function writeJSON(err) { if (err) return console.log(err); - }, + } ); } diff --git a/products/ASC.Files/Client/tests/helpers/cloneModelScreenshot.js b/products/ASC.Files/Client/tests/helpers/cloneModelScreenshot.js new file mode 100644 index 0000000000..16c24e3fb0 --- /dev/null +++ b/products/ASC.Files/Client/tests/helpers/cloneModelScreenshot.js @@ -0,0 +1,80 @@ +var path = require("path"); +var fs = require("fs"); +var async = require("async"); + +const config = require("../../../../../config/appsettings.json"); +const cultures = config.web.cultures.split(","); + +function getFiles(dirPath, callback) { + fs.readdir(dirPath, function (err, files) { + if (err) return callback(err); + + var filePaths = []; + async.eachSeries( + files, + function (fileName, eachCallback) { + var filePath = path.join(dirPath, fileName); + + fs.stat(filePath, function (err, stat) { + if (err) return eachCallback(err); + + if (stat.isDirectory()) { + getFiles(filePath, function (err, subDirFiles) { + if (err) return eachCallback(err); + + filePaths = filePaths.concat(subDirFiles); + eachCallback(null); + }); + } else { + if (stat.isFile() && /\.png$/.test(filePath)) { + filePaths.push(filePath); + } + + eachCallback(null); + } + }); + }, + function (err) { + callback(err, filePaths); + } + ); + }); +} + +function getClonePath(filePath, culture) { + const splitFilePath = filePath.split("\\"); + + const splitFileName = splitFilePath[splitFilePath.length - 1].split("-"); + + splitFileName[0] = culture; + + splitFilePath[splitFilePath.length - 1] = splitFileName.join("-"); + + const copyPath = splitFilePath.join("\\"); + + return copyPath; +} + +function copyFile(filePath) { + cultures.forEach((culture) => { + const copyPath = getClonePath(filePath, culture); + + fs.copyFile(filePath, copyPath, (err) => { + if (err) console.log(err); + }); + }); +} + +const pathToModels = path.resolve(__dirname, "../screenshots/translation"); + +function cloneModelScreenshot() { + getFiles(pathToModels, function (err, files) { + if (err) console.log(err); + + files.forEach((file) => { + copyFile(file); + }); + }); +} + +cloneModelScreenshot(); diff --git a/products/ASC.Files/Client/tests/ignoringCultures.json b/products/ASC.Files/Client/tests/ignoringCultures.json index 453711fac6..c761d0b699 100644 --- a/products/ASC.Files/Client/tests/ignoringCultures.json +++ b/products/ASC.Files/Client/tests/ignoringCultures.json @@ -2,5 +2,9 @@ "mainPage": ["en"], "profileMenu": ["en"], "mainButton": ["en"], - "tableSettings": ["en"] + "tableSettings": ["en"], + "addButton": ["en"], + "sortMenu": ["en"], + "filterBlock": ["en"], + "contextMenu": ["en"] } diff --git a/products/ASC.Files/Client/tests/mocking/mock-data/files/root/personal.json b/products/ASC.Files/Client/tests/mocking/mock-data/files/root/personal.json new file mode 100644 index 0000000000..a65814d9f2 --- /dev/null +++ b/products/ASC.Files/Client/tests/mocking/mock-data/files/root/personal.json @@ -0,0 +1,213 @@ +{ + "count": 4, + "response": [ + { + "files": [], + "folders": [ + { + "parentId": 1, + "filesCount": 0, + "foldersCount": 0, + "new": 0, + "id": 54, + "rootFolderId": 1, + "canShare": true, + "canEdit": true, + "title": "1", + "access": 0, + "shared": false, + "created": "2022-02-18T07:20:22.0000000Z", + "createdBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + }, + "updated": "2022-02-18T07:20:22.0000000Z", + "rootFolderType": 5, + "updatedBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + } + }, + { + "parentId": 1, + "filesCount": 54, + "foldersCount": 40, + "new": 0, + "id": 9, + "rootFolderId": 1, + "canShare": true, + "canEdit": true, + "title": "New folder", + "access": 0, + "shared": false, + "created": "2022-02-01T08:18:04.0000000Z", + "createdBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + }, + "updated": "2022-02-14T07:13:55.0000000Z", + "rootFolderType": 5, + "updatedBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + } + } + ], + "current": { + "parentId": 0, + "filesCount": 6392, + "foldersCount": 42, + "isShareable": true, + "new": 0, + "id": 1, + "rootFolderId": 1, + "canShare": true, + "canEdit": true, + "title": "My documents", + "access": 0, + "shared": false, + "created": "2022-01-27T11:58:30.0000000Z", + "createdBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + }, + "updated": "2022-02-18T07:25:06.0000000Z", + "rootFolderType": 5, + "updatedBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + } + }, + "pathParts": [1], + "startIndex": 0, + "count": 2, + "total": 2, + "new": 0 + }, + { + "files": [], + "folders": [], + "current": { + "parentId": 0, + "filesCount": 0, + "foldersCount": 0, + "new": 0, + "id": 3, + "rootFolderId": 3, + "canShare": false, + "canEdit": false, + "title": "Favorites", + "access": 0, + "shared": false, + "created": "2022-01-27T11:58:38.0000000Z", + "createdBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + }, + "updated": "2022-01-27T11:58:38.0000000Z", + "rootFolderType": 10, + "updatedBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + } + }, + "pathParts": [3], + "startIndex": 0, + "count": 0, + "total": 0, + "new": 0 + }, + { + "files": [], + "folders": [], + "current": { + "parentId": 0, + "filesCount": 0, + "foldersCount": 0, + "new": 0, + "id": 4, + "rootFolderId": 4, + "canShare": false, + "canEdit": false, + "title": "Recent", + "access": 0, + "shared": false, + "created": "2022-01-27T11:58:38.0000000Z", + "createdBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + }, + "updated": "2022-01-27T11:58:38.0000000Z", + "rootFolderType": 11, + "updatedBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + } + }, + "pathParts": [4], + "startIndex": 0, + "count": 0, + "total": 0, + "new": 0 + }, + { + "files": [], + "folders": [], + "current": { + "parentId": 0, + "filesCount": 0, + "foldersCount": 0, + "new": 0, + "id": 7, + "rootFolderId": 7, + "canShare": false, + "canEdit": false, + "title": "Trash", + "access": 0, + "shared": false, + "created": "2022-01-27T11:58:39.0000000Z", + "createdBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + }, + "updated": "2022-01-27T11:58:39.0000000Z", + "rootFolderType": 3, + "updatedBy": { + "id": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "displayName": "Administrator ", + "avatarSmall": "/images/default_user_photo_size_32-32.png", + "profileUrl": "http://localhost:8092/products/people/view/administrator" + } + }, + "pathParts": [7], + "startIndex": 0, + "count": 0, + "total": 0, + "new": 0 + } + ], + "status": 0, + "statusCode": 200 +} diff --git a/products/ASC.Files/Client/tests/mocking/mock-data/settings/settingsPersonal.json b/products/ASC.Files/Client/tests/mocking/mock-data/settings/settingsPersonal.json new file mode 100644 index 0000000000..85eebe59c1 --- /dev/null +++ b/products/ASC.Files/Client/tests/mocking/mock-data/settings/settingsPersonal.json @@ -0,0 +1,28 @@ +{ + "count": 1, + "response": { + "timezone": "UTC", + "trustedDomains": [], + "trustedDomainsType": 1, + "culture": "en", + "utcOffset": "00:00:00", + "utcHoursOffset": 0, + "greetingSettings": "Web Office", + "ownerId": "3e71bbca-7f67-11ec-aaa4-80ce62334fc7", + "nameSchemaId": "Common", + "personal": true, + "firebase": { + "apiKey": "", + "authDomain": "", + "projectId": "", + "storageBucket": "", + "messagingSenderId": "", + "appId": "", + "measurementId": "" + }, + "version": "11.5.0", + "debugInfo": true + }, + "status": 0, + "statusCode": 200 +} diff --git a/products/ASC.Files/Client/tests/mocking/mock-data/settings/settingsTranslationPersonal.json b/products/ASC.Files/Client/tests/mocking/mock-data/settings/settingsTranslationPersonal.json new file mode 100644 index 0000000000..0df302c73d --- /dev/null +++ b/products/ASC.Files/Client/tests/mocking/mock-data/settings/settingsTranslationPersonal.json @@ -0,0 +1,40 @@ +{ + "count": 1, + "response": { + "timezone": "UTC", + "trustedDomains": [], + "trustedDomainsType": 1, + "culture": "az", + "utcOffset": { + "ticks": 0, + "days": 0, + "hours": 0, + "milliseconds": 0, + "minutes": 0, + "seconds": 0, + "totalDays": 0, + "totalHours": 0, + "totalMilliseconds": 0, + "totalMinutes": 0, + "totalSeconds": 0 + }, + "utcHoursOffset": 0, + "greetingSettings": "Web Office", + "ownerId": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7", + "nameSchemaId": "Common", + "personal": true, + "firebase": { + "apiKey": "", + "authDomain": "", + "projectId": "", + "storageBucket": "", + "messagingSenderId": "", + "appId": "", + "measurementId": "" + }, + "version": "11.5.0", + "debugInfo": true + }, + "status": 0, + "statusCode": 200 +} diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/az-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/bg-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/cs-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-profile-menu.png deleted file mode 100644 index 804bbb07d8..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/de-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/el-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-US-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/en-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/es-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-profile-menu.png deleted file mode 100644 index 804bbb07d8..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fi-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/fr-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/it-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-profile-menu.png deleted file mode 100644 index 023faff172..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ja-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ko-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lo-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/lv-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/nl-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pl-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-table-settings.png deleted file mode 100644 index 4265a39376..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-BR-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/pt-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ro-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/ru-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-profile-menu.png deleted file mode 100644 index f761263ac6..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sk-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/sl-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/tr-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-main-page.png deleted file mode 100644 index abd218f1f1..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/uk-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-table-settings.png deleted file mode 100644 index 7f26adee07..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/vi-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-button.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-button.png deleted file mode 100644 index 16a230a795..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-button.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-page.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-page.png deleted file mode 100644 index f8c506e4b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-page.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-profile-menu.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-profile-menu.png deleted file mode 100644 index 5bbb57422b..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-profile-menu.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-table-settings.png b/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-table-settings.png deleted file mode 100644 index 44f34996b9..0000000000 Binary files a/products/ASC.Files/Client/tests/screenshots/translation/chromium/desktop/zh-CN-table-settings.png and /dev/null differ diff --git a/products/ASC.Files/Client/tests/translation_tests.js b/products/ASC.Files/Client/tests/translation_tests.js index 94333aab27..d7e56aea1c 100644 --- a/products/ASC.Files/Client/tests/translation_tests.js +++ b/products/ASC.Files/Client/tests/translation_tests.js @@ -1,38 +1,46 @@ -const Endpoints = require('./mocking/endpoints.js'); -const changeCulture = require('./helpers/changeCulture.js'); -const config = require('../../../../config/appsettings.json'); -const ignoringCultures = require('./ignoringCultures.json'); - -const cultures = config.web.cultures.split(','); +const Endpoints = require("./mocking/endpoints.js"); +const changeCulture = require("./helpers/changeCulture.js"); +const config = require("../../../../config/appsettings.json"); +const ignoringCultures = require("./ignoringCultures.json"); const isModel = !!process.env.MODEL; -const featureName = isModel ? `Files translation(model) ` : `Files translation tests`; +const cultures = isModel ? ["en"] : config.web.cultures.split(","); + +const isPersonal = !!process.env.PERSONAL; + +const settingsFile = isPersonal ? `settingsPersonal` : `settings`; + +const settingsTranslationFile = isPersonal + ? `settingsTranslationPersonal` + : `settingsTranslation`; + +const featureName = isModel + ? `Files translation(model) ` + : `Files translation tests`; Feature(featureName, { timeout: 90 }); Before(async ({ I }) => { I.mockData(); + if (isPersonal) { + I.mockEndpoint(Endpoints.settings, settingsFile); + I.mockEndpoint(Endpoints.root, "personal"); + } }); for (const culture of cultures) { Scenario(`Main page test ${culture}`, { timeout: 30 }, ({ I }) => { - changeCulture(culture); - const isExсeption = ignoringCultures.mainPage.indexOf(culture) != -1; - console.log(isExсeption || !isModel, culture); - I.mockEndpoint(Endpoints.root, 'empty'); - I.mockEndpoint(Endpoints.my, 'default'); - - if (!isModel || isExсeption) { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.mainPage.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { I.mockEndpoint(Endpoints.self, `selfTranslation`); - I.mockEndpoint(Endpoints.settings, `settingsTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); } - - I.amOnPage('/products/files'); + I.amOnPage("/products/files"); I.wait(3); - - I.see('My documents'); - + I.see("My documents"); I.saveScreenshot(`${culture}-main-page.png`); I.seeVisualDiff(`${culture}-main-page.png`, { tolerance: 0.025, @@ -42,24 +50,17 @@ for (const culture of cultures) { }); Scenario(`Profile menu test ${culture}`, { timeout: 30 }, ({ I }) => { - changeCulture(culture); - const isExсeption = ignoringCultures.profileMenu.indexOf(culture) != -1; - - I.mockEndpoint(Endpoints.root, 'empty'); - I.mockEndpoint(Endpoints.my, 'default'); - - if (!isModel || isExсeption) { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.profileMenu.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { I.mockEndpoint(Endpoints.self, `selfTranslation`); - I.mockEndpoint(Endpoints.settings, `settingsTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); } - - I.amOnPage('/products/files'); + I.amOnPage("/products/files"); I.wait(3); - I.openProfileMenu(); - I.wait(3); - I.saveScreenshot(`${culture}-profile-menu.png`); I.seeVisualDiff(`${culture}-profile-menu.png`, { tolerance: 0.05, @@ -68,25 +69,18 @@ for (const culture of cultures) { }); Scenario(`Main button test ${culture}`, { timeout: 30 }, ({ I }) => { - changeCulture(culture); - const isExсeption = ignoringCultures.mainButton.indexOf(culture) != -1; - - I.mockEndpoint(Endpoints.root, 'empty'); - I.mockEndpoint(Endpoints.my, 'default'); - - if (!isModel || isExсeption) { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.mainButton.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { I.mockEndpoint(Endpoints.self, `selfTranslation`); - I.mockEndpoint(Endpoints.settings, `settingsTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); } - - I.amOnPage('/products/files'); + I.amOnPage("/products/files"); I.wait(3); - - I.seeElement({ react: 'ArticleMainButton' }); - I.click({ react: 'ArticleMainButton' }); - + I.seeElement({ react: "MainButton" }); + I.click({ react: "MainButton" }); I.wait(3); - I.saveScreenshot(`${culture}-main-button.png`); I.seeVisualDiff(`${culture}-main-button.png`, { tolerance: 0.01, @@ -96,24 +90,17 @@ for (const culture of cultures) { }); Scenario(`Table settings test ${culture}`, { timeout: 30 }, ({ I }) => { - const isExсeption = ignoringCultures.tableSettings.indexOf(culture) != -1; - - I.mockEndpoint(Endpoints.root, 'empty'); - I.mockEndpoint(Endpoints.my, 'default'); - - if (!isModel || isExсeption) { + const isException = ignoringCultures.tableSettings.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { I.mockEndpoint(Endpoints.self, `selfTranslation`); - I.mockEndpoint(Endpoints.settings, `settingsTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); } - - I.amOnPage('/products/files'); + I.amOnPage("/products/files"); I.wait(3); - - I.seeElement({ react: 'TableSettings' }); - I.click({ react: 'TableSettings' }); - + I.seeElement({ react: "TableSettings" }); + I.click({ react: "TableSettings" }); I.wait(3); - I.saveScreenshot(`${culture}-table-settings.png`); I.seeVisualDiff(`${culture}-table-settings.png`, { tolerance: 0.07, @@ -121,4 +108,92 @@ for (const culture of cultures) { ignoredBox: { top: 0, left: 0, bottom: 0, right: 1770 }, }); }); + + Scenario(`Add button test ${culture}`, { timeout: 30 }, ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.addButton.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { + I.mockEndpoint(Endpoints.self, `selfTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } + I.amOnPage("/products/files"); + I.wait(3); + I.seeElement({ + react: "ContextMenuButton", + props: { className: "add-button" }, + }); + I.click({ react: "ContextMenuButton", props: { className: "add-button" } }); + I.wait(3); + I.saveScreenshot(`${culture}-add-button.png`); + I.seeVisualDiff(`${culture}-add-button.png`, { + tolerance: 0.01, + prepareBaseImage: false, + }); + }); + + Scenario(`Sort menu test ${culture}`, { timeout: 30 }, ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.sortMenu.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { + I.mockEndpoint(Endpoints.self, `selfTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } + I.amOnPage("/products/files"); + I.wait(3); + I.switchView("tile"); + I.seeElement({ + react: "IconButton", + props: { className: "sort-icon" }, + }); + I.click({ react: "IconButton", props: { className: "sort-icon" } }); + I.wait(3); + I.saveScreenshot(`${culture}-sort-menu.png`); + I.seeVisualDiff(`${culture}-sort-menu.png`, { + tolerance: 0.01, + prepareBaseImage: false, + }); + }); + + Scenario(`Filter block test ${culture}`, { timeout: 30 }, ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.filterBlock.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { + I.mockEndpoint(Endpoints.self, `selfTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } + I.amOnPage("/products/files"); + I.wait(3); + I.seeElement({ + react: "FilterButton", + }); + I.click({ react: "FilterButton" }); + I.wait(3); + I.saveScreenshot(`${culture}-filter-block.png`); + I.seeVisualDiff(`${culture}-filter-block.png`, { + tolerance: 0.01, + prepareBaseImage: false, + }); + }); + + Scenario(`Context menu test ${culture}`, { timeout: 30 }, ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.contextMenu.indexOf(culture) != -1; + I.mockEndpoint(Endpoints.my, "default"); + if (!isException) { + I.mockEndpoint(Endpoints.self, `selfTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } + I.amOnPage("/products/files"); + I.wait(3); + I.openContextMenu(); + I.wait(3); + I.saveScreenshot(`${culture}-context-menu.png`); + I.seeVisualDiff(`${culture}-context-menu.png`, { + tolerance: 0.01, + prepareBaseImage: false, + }); + }); } diff --git a/products/ASC.People/Client/.gitignore b/products/ASC.People/Client/.gitignore index df12414764..62bd82d8a2 100644 --- a/products/ASC.People/Client/.gitignore +++ b/products/ASC.People/Client/.gitignore @@ -7,6 +7,7 @@ /coverage /tests/output /tests/reports +/tests/screenshots/translation # production /build diff --git a/products/ASC.People/Client/codecept.conf.js b/products/ASC.People/Client/codecept.conf.js index 257312780a..915e7fe1c5 100644 --- a/products/ASC.People/Client/codecept.conf.js +++ b/products/ASC.People/Client/codecept.conf.js @@ -1,5 +1,5 @@ -const fs = require('fs'); -const { setHeadlessWhen, setWindowSize } = require('@codeceptjs/configure'); +const fs = require("fs"); +const { setHeadlessWhen, setWindowSize } = require("@codeceptjs/configure"); // turn on headless mode when running with HEADLESS=true environment variable // export HEADLESS=true && npx codeceptjs run @@ -12,7 +12,7 @@ const sizes = { desktop: { width: 1920, height: 1080 }, }; -const deviceType = process.env.DEVICE_TYPE || 'desktop'; +const deviceType = process.env.DEVICE_TYPE || "desktop"; const isTranslation = !!process.env.TRANSLATION; @@ -20,33 +20,35 @@ const device = sizes[deviceType]; setWindowSize(device.width, device.height); -const browser = process.env.profile || 'chromium'; +const browser = process.env.profile || "chromium"; const isModel = !!process.env.MODEL; const screenshotOutput = isTranslation ? isModel - ? `./tests/screenshots/translation/${browser}/${deviceType}` + ? `./tests/screenshots/translation` : `./tests/output/translation/${browser}/${deviceType}` : isModel ? `./tests/screenshots/${browser}/${deviceType}` : `./tests/output/${browser}/${deviceType}`; const baseFolder = isTranslation - ? `./tests/screenshots/translation/${browser}/${deviceType}` + ? `./tests/screenshots/translation` : `./tests/screenshots/${browser}/${deviceType}`; const tests = isTranslation - ? './tests/translation_tests.js' - : ['./tests/action_tests.js', './tests/render_tests.js']; + ? "./tests/translation_tests.js" + : ["./tests/action_tests.js", "./tests/render_tests.js"]; const reportDir = isTranslation ? `../../../TestsResults/people` : `./tests/reports/${browser}/${deviceType}`; -const reportFileName = isTranslation ? 'people-translation' : 'report'; +const reportFileName = isTranslation ? "people-translation" : "report"; -const diffFolder = isTranslation ? '../../../TestsResults/people/diff' : './tests/output/diff/'; +const diffFolder = isTranslation + ? "../../../TestsResults/people/diff" + : "./tests/output/diff/"; if (isTranslation) { fs.rmdir(diffFolder, { recursive: true }, (err) => { @@ -56,6 +58,12 @@ if (isTranslation) { fs.mkdir(diffFolder, { recursive: true }, (err) => { if (err) throw err; }); + + if (isModel) { + fs.rmdir(screenshotOutput, { recursive: true }, (err) => { + if (err) throw err; + }); + } } exports.config = { @@ -63,41 +71,41 @@ exports.config = { output: screenshotOutput, helpers: { Playwright: { - url: 'http://localhost:8092', + url: "http://localhost:8092", // show browser window show: false, browser: browser, // restart browser between tests restart: true, - waitForNavigation: 'networkidle0', + waitForNavigation: "networkidle0", // don't save screenshot on failure disableScreenshots: false, }, ResembleHelper: { - require: 'codeceptjs-resemblehelper', - screenshotFolder: './tests/output/', + require: "codeceptjs-resemblehelper", + screenshotFolder: "./tests/output/", baseFolder: baseFolder, diffFolder: diffFolder, }, PlaywrightHelper: { - require: './tests/helpers/playwright.helper.js', + require: "./tests/helpers/playwright.helper.js", }, }, include: { - I: './steps_file.js', + I: "./steps_file.js", }, bootstrap: null, mocha: { reporterOptions: { mochawesome: { - stdout: '-', + stdout: "-", options: { reportDir: reportDir, reportFilename: reportFileName, }, }, - 'mocha-junit-reporter': { - stdout: '-', + "mocha-junit-reporter": { + stdout: "-", options: { mochaFile: `${reportDir}/${reportFileName}.xml`, attachments: false, //add screenshot for a failed test @@ -105,7 +113,7 @@ exports.config = { }, }, }, - name: 'ASC.Web.People', + name: "ASC.Web.People", plugins: { pauseOnFail: {}, retryFailedStep: { diff --git a/products/ASC.People/Client/package.json b/products/ASC.People/Client/package.json index 9b1ddf8eb6..e16f0d864c 100644 --- a/products/ASC.People/Client/package.json +++ b/products/ASC.People/Client/package.json @@ -8,6 +8,7 @@ "build:personal": "webpack --mode production --env personal=true", "build:test": "webpack --env minimize=false --mode production", "build:test.translation": "webpack --env minimize=false hideText=true --mode production", + "build:test.translation:personal": "webpack --env minimize=false hideText=true personal=true --mode production", "clean": "shx rm -rf dist", "deploy": "shx --silent mkdir -p ../../../build/deploy/products/ASC.People/client && shx cp -r dist/* ../../../build/deploy/products/ASC.People/client", "serve": "serve dist -p 5002", @@ -20,11 +21,13 @@ "test:tablet": "cross-env DEVICE_TYPE=tablet yarn test:codeceptjs", "test:desktop": "cross-env DEVICE_TYPE=desktop yarn test:codeceptjs ", "test:translation": "cross-env DEVICE_TYPE=desktop translation=true yarn test:codeceptjs --profile chromium", + "test:translation:personal": "cross-env DEVICE_TYPE=desktop translation=true personal=true yarn test:codeceptjs --profile chromium ", "test:mobile:model": "cross-env DEVICE_TYPE=mobile MODEL=true yarn test:codeceptjs", "test:smallTablet:model": "cross-env DEVICE_TYPE=smallTablet MODEL=true yarn test:codeceptjs", "test:tablet:model": "cross-env DEVICE_TYPE=tablet MODEL=true yarn test:codeceptjs", "test:desktop:model": "cross-env DEVICE_TYPE=desktop MODEL=true yarn test:codeceptjs", - "test:translation:model": "cross-env DEVICE_TYPE=desktop MODEL=true TRANSLATION=true yarn test:codeceptjs --profile chromium", + "test:translation:model": "cross-env DEVICE_TYPE=desktop MODEL=true translation=true yarn test:codeceptjs --profile chromium && node tests/helpers/cloneModelScreenshot.js", + "test:translation:model:personal": "cross-env DEVICE_TYPE=desktop MODEL=true translation=true personal=true yarn test:codeceptjs --profile chromium && node tests/helpers/cloneModelScreenshot.js", "test:chromium:parallel": "run-p -c \"test:mobile --profile chromium \" \"test:smallTablet --profile chromium \" \"test:tablet --profile chromium \" \"test:desktop --profile chromium \" && yarn test:parse-xml", "test:chromium:sequential": "run-s -c \"test:mobile --profile chromium \" \"test:smallTablet --profile chromium \" \"test:tablet --profile chromium \" \"test:desktop --profile chromium \" && yarn test:parse-xml", "test:chromium:model": "run-s -c \"test:mobile:model --profile chromium \" \"test:smallTablet:model --profile chromium \" \"test:tablet:model --profile chromium \" \"test:desktop:model --profile chromium \" && yarn test:parse-xml", diff --git a/products/ASC.People/Client/tests/helpers/changeCulture.js b/products/ASC.People/Client/tests/helpers/changeCulture.js index 58ad47d628..e554a889cb 100644 --- a/products/ASC.People/Client/tests/helpers/changeCulture.js +++ b/products/ASC.People/Client/tests/helpers/changeCulture.js @@ -1,34 +1,49 @@ -const fs = require('fs'); -const path = require('path'); +const fs = require("fs"); +const path = require("path"); const settingsFile = require(path.resolve( __dirname, - '../mocking/mock-data/settings/settingsTranslation.json', + "../mocking/mock-data/settings/settingsTranslation.json" +)); + +const settingsFilePersonal = require(path.resolve( + __dirname, + "../mocking/mock-data/settings/settingsTranslationPersonal.json" )); const selfFile = require(path.resolve( __dirname, - '../mocking/mock-data/people/selfTranslation.json', + "../mocking/mock-data/people/selfTranslation.json" )); -function changeCulture(culture) { - settingsFile.response.culture = culture; +function changeCulture(culture, isPersonal) { + if (isPersonal) { + settingsFilePersonal.response.culture = culture; + } else { + settingsFile.response.culture = culture; + } selfFile.response.cultureName = culture; fs.writeFile( - path.resolve(__dirname, '../mocking/mock-data/settings/settingsTranslation.json'), - JSON.stringify(settingsFile, null, 2), + path.resolve( + __dirname, + `../mocking/mock-data/settings/settingsTranslation${ + isPersonal ? "Personal" : "" + }.json` + ), + + JSON.stringify(isPersonal ? settingsFilePersonal : settingsFile, null, 2), function writeJSON(err) { if (err) return console.log(err); - }, + } ); fs.writeFile( - path.resolve(__dirname, '../mocking/mock-data/people/selfTranslation.json'), + path.resolve(__dirname, "../mocking/mock-data/people/selfTranslation.json"), JSON.stringify(selfFile, null, 2), function writeJSON(err) { if (err) return console.log(err); - }, + } ); } diff --git a/products/ASC.People/Client/tests/helpers/cloneModelScreenshot.js b/products/ASC.People/Client/tests/helpers/cloneModelScreenshot.js new file mode 100644 index 0000000000..16c24e3fb0 --- /dev/null +++ b/products/ASC.People/Client/tests/helpers/cloneModelScreenshot.js @@ -0,0 +1,80 @@ +var path = require("path"); +var fs = require("fs"); +var async = require("async"); + +const config = require("../../../../../config/appsettings.json"); +const cultures = config.web.cultures.split(","); + +function getFiles(dirPath, callback) { + fs.readdir(dirPath, function (err, files) { + if (err) return callback(err); + + var filePaths = []; + async.eachSeries( + files, + function (fileName, eachCallback) { + var filePath = path.join(dirPath, fileName); + + fs.stat(filePath, function (err, stat) { + if (err) return eachCallback(err); + + if (stat.isDirectory()) { + getFiles(filePath, function (err, subDirFiles) { + if (err) return eachCallback(err); + + filePaths = filePaths.concat(subDirFiles); + eachCallback(null); + }); + } else { + if (stat.isFile() && /\.png$/.test(filePath)) { + filePaths.push(filePath); + } + + eachCallback(null); + } + }); + }, + function (err) { + callback(err, filePaths); + } + ); + }); +} + +function getClonePath(filePath, culture) { + const splitFilePath = filePath.split("\\"); + + const splitFileName = splitFilePath[splitFilePath.length - 1].split("-"); + + splitFileName[0] = culture; + + splitFilePath[splitFilePath.length - 1] = splitFileName.join("-"); + + const copyPath = splitFilePath.join("\\"); + + return copyPath; +} + +function copyFile(filePath) { + cultures.forEach((culture) => { + const copyPath = getClonePath(filePath, culture); + + fs.copyFile(filePath, copyPath, (err) => { + if (err) console.log(err); + }); + }); +} + +const pathToModels = path.resolve(__dirname, "../screenshots/translation"); + +function cloneModelScreenshot() { + getFiles(pathToModels, function (err, files) { + if (err) console.log(err); + + files.forEach((file) => { + copyFile(file); + }); + }); +} + +cloneModelScreenshot(); diff --git a/products/ASC.People/Client/tests/ignoringCultures.json b/products/ASC.People/Client/tests/ignoringCultures.json index ac30196f73..02da6553a6 100644 --- a/products/ASC.People/Client/tests/ignoringCultures.json +++ b/products/ASC.People/Client/tests/ignoringCultures.json @@ -1,5 +1,6 @@ { "mainPage": ["en"], "mainButton": ["en"], - "tableSettings": ["en"] + "tableSettings": ["en"], + "profilePage": ["en"] } diff --git a/products/ASC.People/Client/tests/mocking/endpoints.js b/products/ASC.People/Client/tests/mocking/endpoints.js index b07925d7f4..44de949602 100644 --- a/products/ASC.People/Client/tests/mocking/endpoints.js +++ b/products/ASC.People/Client/tests/mocking/endpoints.js @@ -1,60 +1,70 @@ module.exports = class Endpoints { static self = { url: [ - 'http://localhost:8092/api/2.0/people/@self.json', - 'http://localhost:8092/api/2.0/people/%40self.json', + "http://localhost:8092/api/2.0/people/@self.json", + "http://localhost:8092/api/2.0/people/%40self.json", ], - method: 'GET', - baseDir: 'people', + method: "GET", + baseDir: "people", }; static info = { - url: ['http://localhost:8092/api/2.0/modules/info'], - method: 'GET', - baseDir: 'modules', + url: ["http://localhost:8092/api/2.0/modules/info"], + method: "GET", + baseDir: "modules", }; static build = { - url: ['http://localhost:8092/api/2.0/settings/version/build.json'], - method: 'GET', - baseDir: 'settings', + url: ["http://localhost:8092/api/2.0/settings/version/build.json"], + method: "GET", + baseDir: "settings", }; static settings = { - url: ['http://localhost:8092/api/2.0/settings.json'], - method: 'GET', - baseDir: 'settings', + url: ["http://localhost:8092/api/2.0/settings.json"], + method: "GET", + baseDir: "settings", }; static group = { - url: ['http://localhost:8092/api/2.0/group'], - method: 'GET', - baseDir: 'groups', + url: ["http://localhost:8092/api/2.0/group"], + method: "GET", + baseDir: "groups", }; static filter = { - url: ['http://localhost:8092/api/2.0/people/filter.json'], - method: 'GET', - baseDir: 'filters', + url: ["http://localhost:8092/api/2.0/people/filter.json"], + method: "GET", + baseDir: "filters", }; static password = { - url: ['http://localhost:8092/api/2.0/settings/security/password'], - method: 'GET', - baseDir: 'settings', + url: ["http://localhost:8092/api/2.0/settings/security/password"], + method: "GET", + baseDir: "settings", }; static common = { - url: ['http://localhost:8092/api/2.0/settings/customschemas/Common.json'], - method: 'GET', - baseDir: 'settings', + url: ["http://localhost:8092/api/2.0/settings/customschemas/Common.json"], + method: "GET", + baseDir: "settings", }; static providers = { - url: ['http://localhost:8092/api/2.0/people/thirdparty/providers'], - method: 'GET', - baseDir: 'people', + url: ["http://localhost:8092/api/2.0/people/thirdparty/providers"], + method: "GET", + baseDir: "people", }; static createUser = { - url: ['http://localhost:8092/api/2.0/people/TestName.json'], - method: 'GET', - baseDir: 'people', + url: ["http://localhost:8092/api/2.0/people/TestName.json"], + method: "GET", + baseDir: "people", }; static cultures = { - url: ['http://localhost:8092/api/2.0/settings/cultures.json'], - method: 'GET', - baseDir: 'settings', + url: ["http://localhost:8092/api/2.0/settings/cultures.json"], + method: "GET", + baseDir: "settings", + }; + static subscription = { + url: ["http://localhost:8092/api/2.0/settings/tips/subscription.json"], + method: "GET", + baseDir: "settings", + }; + static tfaapp = { + url: ["http://localhost:8092/api/2.0/settings/tfaapp"], + method: "GET", + baseDir: "settings", }; }; diff --git a/products/ASC.People/Client/tests/mocking/mock-data/settings/settingsPersonal.json b/products/ASC.People/Client/tests/mocking/mock-data/settings/settingsPersonal.json new file mode 100644 index 0000000000..50e784feb5 --- /dev/null +++ b/products/ASC.People/Client/tests/mocking/mock-data/settings/settingsPersonal.json @@ -0,0 +1,40 @@ +{ + "count": 1, + "response": { + "timezone": "UTC", + "trustedDomains": [], + "trustedDomainsType": 1, + "culture": "en-US", + "utcOffset": { + "ticks": 0, + "days": 0, + "hours": 0, + "milliseconds": 0, + "minutes": 0, + "seconds": 0, + "totalDays": 0, + "totalHours": 0, + "totalMilliseconds": 0, + "totalMinutes": 0, + "totalSeconds": 0 + }, + "utcHoursOffset": 0, + "greetingSettings": "Web Office", + "ownerId": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7", + "nameSchemaId": "Common", + "personal": true, + "firebase": { + "apiKey": "", + "authDomain": "", + "projectId": "", + "storageBucket": "", + "messagingSenderId": "", + "appId": "", + "measurementId": "" + }, + "version": "11.5.0", + "debugInfo": true + }, + "status": 0, + "statusCode": 200 +} diff --git a/products/ASC.People/Client/tests/mocking/mock-data/settings/settingsTranslationPersonal.json b/products/ASC.People/Client/tests/mocking/mock-data/settings/settingsTranslationPersonal.json new file mode 100644 index 0000000000..3107979a32 --- /dev/null +++ b/products/ASC.People/Client/tests/mocking/mock-data/settings/settingsTranslationPersonal.json @@ -0,0 +1,40 @@ +{ + "count": 1, + "response": { + "timezone": "UTC", + "trustedDomains": [], + "trustedDomainsType": 1, + "culture": "cs", + "utcOffset": { + "ticks": 0, + "days": 0, + "hours": 0, + "milliseconds": 0, + "minutes": 0, + "seconds": 0, + "totalDays": 0, + "totalHours": 0, + "totalMilliseconds": 0, + "totalMinutes": 0, + "totalSeconds": 0 + }, + "utcHoursOffset": 0, + "greetingSettings": "Web Office", + "ownerId": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7", + "nameSchemaId": "Common", + "personal": true, + "firebase": { + "apiKey": "", + "authDomain": "", + "projectId": "", + "storageBucket": "", + "messagingSenderId": "", + "appId": "", + "measurementId": "" + }, + "version": "11.5.0", + "debugInfo": true + }, + "status": 0, + "statusCode": 200 +} diff --git a/products/ASC.People/Client/tests/mocking/mock-data/settings/subscription.json b/products/ASC.People/Client/tests/mocking/mock-data/settings/subscription.json new file mode 100644 index 0000000000..7ee857ecca --- /dev/null +++ b/products/ASC.People/Client/tests/mocking/mock-data/settings/subscription.json @@ -0,0 +1 @@ +{ "count": 1, "response": true, "status": 0, "statusCode": 200 } diff --git a/products/ASC.People/Client/tests/mocking/mock-data/settings/tfaapp.json b/products/ASC.People/Client/tests/mocking/mock-data/settings/tfaapp.json new file mode 100644 index 0000000000..21b45f7e5c --- /dev/null +++ b/products/ASC.People/Client/tests/mocking/mock-data/settings/tfaapp.json @@ -0,0 +1,6 @@ +{ + "count": 0, + "response": [], + "status": 0, + "statusCode": 200 +} diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/az-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-table-settings.png deleted file mode 100644 index 697908fc00..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/bg-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/cs-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-main-page.png deleted file mode 100644 index fc0eb53984..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/de-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-main-page.png deleted file mode 100644 index fc0eb53984..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-table-settings.png deleted file mode 100644 index 2dda4d5f89..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/el-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-US-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-table-settings.png deleted file mode 100644 index 697908fc00..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/en-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-table-settings.png deleted file mode 100644 index 697908fc00..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/es-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fi-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/fr-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/it-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ja-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-table-settings.png deleted file mode 100644 index 697908fc00..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ko-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lo-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-table-settings.png deleted file mode 100644 index 03b3aebba9..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/lv-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-main-page.png deleted file mode 100644 index fc0eb53984..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/nl-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-main-page.png deleted file mode 100644 index 3582907887..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pl-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-BR-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/pt-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ro-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/ru-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sk-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-main-page.png deleted file mode 100644 index 8c162cd5cb..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/sl-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/tr-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-main-page.png deleted file mode 100644 index e1a8951d26..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/uk-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-table-settings.png deleted file mode 100644 index 2f4af945e1..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/vi-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-button.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-button.png deleted file mode 100644 index fd10954956..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-button.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-page.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-page.png deleted file mode 100644 index f734a7da45..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-main-page.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-table-settings.png b/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-table-settings.png deleted file mode 100644 index dbe0663d7b..0000000000 Binary files a/products/ASC.People/Client/tests/screenshots/translation/chromium/desktop/zh-CN-table-settings.png and /dev/null differ diff --git a/products/ASC.People/Client/tests/translation_tests.js b/products/ASC.People/Client/tests/translation_tests.js index b4c245a368..93c5edae9d 100644 --- a/products/ASC.People/Client/tests/translation_tests.js +++ b/products/ASC.People/Client/tests/translation_tests.js @@ -1,93 +1,141 @@ -const Endpoints = require('./mocking/endpoints.js'); -const changeCulture = require('./helpers/changeCulture.js'); -const config = require('../../../../config/appsettings.json'); -const ignoringCultures = require('./ignoringCultures.json'); - -const cultures = config.web.cultures.split(','); +const Endpoints = require("./mocking/endpoints.js"); +const changeCulture = require("./helpers/changeCulture.js"); +const config = require("../../../../config/appsettings.json"); +const ignoringCultures = require("./ignoringCultures.json"); const isModel = !!process.env.MODEL; -const featureName = isModel ? `People translation(model) ` : `People translation tests`; +const cultures = isModel ? ["en"] : config.web.cultures.split(","); + +const isPersonal = !!process.env.PERSONAL; + +const settingsFile = isPersonal ? `settingsPersonal` : `settings`; + +const settingsTranslationFile = isPersonal + ? `settingsTranslationPersonal` + : `settingsTranslation`; + +const featureName = isModel + ? `People translation(model) ` + : `People translation tests`; Feature(featureName, { timeout: 90 }); Before(async ({ I }) => { I.mockData(); + if (isPersonal) { + I.mockEndpoint(Endpoints.settings, settingsFile); + I.mockEndpoint(Endpoints.subscription, "subscription"); + I.mockEndpoint(Endpoints.tfaapp, "tfaapp"); + } }); + for (const culture of cultures) { - Scenario(`Main page test ${culture}`, { timeout: 30 }, ({ I }) => { - changeCulture(culture); - const isExсeption = ignoringCultures.mainPage.indexOf(culture) != -1; + if (!isPersonal) { + Scenario(`Main page test ${culture}`, { timeout: 30 }, ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.mainPage.indexOf(culture) != -1; - I.mockEndpoint(Endpoints.filter, 'many'); - I.mockEndpoint(Endpoints.group, 'many'); + I.mockEndpoint(Endpoints.filter, "many"); + I.mockEndpoint(Endpoints.group, "many"); - if (!isModel || isExсeption) { - I.mockEndpoint(Endpoints.self, `selfTranslation`); - I.mockEndpoint(Endpoints.settings, `settingsTranslation`); - } + if (!isException) { + I.mockEndpoint(Endpoints.self, `selfTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } - I.openPage(); + I.openPage(); - I.saveScreenshot(`${culture}-main-page.png`); - I.seeVisualDiff(`${culture}-main-page.png`, { - tolerance: 0.04, - prepareBaseImage: false, - // ignoredBox: { top: 0, left: 0, bottom: 0, right: 1720 }, + I.saveScreenshot(`${culture}-main-page.png`); + I.seeVisualDiff(`${culture}-main-page.png`, { + tolerance: 0.04, + prepareBaseImage: false, + // ignoredBox: { top: 0, left: 0, bottom: 0, right: 1720 }, + }); }); - }); - Scenario(`Main button test ${culture}`, { timeout: 30 }, ({ I }) => { - changeCulture(culture); - const isExсeption = ignoringCultures.mainButton.indexOf(culture) != -1; + Scenario(`Main button test ${culture}`, { timeout: 30 }, ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.mainButton.indexOf(culture) != -1; - I.mockEndpoint(Endpoints.filter, 'many'); - I.mockEndpoint(Endpoints.group, 'many'); + I.mockEndpoint(Endpoints.filter, "many"); + I.mockEndpoint(Endpoints.group, "many"); - if (!isModel || isExсeption) { - I.mockEndpoint(Endpoints.self, `selfTranslation`); - I.mockEndpoint(Endpoints.settings, `settingsTranslation`); - } + if (!isException) { + I.mockEndpoint(Endpoints.self, `selfTranslation`); + I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } - I.openPage(); + I.openPage(); - I.seeElement({ react: 'ArticleMainButton' }); - I.click({ react: 'ArticleMainButton' }); + I.seeElement({ react: "MainButton" }); + I.click({ react: "MainButton" }); - I.wait(3); + I.wait(3); - I.saveScreenshot(`${culture}-main-button.png`); - I.seeVisualDiff(`${culture}-main-button.png`, { - tolerance: 0.01, - prepareBaseImage: false, - ignoredBox: { top: 0, left: 256, bottom: 0, right: 0 }, + I.saveScreenshot(`${culture}-main-button.png`); + I.seeVisualDiff(`${culture}-main-button.png`, { + tolerance: 0.32, + prepareBaseImage: false, + ignoredBox: { top: 0, left: 256, bottom: 0, right: 0 }, + }); }); - }); - Scenario(`Table settings test ${culture}`, { timeout: 30 }, async ({ I }) => { - changeCulture(culture); - const isExсeption = ignoringCultures.tableSettings.indexOf(culture) != -1; + Scenario( + `Table settings test ${culture}`, + { timeout: 30 }, + async ({ I }) => { + changeCulture(culture, isPersonal); + const isException = + ignoringCultures.tableSettings.indexOf(culture) != -1; - await I.mockEndpoint(Endpoints.filter, 'many'); - await I.mockEndpoint(Endpoints.group, 'many'); + await I.mockEndpoint(Endpoints.filter, "many"); + await I.mockEndpoint(Endpoints.group, "many"); - if (!isModel || isExсeption) { - await I.mockEndpoint(Endpoints.self, `selfTranslation`); - await I.mockEndpoint(Endpoints.settings, `settingsTranslation`); - } + if (!isException) { + await I.mockEndpoint(Endpoints.self, `selfTranslation`); + await I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } - I.openPage(); + I.openPage(); - I.seeElement({ react: 'TableSettings' }); - I.click({ react: 'TableSettings' }); + I.seeElement({ react: "TableSettings" }); + I.click({ react: "TableSettings" }); - I.wait(3); + I.wait(3); - I.saveScreenshot(`${culture}-table-settings.png`); - await I.seeVisualDiff(`${culture}-table-settings.png`, { - tolerance: 0.07, - prepareBaseImage: false, - ignoredBox: { top: 0, left: 0, bottom: 0, right: 1770 }, + I.saveScreenshot(`${culture}-table-settings.png`); + await I.seeVisualDiff(`${culture}-table-settings.png`, { + tolerance: 0.07, + prepareBaseImage: false, + ignoredBox: { top: 0, left: 0, bottom: 0, right: 1770 }, + }); + } + ); + } + + if (isPersonal) { + Scenario(`Profile page test ${culture}`, { timeout: 30 }, async ({ I }) => { + changeCulture(culture, isPersonal); + const isException = ignoringCultures.profilePage.indexOf(culture) != -1; + + await I.mockEndpoint(Endpoints.filter, "many"); + await I.mockEndpoint(Endpoints.group, "many"); + + if (!isException) { + await I.mockEndpoint(Endpoints.self, `selfTranslation`); + await I.mockEndpoint(Endpoints.settings, settingsTranslationFile); + } + + I.amOnPage("/my"); + + I.wait(3); + + I.saveScreenshot(`${culture}-profile-page.png`); + await I.seeVisualDiff(`${culture}-profile-page.png`, { + tolerance: 0.07, + prepareBaseImage: false, + }); }); - }); + } } diff --git a/web/ASC.Web.Client/package.json b/web/ASC.Web.Client/package.json index b8c2601049..bc4a8582bc 100644 --- a/web/ASC.Web.Client/package.json +++ b/web/ASC.Web.Client/package.json @@ -8,6 +8,7 @@ "build:personal": "webpack --mode production --env personal=true", "build:test": "webpack --env minimize=false --mode production", "build:test.translation": "webpack --env minimize=false hideText=true --mode production", + "build:test.translation:personal": "webpack --env minimize=false hideText=true personal=true --mode production", "clean": "shx rm -rf dist", "deploy": "shx --silent mkdir -p ../../build/deploy/studio/client && shx cp -r dist/* ../../build/deploy/studio/client", "serve": "serve dist -p 5001", diff --git a/web/ASC.Web.Client/public/index.html b/web/ASC.Web.Client/public/index.html index 958e9558e2..a941ba437a 100644 --- a/web/ASC.Web.Client/public/index.html +++ b/web/ASC.Web.Client/public/index.html @@ -29,6 +29,8 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> + <%= htmlWebpackPlugin.options.custom %> + `, + }) + ); + } else { + config.plugins.push( + new HtmlWebpackPlugin({ + template: "./public/index.html", + publicPath: homepage, + title: title, + base: `${homepage}/`, + }) + ); + } + const defines = { VERSION: JSON.stringify(version), BUILD_AT: DefinePlugin.runtimeValue(function () { diff --git a/web/ASC.Web.Editor/package.json b/web/ASC.Web.Editor/package.json index ffaa3693db..8f88645132 100644 --- a/web/ASC.Web.Editor/package.json +++ b/web/ASC.Web.Editor/package.json @@ -8,6 +8,7 @@ "build:personal": "webpack --mode production --env personal=true", "build:test": "webpack --env minimize=false --mode production", "build:test.translation": "webpack --env minimize=false hideText=true --mode production", + "build:test.translation:personal": "webpack --env minimize=false hideText=true personal=true --mode production", "clean": "shx rm -rf dist", "deploy": "shx --silent mkdir -p ../../build/deploy/products/ASC.Files/editor && shx cp -r dist/* ../../build/deploy/products/ASC.Files/editor", "serve": "serve dist -p 5013",