spec: skip flaky <webview>.capturePage() test on Windows (#21175)

This commit is contained in:
Milan Burda 2019-11-19 18:57:35 +01:00 committed by John Kleinschmidt
parent 6ca7eb79bc
commit 145dd33da1

View file

@ -1023,6 +1023,13 @@ describe('<webview> tag', function () {
}) })
describe('<webview>.capturePage()', () => { describe('<webview>.capturePage()', () => {
before(function () {
// TODO(miniak): figure out why this is failing on windows
if (process.platform === 'win32') {
this.skip()
}
})
it('returns a Promise with a NativeImage', async () => { it('returns a Promise with a NativeImage', async () => {
const src = 'data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E' const src = 'data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E'
await loadWebView(webview, { src }) await loadWebView(webview, { src })