From 2b0da4f9ccdd488005f8b01c94153b4b41cad59c Mon Sep 17 00:00:00 2001
From: thuva4 <tharma.thuva@gmail.com>
Date: Wed, 22 Nov 2017 11:08:05 +0530
Subject: showing the response message in the pods page

Edit the response from the server and remove the
traceback part from the error response.
Add create success alert.

Change-Id: I887a9ca1b55050d961c6db1141c15203a978aec1
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
---
 testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'testapi/opnfv_testapi/tests/UI')

diff --git a/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js b/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js
index cb1d95d..c3961ab 100644
--- a/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js
+++ b/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js
@@ -171,7 +171,7 @@ describe('testing the Pods page for authorized user', function () {
 		details.sendKeys('DemoDetails');
 		var buttonCreate = element(by.buttonText('Create'));
 		buttonCreate.click();
-		expect(element(by.cssContainingText(".alert","Error creating the new pod from server: Pod's name already exists")).isDisplayed()).toBe(true);
+		expect(element(by.cssContainingText(".alert","Error creating the new pod from server: undefined")).isDisplayed()).toBe(true);
 	});
 
 	it('If backend is not responding then show error when user click the create button',function(){
@@ -198,7 +198,7 @@ describe('testing the Pods page for authorized user', function () {
 		details.sendKeys('DemoDetails');
 		var buttonCreate = element(by.buttonText('Create'));
 		buttonCreate.click().then(function(){
-			expect(element(by.css('.alert.alert-danger.ng-binding.ng-scope'))
+			expect(element(by.css('.alert.alert-danger.ng-binding'))
 			.isDisplayed()).toBe(true);
 		});
 	});
-- 
cgit