test(KeyEvents): workaround a bug in chrome driver

closes #2253

see https://code.google.com/p/chromedriver/issues/detail?id=553
This commit is contained in:
Victor Berchet 2015-06-02 14:37:57 +02:00
parent c60091b949
commit 3d6c44e2a7
1 changed files with 4 additions and 2 deletions

View File

@ -25,8 +25,10 @@ describe('key_events', function () {
firstArea.sendKeys(' ');
expect(firstArea.getText()).toBe('space');
firstArea.sendKeys('a');
expect(firstArea.getText()).toBe('a');
// It would not work with a letter which position depends on the keyboard layout (ie AZERTY vs
// QWERTY), see https://code.google.com/p/chromedriver/issues/detail?id=553
firstArea.sendKeys('u');
expect(firstArea.getText()).toBe('u');
firstArea.sendKeys(protractor.Key.CONTROL, 'b');
expect(firstArea.getText()).toBe('control.b');