From 897a557afa9bf4d6b77e8bf3e5722f5df4f65b41 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Fri, 21 Sep 2018 11:37:40 +0100 Subject: [PATCH] [ADF-3332][ADF-3352] Add property e2e test and leftsidebar viewer (#3814) * new viewer test left sidebar fix height width no overlay viewer * fix lint and failing e2e * missing semi column * fix test * fix template * documentation --- .gitignore | 3 +- .../file-view/file-view.component.html | 190 +++++++++- .../file-view/file-view.component.ts | 71 +++- docs/core/viewer.component.md | 2 + e2e/content-services/tag_component.e2e.ts | 4 + e2e/core/viewer_properties.e2e.ts | 180 ++++++++++ e2e/pages/adf/versionManagerPage.ts | 4 +- e2e/pages/adf/viewerPage.js | 324 +++++++++++++++++- .../viewer/components/viewer.component.html | 62 +++- .../viewer/components/viewer.component.scss | 4 + .../components/viewer.component.spec.ts | 59 ++-- .../viewer/components/viewer.component.ts | 28 +- .../components/task-details.component.ts | 11 +- 13 files changed, 870 insertions(+), 72 deletions(-) create mode 100644 e2e/core/viewer_properties.e2e.ts diff --git a/.gitignore b/.gitignore index 325f526df3..b8dafabd52 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,5 @@ src/environments/ /lib/config/export-check/export-new.json /lib/config/export-check/exportCheck.js /docs/sourceinfo -/docs/docs.json \ No newline at end of file +/docs/docs.json +/protractorFailuresReport diff --git a/demo-shell/src/app/components/file-view/file-view.component.html b/demo-shell/src/app/components/file-view/file-view.component.html index 53c30f069f..85cee40a1a 100644 --- a/demo-shell/src/app/components/file-view/file-view.component.html +++ b/demo-shell/src/app/components/file-view/file-view.component.html @@ -1,6 +1,6 @@ - + @@ -79,7 +79,9 @@ data-automation-id="adf-text-custom-preset"> - +

@@ -98,24 +100,194 @@ + + + + + +

+ + Custom Name + +

+ +

+ + + + + +

+ +

+ + Url File + +

+ +

+ + + + + +

+ +

+ + Show Toolbar + +

+ +

+ + Allow GoBack + +

+ +

+ + Open With + +

+ +

+ + More Actions + +

+ +

+ + Allow Download + +

+ +

+ + Allow Print + +

+ +

+ + Allow Share + +

+ +

+ + Allow Sidebar + +

+ +

+ +

+ +

+ +

+ +
+ +
+
+ + [showSidebar]="showRightSidebar" + [showLeftSidebar]="showLeftSidebar" + [allowGoBack]="allowGoBack" + [displayName]="displayName" + [showToolbar]="showToolbar" + [allowShare]="allowShare" + [allowPrint]="allowPrint" + [allowDownload]="allowDownload" + [allowSidebar]="allowSidebar" + [urlFile]="urlFile" + [sidebarLeftTemplate]="sidebarLeftTemplate" + [sidebarTemplate]="sidebarRightTemplate"> - - - - + + + + + + + +