mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
@@ -73,11 +73,16 @@ describe('menu', () => {
|
||||
page.pressKey(protractor.Key.TAB);
|
||||
});
|
||||
|
||||
it('should auto-focus the first item when opened with keyboard', () => {
|
||||
it('should auto-focus the first item when opened with ENTER', () => {
|
||||
page.pressKey(protractor.Key.ENTER);
|
||||
page.expectFocusOn(page.items(0));
|
||||
});
|
||||
|
||||
it('should auto-focus the first item when opened with SPACE', () => {
|
||||
page.pressKey(protractor.Key.SPACE);
|
||||
page.expectFocusOn(page.items(0));
|
||||
});
|
||||
|
||||
it('should not focus the first item when opened with mouse', () => {
|
||||
page.trigger().click();
|
||||
page.expectFocusOn(page.trigger());
|
||||
|
||||
Reference in New Issue
Block a user