Ariel Weinberger pushed to branch feature/create-content at cms-community / hippo-addon-channel-manager
Commits: 348446d6 by Ariel Weinberger at 2017-11-14T16:46:43+01:00 CHANNELMGR-1565 Add and modify QA classes for step 1 and step 2 of create content - - - - - 4 changed files: - frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/document-location/document-location-field.html - frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/name-url-fields/name-url-fields.html - frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-1/step-1.html - frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-2/step-2.html Changes: ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/document-location/document-location-field.html ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/document-location/document-location-field.html +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/document-location/document-location-field.html @@ -17,7 +17,7 @@ <form #form="ngForm"> <!-- Document location field --> <div class="field"> - <mat-input-container class="create-content-field"> + <mat-input-container class="create-content-field qa-document-location"> <input mdInput [(ngModel)]="documentLocationLabel" name="documentLocation" placeholder="Document location" required disabled> </mat-input-container> ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/name-url-fields/name-url-fields.html ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/name-url-fields/name-url-fields.html +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/name-url-fields/name-url-fields.html @@ -17,7 +17,7 @@ <form #form="ngForm"> <!-- Document name field --> <div class="field"> - <mat-input-container class="create-content-field"> + <mat-input-container class="create-content-field qa-name-field"> <input mdInput [(ngModel)]="nameField" name="name" placeholder="Document name" required #nameInputElement> </mat-input-container> @@ -28,7 +28,7 @@ <!-- Document URL field --> <div class="field"> - <mat-input-container class="create-content-field"> + <mat-input-container class="create-content-field qa-url-field"> <input mdInput [(ngModel)]="urlField" name="url" placeholder="URL" required [disabled]="!isManualUrlMode"> <!-- Edit button --> @@ -36,7 +36,8 @@ mat-icon-button matSuffix type="button" - (click)="setManualUrlEditMode(true)"> + (click)="setManualUrlEditMode(true)" + class="qa-edit-url"> <mat-icon>mode_edit</mat-icon> </button> @@ -45,7 +46,8 @@ mat-icon-button matSuffix type="button" - (click)="setManualUrlEditMode(false)"> + (click)="setManualUrlEditMode(false)" + class="qa-generate-url"> <mat-icon>autorenew</mat-icon> </button> </mat-input-container> ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-1/step-1.html ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-1/step-1.html +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-1/step-1.html @@ -55,7 +55,7 @@ <div class="mat-input-infix"> <mat-select [(ngModel)]="documentType" name="documentType" required placeholder="Document type" [disabled]="documentTypes.length === 1" - class="input-document-type create-content-field mat-input-container" + class="input-document-type create-content-field mat-input-container qa-document-type-select" [ngClass]="{ 'hide-select-arrow': documentTypes.length === 1 }"> <mat-option *ngFor="let documentType of documentTypes" [value]="documentType.id">{{ documentType.displayName }}</mat-option> @@ -75,12 +75,12 @@ </div> <!-- Buttons --> <div class="create-content-actions layout-padding"> - <button mat-button class="qa-create-content-close" + <button mat-button class="qa-close" (click)="close()"> {{ 'CANCEL' | translate }} </button> - <button mat-button class="qa-create-content-continue" + <button mat-button class="qa-continue" type="submit" (click)="submit(form)" [disabled]="form.invalid || nameUrlFields.form.invalid || !nameUrlFields.urlField"> ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-2/step-2.html ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-2/step-2.html +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/create-content/step-2/step-2.html @@ -52,7 +52,7 @@ <span flex></span> <button mat-icon-button - class="mat-icon-button btn-edit-document-title qa-step-2-edit-name-url" + class="mat-icon-button btn-edit-document-title qa-edit-url" matSuffix type="button" (click)="editNameUrl()"> @@ -86,7 +86,7 @@ {{ 'DISCARD' | translate }} </button> - <button mat-button class="qa-save" + <button mat-button class="qa-create-content-save" (click)="saveDocument()" ng-disabled="!editing || !isDocumentDirty() || form.$invalid"> {{ 'SAVE' | translate }} View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/348446d6986501026442c67314a17af18aa44e03 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/348446d6986501026442c67314a17af18aa44e03 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn