summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js
diff options
context:
space:
mode:
authorthuva4 <tharma.thuva@gmail.com>2018-01-16 00:09:51 +0530
committerthuva4 <tharma.thuva@gmail.com>2018-01-16 09:13:07 +0530
commit86db2b6832d51f8cd4d428bc431aca9daa99c4e0 (patch)
treea834b06487cef796afa67f484005b09a8a81c3bd /testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js
parent62fb9a03e047d70bb15c67d2748ffe377273d0b6 (diff)
Design the scenario create method
design scenario create method in modal way. design scenario page. Add,delete for installers,versions, projects and customs are implemented. tests are added. 1. Pods page 2. project page 3. Scenarios 4. Scenario Change-Id: Ice26af77ec3d5fe874cf5c2062f208072dea289f Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js')
-rw-r--r--testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js b/testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js
index a14f8ea..d6dfa1c 100644
--- a/testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js
+++ b/testapi/opnfv_testapi/tests/UI/e2e/resultsControllerSpec.js
@@ -132,7 +132,7 @@ describe('testing the result page for anonymous user', function () {
expect(element(by.cssContainingText(".ng-binding.ng-scope","Test Results")).isDisplayed()).toBe(true);
});
- it( 'navigate anonymous user to testCase page', function() {
+ it( 'navigate anonymous user to results page', function() {
browser.get(baseURL);
var resultLink = element(by.linkText('Results')).click();
var EC = browser.ExpectedConditions;
@@ -348,6 +348,24 @@ describe('testing the result page for user', function () {
buttonFilter.click();
expect(cells.get(0).getText()).toContain("5a45170bbb2092000e2643f6");
});
+
+ it('Clear the filter', function () {
+ browser.get(baseURL+"#/results");
+ var filter = element(by.model('ctrl.filter'));
+ var filterText = element(by.model('ctrl.filterText'));
+ filter.sendKeys('project');
+ filterText.sendKeys('testproject');
+ var buttonFilter = element(by.buttonText('Filter'));
+ buttonFilter.click();
+ var row = element.all(by.repeater('(index, result) in ctrl.data.results')).first();
+ var cells = row.all(by.tagName('td'));
+ expect(cells.get(0).getText()).toContain("5a45170bbb2092000e2643f5");
+ var buttonClear = element(by.buttonText('Clear'));
+ buttonClear.click();
+ var row = element.all(by.repeater('(index, result) in ctrl.data.results')).first();
+ var cells = row.all(by.tagName('td'));
+ expect(cells.get(0).getText()).toContain("5a45170bbb2092000e2643f4");
+ });
it('Should not show the results in results page related to the filters for user ', function () {
browser.get(baseURL+"#/results");
var filter = element(by.model('ctrl.filter'));