blob: 80bdad0df1dbdbf4712d8282085e047ca85e46de [file] [log] [blame]
talasila4ad39a52017-02-07 15:03:57 -05001describe('New Test 1', function () {
2 it('Test', function (done) {
3
4 browser.driver.manage().window().maximize();
5
6 var container = element(by.css('.sidebar'));
7 container.all(by.repeater('group in groups')).then(function(groups) {
8 var middleEl = Math.floor(groups.length / 2);
9
10 groups[middleEl].click().then(function(){
11 expect(groups[middleEl].getAttribute('class')).toContain('active');
12 done();
13 });
14
15 //var groupButton = groups[middleEl].element(by.binding('group.name'))
16
17 //groups[middleEl].click().then(function(){
18 // expect(groups[middleEl].getAttribute('class')).toContain('active');
19 // done();
20 //});
21
22
23
24 });
25 });
26});
27