diff options
author | thuva4 <tharma.thuva@gmail.com> | 2017-11-14 15:38:56 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2017-11-14 15:38:56 +0530 |
commit | 265e10a036b545d9d4e15bebef17e38e4b013af3 (patch) | |
tree | 253f52de1842ec2ca3dc5e33d381f6108c4c39ab /testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js | |
parent | 3b3477d3f632208d99fe2ab71679ab84b618855a (diff) |
Create functionality and e2e tests for project
Implemented the create function for the projects.
Wrote the e2e tests for the create function.
Change-Id: Iceac650573ca31b6246350c4d60033b42e0ffb0f
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js')
-rw-r--r-- | testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js b/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js index 66a57f2..8cf7467 100644 --- a/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js +++ b/testapi/opnfv_testapi/tests/UI/e2e/podsControllerSpec.js @@ -12,7 +12,9 @@ describe('testing the Pods page for anonymous user', function () { }, response: { data: { - pods: [{role: "community-ci", name: "test", owner: "testUser", details: "DemoDetails", mode: "metal", _id: "59f02f099a07c84bfc5c7aed", creation_date: "2017-10-25 11:58:25.926168"}] + pods: [{role: "community-ci", name: "test", owner: "testUser", + details: "DemoDetails", mode: "metal", _id: "59f02f099a07c84bfc5c7aed", + creation_date: "2017-10-25 11:58:25.926168"}] } } }]); @@ -73,7 +75,8 @@ describe('testing the Pods page for anonymous user', function () { mock.teardown(); var buttonFilter = element(by.buttonText('Filter')); buttonFilter.click().then(function(){ - expect(element(by.css('.alert.alert-danger.ng-binding.ng-scope')).isDisplayed()).toBe(true); + expect(element(by.css('.alert.alert-danger.ng-binding.ng-scope')) + .isDisplayed()).toBe(true); }); }); @@ -116,7 +119,9 @@ describe('testing the Pods page for authorized user', function () { }, response: { data: { - "fullname": "Test User", "_id": "79f82eey9a00c84bfhc7aed", "user": "testUser", "groups": ["opnfv-testapi-users"], "email": "testuser@test.com" + "fullname": "Test User", "_id": "79f82eey9a00c84bfhc7aed", + "user": "testUser", "groups": ["opnfv-testapi-users", + "opnfv-gerrit-functest-submitters"], "email": "testuser@test.com" } } } @@ -136,7 +141,8 @@ 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')).isDisplayed()).toBe(false); + expect(element(by.css('.alert.alert-danger.ng-binding.ng-scope')) + .isDisplayed()).toBe(false); }); }); @@ -170,7 +176,9 @@ describe('testing the Pods page for authorized user', function () { }, response: { data: { - "fullname": "Test User", "_id": "79f82eey9a00c84bfhc7aed", "user": "testUser", "groups": ["opnfv-testapi-users"], "email": "testuser@test.com" + "fullname": "Test User", "_id": "79f82eey9a00c84bfhc7aed", + "user": "testUser", "groups": ["opnfv-testapi-users"], + "email": "testuser@test.com" } } } @@ -182,7 +190,8 @@ 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')).isDisplayed()).toBe(true); + expect(element(by.css('.alert.alert-danger.ng-binding.ng-scope')) + .isDisplayed()).toBe(true); }); - }) + }); });
\ No newline at end of file |