We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa6341a commit 10d1e75Copy full SHA for 10d1e75
1 file changed
src/components/button/button.spec.ts
@@ -34,6 +34,21 @@ describe('MdButton', () => {
34
});
35
36
37
+ it('should not increment if disabled', (done: () => void) => {
38
+ return builder.createAsync(TestApp).then((fixture) => {
39
+ let testComponent = fixture.debugElement.componentInstance;
40
+ let buttonDebugElement = fixture.debugElement.query(By.css('button'));
41
+
42
+ testComponent.isDisabled = true;
43
+ fixture.detectChanges();
44
45
+ buttonDebugElement.nativeElement.click();
46
47
+ expect(testComponent.clickCount).toBe(0);
48
+ done();
49
+ })
50
+ });
51
52
53
54
0 commit comments