mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-05 14:45:40 -04:00
build(deps): bump playwright from 1.49.1 to 1.50.1
This commit is contained in:
17
node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js
generated
vendored
17
node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js
generated
vendored
@@ -36,6 +36,7 @@ function frameSnapshotStreamer(snapshotStreamer, removeNoScript) {
|
||||
const kCustomElementsAttribute = '__playwright_custom_elements__';
|
||||
const kCurrentSrcAttribute = '__playwright_current_src__';
|
||||
const kBoundingRectAttribute = '__playwright_bounding_rect__';
|
||||
const kPopoverOpenAttribute = '__playwright_popover_open_';
|
||||
|
||||
// Symbols for our own info on Nodes/StyleSheets.
|
||||
const kSnapshotFrameId = Symbol('__playwright_snapshot_frameid_');
|
||||
@@ -354,18 +355,24 @@ function frameSnapshotStreamer(snapshotStreamer, removeNoScript) {
|
||||
expectValue(value);
|
||||
attrs[kSelectedAttribute] = value;
|
||||
}
|
||||
if (nodeName === 'CANVAS') {
|
||||
if (nodeName === 'CANVAS' || nodeName === 'IFRAME' || nodeName === 'FRAME') {
|
||||
const boundingRect = element.getBoundingClientRect();
|
||||
const value = JSON.stringify({
|
||||
left: boundingRect.left / window.innerWidth,
|
||||
top: boundingRect.top / window.innerHeight,
|
||||
right: boundingRect.right / window.innerWidth,
|
||||
bottom: boundingRect.bottom / window.innerHeight
|
||||
left: boundingRect.left,
|
||||
top: boundingRect.top,
|
||||
right: boundingRect.right,
|
||||
bottom: boundingRect.bottom
|
||||
});
|
||||
expectValue(kBoundingRectAttribute);
|
||||
expectValue(value);
|
||||
attrs[kBoundingRectAttribute] = value;
|
||||
}
|
||||
if (element.popover && element.matches && element.matches(':popover-open')) {
|
||||
const value = 'true';
|
||||
expectValue(kPopoverOpenAttribute);
|
||||
expectValue(value);
|
||||
attrs[kPopoverOpenAttribute] = value;
|
||||
}
|
||||
if (element.scrollTop) {
|
||||
expectValue(kScrollTopAttribute);
|
||||
expectValue(element.scrollTop);
|
||||
|
||||
7
node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js
generated
vendored
7
node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js
generated
vendored
@@ -94,7 +94,12 @@ async function installRootRedirect(server, traceUrls, options) {
|
||||
if (options.grepInvert) params.append('grepInvert', options.grepInvert);
|
||||
for (const project of options.project || []) params.append('project', project);
|
||||
for (const reporter of options.reporter || []) params.append('reporter', reporter);
|
||||
const urlPath = `./trace/${options.webApp || 'index.html'}?${params.toString()}`;
|
||||
let baseUrl = '.';
|
||||
if (process.env.PW_HMR) {
|
||||
baseUrl = 'http://localhost:44223'; // port is hardcoded in build.js
|
||||
params.set('server', server.urlPrefix('precise'));
|
||||
}
|
||||
const urlPath = `${baseUrl}/trace/${options.webApp || 'index.html'}?${params.toString()}`;
|
||||
server.routePath('/', (_, response) => {
|
||||
response.statusCode = 302;
|
||||
response.setHeader('Location', urlPath);
|
||||
|
||||
Reference in New Issue
Block a user