mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 06:58:40 +00:00
chore(deps): update dependency selenium-webdriver to v4.0.0-rc-1 [skip netlify] (#3233)
* chore(deps): update dependency selenium-webdriver to v4.0.0-rc-1 [skip netlify] * test: ignore JavascriptError Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
@@ -303,6 +303,7 @@ function buildDriver() {
|
||||
builder.usingServer(seleniumURL);
|
||||
}
|
||||
if (opts.seleniumCapabilities) {
|
||||
// TODO: withCapabilities is deprecated
|
||||
builder.withCapabilities(opts.seleniumCapabilities);
|
||||
}
|
||||
return builder.build();
|
||||
@@ -487,9 +488,13 @@ async function takeScreenshot(key) {
|
||||
await collectCoverage();
|
||||
}
|
||||
await driver.get(url);
|
||||
await driver.executeAsyncScript(
|
||||
"var callback = arguments[arguments.length - 1]; " +
|
||||
"load_fonts_and_images(callback);");
|
||||
try {
|
||||
await driver.executeAsyncScript(
|
||||
"var callback = arguments[arguments.length - 1]; " +
|
||||
"load_fonts_and_images(callback);");
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
driverReady = true;
|
||||
}
|
||||
if (opts.wait) {
|
||||
|
Reference in New Issue
Block a user