mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3331] Create automated tests for Viewer component - Content Services (#3600)
* Automation tests for Viewer Component - Content Services * Create remaining automation tests for Viewer Component - Content Services * Deleting alfresco-ng2-components.iml * Correcting Viewer Page for failing tests * Updating Viewer Page for failing tests * Improving the PR quality
This commit is contained in:
committed by
Eugenio Romano
parent
69d8ff147e
commit
ab9f1c8385
@@ -3,8 +3,8 @@
|
||||
<div class="adf-pdf-viewer__thumbnails">
|
||||
<div class="thumbnails-template__container">
|
||||
<div class="thumbnails-template__buttons">
|
||||
<button mat-icon-button (click)="toggleThumbnails()">
|
||||
<mat-icon>close</mat-icon>
|
||||
<button mat-icon-button data-automation-id='adf-thumbnails-close' (click)="toggleThumbnails()">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -37,8 +37,9 @@
|
||||
|
||||
<ng-container *ngIf="allowThumbnails">
|
||||
<button mat-icon-button
|
||||
[disabled]="isPanelDisabled"
|
||||
(click)="toggleThumbnails()">
|
||||
data-automation-id='adf-thumbnails-button'
|
||||
[disabled]="isPanelDisabled"
|
||||
(click)="toggleThumbnails()">
|
||||
<mat-icon>dashboard</mat-icon>
|
||||
</button>
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
@@ -65,11 +66,11 @@
|
||||
<div class="adf-pdf-viewer__toolbar-page-selector">
|
||||
<span>{{ 'ADF_VIEWER.PAGE_LABEL.SHOWING' | translate }}</span>
|
||||
<input #page
|
||||
type="text"
|
||||
type="text"
|
||||
data-automation-id="adf-page-selector"
|
||||
pattern="-?[0-9]*(\.[0-9]+)?"
|
||||
value="{{ displayPage }}"
|
||||
(keyup.enter)="inputPage(page.value)">
|
||||
pattern="-?[0-9]*(\.[0-9]+)?"
|
||||
value="{{ displayPage }}"
|
||||
(keyup.enter)="inputPage(page.value)">
|
||||
<span>{{ 'ADF_VIEWER.PAGE_LABEL.OF' | translate }} {{ totalPages }}</span>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user