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