test: add a failing test for page.press (#3780)
This commit is contained in:
parent
66985fc5f6
commit
f8e1fd7ead
|
|
@ -237,6 +237,16 @@ it('page.press should work', async ({page, server}) => {
|
||||||
expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('a');
|
expect(await page.evaluate(() => document.querySelector('textarea').value)).toBe('a');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('page.press should work for Enter', test => {
|
||||||
|
test.fail(options.CHROMIUM && MAC, 'page.press() does not emit keypress event on Enter');
|
||||||
|
}, async ({page, server}) => {
|
||||||
|
await page.setContent(`<input onkeypress="console.log('press')"></input>`);
|
||||||
|
const messages = [];
|
||||||
|
page.on('console', message => messages.push(message));
|
||||||
|
await page.press('input', 'Enter');
|
||||||
|
expect(messages[0].text()).toBe('press');
|
||||||
|
});
|
||||||
|
|
||||||
it('frame.press should work', async ({page, server}) => {
|
it('frame.press should work', async ({page, server}) => {
|
||||||
await page.setContent(`<iframe name=inner src="${server.PREFIX}/input/textarea.html"></iframe>`);
|
await page.setContent(`<iframe name=inner src="${server.PREFIX}/input/textarea.html"></iframe>`);
|
||||||
const frame = page.frame('inner');
|
const frame = page.frame('inner');
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ describe('screencast', suite => {
|
||||||
test.flaky(options.CHROMIUM && MAC);
|
test.flaky(options.CHROMIUM && MAC);
|
||||||
test.flaky(options.FIREFOX);
|
test.flaky(options.FIREFOX);
|
||||||
test.flaky(options.WEBKIT);
|
test.flaky(options.WEBKIT);
|
||||||
|
test.fixme(options.WEBKIT && LINUX, 'Times out on bots');
|
||||||
}, async ({page, tmpDir, server, videoPlayer, toImpl}) => {
|
}, async ({page, tmpDir, server, videoPlayer, toImpl}) => {
|
||||||
const videoFile = path.join(tmpDir, 'v.webm');
|
const videoFile = path.join(tmpDir, 'v.webm');
|
||||||
await page.goto(server.PREFIX + '/background-color.html#rgb(0,0,0)');
|
await page.goto(server.PREFIX + '/background-color.html#rgb(0,0,0)');
|
||||||
|
|
@ -220,8 +221,7 @@ describe('screencast', suite => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should capture css transformation', test => {
|
it('should capture css transformation', test => {
|
||||||
test.fixme(options.WEBKIT && WIN, 'Accelerated compositing is disabled in WebKit on Windows.');
|
test.fixme(options.WEBKIT && LINUX, 'Times out on bots');
|
||||||
test.flaky(options.WEBKIT && LINUX);
|
|
||||||
}, async ({page, tmpDir, server, videoPlayer, toImpl}) => {
|
}, async ({page, tmpDir, server, videoPlayer, toImpl}) => {
|
||||||
const videoFile = path.join(tmpDir, 'v.webm');
|
const videoFile = path.join(tmpDir, 'v.webm');
|
||||||
// Set viewport equal to screencast frame size to avoid scaling.
|
// Set viewport equal to screencast frame size to avoid scaling.
|
||||||
|
|
@ -303,7 +303,9 @@ describe('screencast', suite => {
|
||||||
await browser.close();
|
await browser.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should scale frames down to the requested size ', async ({page, videoPlayer, tmpDir, server, toImpl}) => {
|
it('should scale frames down to the requested size ', test => {
|
||||||
|
test.fixme(options.WEBKIT && LINUX, 'Times out on bots');
|
||||||
|
}, async ({page, videoPlayer, tmpDir, server, toImpl}) => {
|
||||||
await page.setViewportSize({width: 640, height: 480});
|
await page.setViewportSize({width: 640, height: 480});
|
||||||
const videoFile = path.join(tmpDir, 'v.webm');
|
const videoFile = path.join(tmpDir, 'v.webm');
|
||||||
await page.goto(server.PREFIX + '/checkerboard.html');
|
await page.goto(server.PREFIX + '/checkerboard.html');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue