summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/e2e/main/anchoring.spec.js
blob: 80bdad0df1dbdbf4712d8282085e047ca85e46de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
            //});



        });
    });
});