Initial OpenECOMP Portal commit
Change-Id: I804b80e0830c092e307da1599bd9fbb5c3e2da77
Signed-off-by: talasila <talasila@research.att.com>
diff --git a/ecomp-portal-FE/e2e/main/anchoring.spec.js b/ecomp-portal-FE/e2e/main/anchoring.spec.js
new file mode 100644
index 0000000..80bdad0
--- /dev/null
+++ b/ecomp-portal-FE/e2e/main/anchoring.spec.js
@@ -0,0 +1,27 @@
+describe('New Test 1', function () {
+ it('Test', function (done) {
+
+ browser.driver.manage().window().maximize();
+
+ var container = element(by.css('.sidebar'));
+ container.all(by.repeater('group in groups')).then(function(groups) {
+ var middleEl = Math.floor(groups.length / 2);
+
+ groups[middleEl].click().then(function(){
+ expect(groups[middleEl].getAttribute('class')).toContain('active');
+ done();
+ });
+
+ //var groupButton = groups[middleEl].element(by.binding('group.name'))
+
+ //groups[middleEl].click().then(function(){
+ // expect(groups[middleEl].getAttribute('class')).toContain('active');
+ // done();
+ //});
+
+
+
+ });
+ });
+});
+