Skip to content

Commit 3d6c44e

Browse files
committed
test(KeyEvents): workaround a bug in chrome driver
closes angular#2253 see https://code.google.com/p/chromedriver/issues/detail?id=553
1 parent c60091b commit 3d6c44e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/examples/e2e_test/key_events/key_events_spec.es6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ describe('key_events', function () {
2525
firstArea.sendKeys(' ');
2626
expect(firstArea.getText()).toBe('space');
2727

28-
firstArea.sendKeys('a');
29-
expect(firstArea.getText()).toBe('a');
28+
// It would not work with a letter which position depends on the keyboard layout (ie AZERTY vs
29+
// QWERTY), see https://code.google.com/p/chromedriver/issues/detail?id=553
30+
firstArea.sendKeys('u');
31+
expect(firstArea.getText()).toBe('u');
3032

3133
firstArea.sendKeys(protractor.Key.CONTROL, 'b');
3234
expect(firstArea.getText()).toBe('control.b');

0 commit comments

Comments
 (0)