Files
angular__angular/e2e/components/button/button.e2e.ts
T
Kristiyan Kostadinov 508703a8c5 test: use proper typings in e2e app (#2051)
* test: use proper typings in e2e app

* Switches to use the typings from @types for the e2e app.
* Adds all of the necessary imports and fixes type issues.

Relates to #2025.
Fixes #1531.

* Add missing typings to slide toggle.

* Fix another typo.
2016-12-19 10:17:23 -08:00

18 lines
576 B
TypeScript

import {browser, by, element} from 'protractor';
describe('button', function () {
describe('disabling behavior', function () {
beforeEach(function() {
browser.get('/button');
});
it('should prevent click handlers from executing when disabled', function () {
element(by.id('test-button')).click();
expect(element(by.id('click-counter')).getText()).toEqual('1');
element(by.id('disable-toggle')).click();
element(by.id('test-button')).click();
expect(element(by.id('click-counter')).getText()).toEqual('1');
});
});
});