diff --git a/components/app-framework/src/widgets/select-input/select-input.html b/components/app-framework/src/widgets/select-input/select-input.html index a5eebf6832..f44efdd069 100644 --- a/components/app-framework/src/widgets/select-input/select-input.html +++ b/components/app-framework/src/widgets/select-input/select-input.html @@ -2,7 +2,7 @@
app.app-info.app-tabs.summary.service-instances-panel.name-label | @@ -295,7 +295,7 @@||
---|---|---|
{{ service.name }} | {{ service.service_plan.service.label }} | {{ service.service_plan.name }} | diff --git a/components/cloud-foundry/frontend/src/view/applications/workflows/add-service-workflow/add-service-workflow.directive.js b/components/cloud-foundry/frontend/src/view/applications/workflows/add-service-workflow/add-service-workflow.directive.js index 3540f49799..275921e73a 100644 --- a/components/cloud-foundry/frontend/src/view/applications/workflows/add-service-workflow/add-service-workflow.directive.js +++ b/components/cloud-foundry/frontend/src/view/applications/workflows/add-service-workflow/add-service-workflow.directive.js @@ -201,8 +201,11 @@ var plans = _.map(servicePlans, function (o) { return { label: o.entity.name, value: o }; }); [].push.apply(vm.options.servicePlans, plans); - vm.options.servicePlanMap = _.keyBy(servicePlans, - function (o) { return o.metadata.guid; }); + if (vm.options.servicePlans.length) { + vm.options.userInput.plan = vm.options.servicePlans[0].value; + } + + vm.options.servicePlanMap = _.keyBy(servicePlans, function (o) { return o.metadata.guid; }); }); } diff --git a/components/cloud-foundry/frontend/test/e2e/applications.add-app.spec.js b/components/cloud-foundry/frontend/test/e2e/applications.add-app.spec.js index 0048e40756..3931d4b7e3 100644 --- a/components/cloud-foundry/frontend/test/e2e/applications.add-app.spec.js +++ b/components/cloud-foundry/frontend/test/e2e/applications.add-app.spec.js @@ -189,6 +189,22 @@ }); application.showSummary(); + + // Test that the service is shown in the summary page + // Check that we have at least one service + var serviceInstances = table.wrap(element(by.css('.summary-service-instances table'))); + serviceInstances.getRows().then(function (rows) { + expect(rows.length).toBeGreaterThan(0); + }); + // Table should contain our service + var column = serviceInstances.getElement().all(by.css('td')).filter(function (elem) { + return elem.getText().then(function (text) { + return text === SERVICE_NAME; + }); + }).first(); + expect(column).toBeDefined(); + + // Test CLI Info application.invokeAction('CLI Info'); // cf push acceptance.e2e.1484149644648 diff --git a/docs/development.md b/docs/development.md index ec14897767..512016d293 100644 --- a/docs/development.md +++ b/docs/development.md @@ -153,13 +153,6 @@ $ gulp dev In both cases the console should be available via https://localhost:3100 -> **Note:** If you see the following error when running 'gulp dev' you may need to increase your OS ulimit. -``` -Error: ENFILE: file table overflow, scandir