test(keyboard): Remove duplicated test (#1031)

This commit is contained in:
Darío Kondratiuk 2020-02-15 19:58:07 -03:00 committed by GitHub
parent 8071225d1e
commit cfeaecb3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,14 +37,6 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
await page.keyboard.type(text); await page.keyboard.type(text);
expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe(text); expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe(text);
}); });
it('should press the metaKey', async({page, server}) => {
await page.goto(server.PREFIX + '/empty.html');
await page.evaluate(() => {
window.keyPromise = new Promise(resolve => document.addEventListener('keydown', event => resolve(event.key)));
});
await page.keyboard.press('Meta');
expect(await page.evaluate('keyPromise')).toBe(FFOX && !MAC ? 'OS' : 'Meta');
});
it('should move with the arrow keys', async({page, server}) => { it('should move with the arrow keys', async({page, server}) => {
await page.goto(server.PREFIX + '/input/textarea.html'); await page.goto(server.PREFIX + '/input/textarea.html');
await page.type('textarea', 'Hello World!'); await page.type('textarea', 'Hello World!');