apollo_developers/bower_components/angular-ladda/test/e2e/spec/test.js
saravanakumar_kandasami a11795c215 SIT code
2018-04-19 18:17:06 +05:30

24 lines
709 B
JavaScript

describe('default test', function() {
beforeEach(function () {
browser.get('/test.html');
});
it('should compile inner text', function() {
expect(element(by.id('btn')).getText()).toEqual('ladda button');
});
it('should exist ladda-label span tag', function() {
expect(element(by.css('#btn .ladda-label')).isPresent()).toBe(true);
});
it('should exist ladda-spinner span tag', function() {
expect(element(by.css('#btn .ladda-spinner')).isPresent()).toBe(true);
});
it('should exist spinner when ladda is true', function() {
element(by.id('btn')).click();
browser.sleep(500);
expect(element(by.css('#btn .ladda-spinner div')).isPresent()).toBe(true);
});
});