mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4298] Add e2e tests for info drawer (#4506)
* [ADF-4298] Add e2e tests for info drawer * Update info-drawer.component.e2e.ts * Update info-drawer.component.e2e.ts
This commit is contained in:
committed by
Eugenio Romano
parent
b35fb4df93
commit
31280baeef
@@ -105,7 +105,7 @@
|
||||
<ng-template let-node="node" #sidebarLeftTemplate>
|
||||
<adf-info-drawer [title]="'Viewer Options'">
|
||||
|
||||
<adf-info-drawer-tab [label]="">
|
||||
<adf-info-drawer-tab [label]="'Settings'">
|
||||
<p class="toggle">
|
||||
<mat-slide-toggle
|
||||
id="adf-switch-custoname"
|
||||
@@ -248,6 +248,16 @@
|
||||
</mat-slide-toggle>
|
||||
</p>
|
||||
|
||||
<p class="toggle">
|
||||
<mat-slide-toggle
|
||||
id="adf-show-tab-with-icon"
|
||||
[color]="'primary'"
|
||||
(change)="toggleShowInfoDrawerTabIcon()"
|
||||
[checked]="showInfoDrawerTabWithIcon">
|
||||
Show info drawer tab con
|
||||
</mat-slide-toggle>
|
||||
</p>
|
||||
|
||||
<p class="toggle">
|
||||
<button mat-raised-button id="adf-switch-showrightsidebar" (click)="toggleShowRightSidebar()" color="primary">
|
||||
Toggle Right Sidebar
|
||||
@@ -262,6 +272,13 @@
|
||||
|
||||
</adf-info-drawer-tab>
|
||||
|
||||
<adf-info-drawer-tab
|
||||
*ngIf="showInfoDrawerTabWithIcon"
|
||||
[label]="'Settings'"
|
||||
[icon]="'comment'"
|
||||
data-automation-id="adf-settings-tab">
|
||||
</adf-info-drawer-tab>
|
||||
|
||||
</adf-info-drawer>
|
||||
</ng-template>
|
||||
|
||||
|
@@ -53,6 +53,7 @@ export class FileViewComponent implements OnInit {
|
||||
showRightSidebar = false;
|
||||
customToolbar = false;
|
||||
isCommentEnabled = false;
|
||||
showInfoDrawerTabWithIcon = false;
|
||||
|
||||
constructor(private router: Router,
|
||||
private route: ActivatedRoute,
|
||||
@@ -145,6 +146,10 @@ export class FileViewComponent implements OnInit {
|
||||
this.allowLeftSidebar = !this.allowLeftSidebar;
|
||||
}
|
||||
|
||||
toggleShowInfoDrawerTabIcon() {
|
||||
this.showInfoDrawerTabWithIcon = !this.showInfoDrawerTabWithIcon;
|
||||
}
|
||||
|
||||
toggleCustomName() {
|
||||
this.customName = !this.customName;
|
||||
|
||||
|
Reference in New Issue
Block a user