apollo_developers/bower_components/angular-ladda/test/e2e/spec/test.js
venbatechnologies@gmail.com 1809bcf9c9 fixed table for student details
2018-04-23 18:34:11 +05:30

24 lines
709 B
JavaScript
Executable File

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);
});
});