From 9497abcb43d470a8f0fa66632d3f95a45d309977 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 1 Aug 2023 18:48:19 +0100 Subject: [PATCH] [ACS-5743] Cleanup Content tests (Demo Shell) (#8799) * remove unused demo shell api * remove recent files and cleanup unused api * cleanup upload dialog page * [ci:force] dummy commit * [ci:force] cleanup the toolbar and tooltips * [ci:force] remove dead code * [ci:force] remove logger and custom action * [ci:force] remove custom permission e2e test as already tested by unit * [ci:force] remove "Start process" from the Content demo as not related to document list * [ci:force] remove useless divs for selection * [ci:force] dummy change to trigger CI/CD * Revert "[ci:force] remove useless divs for selection" This reverts commit fb3ae0b4396f44fc5aa055fcc5edf2df3e870fee. * [ci:force] remove e2e for artificial scenario * [ci:force] cleanup unused navigation bar protractor api * [ci:force] cleanup unused datatable protractor api * [ci:force] cleanup unused login protractor api * [ci:force] fix process cloud demo page selector --- .prettierrc | 5 + demo-shell/resources/i18n/en.json | 16 +- .../app/components/files/files.component.html | 170 ++---------------- .../app/components/files/files.component.scss | 19 -- .../app/components/files/files.component.ts | 117 +----------- .../document-list-permissions.e2e.ts | 9 - .../document-list-thumbnails-tooltips.e2e.ts | 22 --- e2e/core/pages/content-services.page.ts | 74 -------- e2e/core/pages/data-table.page.ts | 109 ----------- e2e/core/pages/dialog/upload-dialog.page.ts | 42 +---- e2e/core/pages/dialog/upload-toggles.page.ts | 24 --- e2e/core/pages/login-shell.page.ts | 41 ----- e2e/core/pages/navigation-bar.page.ts | 98 ---------- .../pages/process-cloud-demo.page.ts | 15 +- .../process/start-process-component.e2e.ts | 75 +------- .../components/search-sorting-picker.e2e.ts | 8 +- e2e/search/search-page.e2e.ts | 10 +- .../components/document-list.component.ts | 2 +- 18 files changed, 42 insertions(+), 814 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..35275aa1fa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "trailingComma": "none", + "printWidth": 150 +} diff --git a/demo-shell/resources/i18n/en.json b/demo-shell/resources/i18n/en.json index 5359e1634e..0ca6f07a18 100644 --- a/demo-shell/resources/i18n/en.json +++ b/demo-shell/resources/i18n/en.json @@ -52,7 +52,6 @@ }, "PERSONAL-FILES": "Personal Files", "WARN-MULTIPLE-UPLOADS": "Display warning for multiple uploads.", - "CUSTOM-PERMISSION-MESSAGE": "Enable custom permission message", "MEDIUM-TIME-FORMAT": "Enable medium time format for document list", "SEARCH": { "RADIO": { @@ -160,12 +159,6 @@ "DESCRIPTION_UPLOAD": "Enable upload", "ENABLE_INFINITE_SCROLL": "Enable Infinite Scrolling", "MULTISELECT_DESCRIPTION": "Use Cmd (Mac) or Ctrl (Windows) to toggle selection of multiple items", - "RECENT": { - "EMPTY_STATE": { - "TITLE": "Recent Files list is empty" - }, - "TITLE": "Recent Files" - }, "COLUMNS": { "DISPLAY_NAME": "Display name", "IS_LOCKED": "Lock", @@ -179,6 +172,8 @@ "DELETED_BY": "Deleted by" }, "TOOLBAR": { + "TOGGLE_DISPLAY_MODE": "Toggle display mode", + "TOGGLE_METADATA": "Toggle metadata", "CARDVIEW": "Card view mode", "SHARE_EDIT": "Edit settings", "NEW_FOLDER": "New folder", @@ -187,10 +182,6 @@ "DELETE": "Delete", "FAVORITES": "Add to favorites", "SHARE": "Share", - "THEME": "Select a theme", - "SHOW_VERSION": "Show version", - "HIDE_VERSION": "Hide version", - "LISTVIEW": "List view mode", "CREATE_LIBRARY": "Create Library" }, "ACTIONS": { @@ -208,8 +199,7 @@ "DOCUMENT": { "COPY": "Copy", "MOVE": "Move", - "DELETE": "Delete", - "PROCESS_ACTION": "Start Process" + "DELETE": "Delete" } } }, diff --git a/demo-shell/src/app/components/files/files.component.html b/demo-shell/src/app/components/files/files.component.html index cae5b72aea..12e9b45969 100644 --- a/demo-shell/src/app/components/files/files.component.html +++ b/demo-shell/src/app/components/files/files.component.html @@ -1,33 +1,4 @@
- - - - - - {{ 'DOCUMENT_LIST.RECENT.TITLE' | translate }} - history - - - - - -
- history -

{{ 'DOCUMENT_LIST.RECENT.EMPTY_STATE.TITLE' | translate}}

-
-
-
-
-
-
@@ -51,7 +22,7 @@ {{errorMessage}}
- + - view_comfy - - list - + list
- - - - - - - - - - @@ -178,8 +122,7 @@ more_vert -