puppeteer/test
Philipp Hagemeister 067662c677
Emit change event on uploadFile calls (#5389)
In puppeteer 1.20.0, the following code emitted an alert:
```
const puppeteer = require('puppeteer');

(async () => {
	const browser = await puppeteer.launch({args: ['--no-sandbox'], headless: false});
	const page = (await browser.pages())[0];

	await page.setContent(`
		<input type=file>
		<script>
		document.querySelector('input').addEventListener('change', () => {
			alert('Uploaded a file');
		});
		</script>
		`);
	const input = await page.waitForSelector('input[type="file"]');
	await input.uploadFile(__filename);
})();
```

A bisection yielded 6091a34a36 as the commit that broke this.

Emitting the change event as well seems to fix the problem.
2020-03-12 17:26:03 +01:00
..
assets (feat) Add option to fetch Firefox Nightly (#5467) 2020-03-10 21:59:03 +01:00
fixtures fix(launcher): make dumpio and pipe options work together (#4727) 2019-07-18 16:42:11 -07:00
golden-chromium test: add page.screenshot viewport clipping test (#5079) 2019-10-24 14:05:13 +02:00
golden-firefox test: add page.screenshot viewport clipping test (#5079) 2019-10-24 14:05:13 +02:00
accessibility.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
browser.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
browsercontext.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
CDPSession.spec.js test: cleanup tests (#4078) 2019-02-26 20:36:55 -08:00
chromiumonly.spec.js feat(chromium): roll Chromium to r722269 (#5289) 2020-01-27 14:44:53 +01:00
click.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
cookies.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
coverage.spec.js chore(test): label coverage+debuger test with upstream bug (#4807) 2019-08-05 15:22:01 -07:00
defaultbrowsercontext.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
dialog.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
elementhandle.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
emulation.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
evaluation.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
fixtures.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
frame.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
golden-utils.js fix: set JPG background to white when omitBackground option is used (#3240) 2018-09-14 11:03:33 +01:00
headful.spec.js chore: update URLs (#5185) 2019-11-26 13:12:25 +01:00
ignorehttpserrors.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
input.spec.js Emit change event on uploadFile calls (#5389) 2020-03-12 17:26:03 +01:00
jshandle.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
keyboard.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
launcher.spec.js (feat) Add option to fetch Firefox Nightly (#5467) 2020-03-10 21:59:03 +01:00
mouse.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
navigation.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
network.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
oopif.spec.js feat(chromium): roll Chromium to r665405 (#4516) 2019-06-04 11:03:15 -07:00
page.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
puppeteer.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
queryselector.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
requestinterception.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
run_static_server.js chore(testserver): prepare test server (#3294) 2018-09-24 12:46:39 -07:00
screenshot.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
target.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
test.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
touchscreen.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
tracing.spec.js fix(tracing): start without options (#4388) 2019-05-09 17:15:33 -07:00
utils.js chore: update URLs (#5185) 2019-11-26 13:12:25 +01:00
waittask.spec.js chore: Replace Juggler with Firefox Nightly in CI (#5395) 2020-02-20 13:57:15 +01:00
worker.spec.js chore(firefox): mark all Puppeteer tests that are failing on FF (#3924) 2019-02-05 22:32:41 -08:00