talasila | 4ad39a5 | 2017-02-07 15:03:57 -0500 | [diff] [blame^] | 1 | describe('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 | |