mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
508703a8c5
* 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.
18 lines
576 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|