-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e16992
commit b4b54c8
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
describe('checkbox', function () { | ||
describe('check behavior', function () { | ||
beforeEach(function() { | ||
browser.get('/checkbox'); | ||
}); | ||
it('should be checked when clicked, and be unchecked when clicked again', function () { | ||
element(by.id('test-checkbox')).click(); | ||
element(by.css('input[id=input-test-checkbox]')).getAttribute('checked').then((value: string) => { | ||
expect(value).toBeTruthy('Expect checkbox "checked" property to be true'); | ||
}); | ||
|
||
element(by.id('test-checkbox')).click(); | ||
element(by.css('input[id=input-test-checkbox]')).getAttribute('checked').then((value: string) => { | ||
expect(value).toBeFalsy('Expect checkbox "checked" property to be false'); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<md-checkbox id="test-checkbox">Check this button</md-checkbox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'checkbox-e2e', | ||
templateUrl: 'checkbox-e2e.html', | ||
}) | ||
export class SimpleCheckboxes {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters