try using mousemove in tests

This commit is contained in:
Rich Harris
2018-03-18 21:53:13 -04:00
parent c2f3a2aac0
commit a6b1527fd3

View File

@@ -308,7 +308,10 @@ function run({ mode, basepath = '' }) {
.then(() => {
return capture(() => {
return nightmare
.mouseover('[href="blog/what-is-sapper"]')
.evaluate(() => {
const a = document.querySelector('[href="blog/what-is-sapper"]');
a.dispatchEvent(new MouseEvent('mousemove'));
})
.wait(200);
});
})