mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
@@ -5,6 +5,7 @@
|
|||||||
<div class="mdl-dialog__content">
|
<div class="mdl-dialog__content">
|
||||||
<div class="mdl-textfield mdl-js-textfield alf-mdl-selectfield">
|
<div class="mdl-textfield mdl-js-textfield alf-mdl-selectfield">
|
||||||
<select name="processDefinition" [(ngModel)]="processDefinitionId" id="processDefinition">
|
<select name="processDefinition" [(ngModel)]="processDefinitionId" id="processDefinition">
|
||||||
|
<option value="" selected="selected">{{'START_PROCESS.DIALOG.TYPE_PLACEHOLDER'|translate}}</option>
|
||||||
<option *ngFor="let processDef of processDefinitions" [value]="processDef.id">
|
<option *ngFor="let processDef of processDefinitions" [value]="processDef.id">
|
||||||
{{processDef.name}}
|
{{processDef.name}}
|
||||||
</option>
|
</option>
|
||||||
|
@@ -80,13 +80,13 @@ describe('ActivitiStartProcessButton', () => {
|
|||||||
it('should display the correct number of processes in the select list', () => {
|
it('should display the correct number of processes in the select list', () => {
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
de = fixture.debugElement.query(By.css('select'));
|
de = fixture.debugElement.query(By.css('select'));
|
||||||
expect(de.children.length).toBe(2);
|
expect(de.children.length).toBe(3);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should display the correct process def details', (done) => {
|
it('should display the correct process def details', (done) => {
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
fixture.whenStable().then(() => {
|
fixture.whenStable().then(() => {
|
||||||
de = fixture.debugElement.query(By.css('select option'));
|
de = fixture.debugElement.queryAll(By.css('select option'))[1];
|
||||||
let optionEl: HTMLOptionElement = de.nativeElement;
|
let optionEl: HTMLOptionElement = de.nativeElement;
|
||||||
expect(optionEl.value).toBe('my:process1');
|
expect(optionEl.value).toBe('my:process1');
|
||||||
expect(optionEl.textContent.trim()).toBe('My Process 1');
|
expect(optionEl.textContent.trim()).toBe('My Process 1');
|
||||||
|
@@ -45,6 +45,7 @@
|
|||||||
"TYPE": "Type",
|
"TYPE": "Type",
|
||||||
"NAME": "Name"
|
"NAME": "Name"
|
||||||
},
|
},
|
||||||
|
"TYPE_PLACEHOLDER": "Choose one...",
|
||||||
"ACTION": {
|
"ACTION": {
|
||||||
"START": "Start",
|
"START": "Start",
|
||||||
"CANCEL": "Cancel"
|
"CANCEL": "Cancel"
|
||||||
|
Reference in New Issue
Block a user