diff --git a/packages/playwright-core/src/server/injected/injectedScript.ts b/packages/playwright-core/src/server/injected/injectedScript.ts index 36ca779ad7..e6a984a1c0 100644 --- a/packages/playwright-core/src/server/injected/injectedScript.ts +++ b/packages/playwright-core/src/server/injected/injectedScript.ts @@ -725,7 +725,7 @@ export class InjectedScript { const attrs = []; for (let i = 0; i < element.attributes.length; i++) { const { name, value } = element.attributes[i]; - if (name === 'style') + if (name === 'style' || name.startsWith('__playwright')) continue; if (!value && booleanAttributes.has(name)) attrs.push(` ${name}`); diff --git a/packages/playwright-core/src/web/components/treeItem.tsx b/packages/playwright-core/src/web/components/treeItem.tsx index 0c780bd72d..6b09180bc3 100644 --- a/packages/playwright-core/src/web/components/treeItem.tsx +++ b/packages/playwright-core/src/web/components/treeItem.tsx @@ -39,12 +39,12 @@ export const TreeItem: React.FunctionComponent<{ export function downArrow() { return ; } export function rightArrow() { return ; } diff --git a/packages/playwright-core/src/web/htmlReport/htmlReport.css b/packages/playwright-core/src/web/htmlReport/htmlReport.css index 9e7ef7b9b8..511e09b1a2 100644 --- a/packages/playwright-core/src/web/htmlReport/htmlReport.css +++ b/packages/playwright-core/src/web/htmlReport/htmlReport.css @@ -89,7 +89,7 @@ svg { cursor: pointer; } -.chip-body .tree-item { +.chip-body > .tree-item { max-width: 600px; line-height: 38px; } @@ -107,6 +107,7 @@ svg { background-color: var(--color-canvas-subtle); border-radius: 6px; padding: 16px; + line-height: initial; } .status-icon { diff --git a/packages/playwright-core/src/web/htmlReport/htmlReport.tsx b/packages/playwright-core/src/web/htmlReport/htmlReport.tsx index b93bcc2ec3..070a226cf8 100644 --- a/packages/playwright-core/src/web/htmlReport/htmlReport.tsx +++ b/packages/playwright-core/src/web/htmlReport/htmlReport.tsx @@ -243,7 +243,7 @@ const AttachmentLink: React.FunctionComponent<{ }> = ({ attachment, href }) => { return {attachment.path && {attachment.name}} {attachment.body && {attachment.name}} @@ -295,15 +295,15 @@ function statusIcon(status: 'failed' | 'timedOut' | 'skipped' | 'passed' | 'expe ; case 'timedOut': return ; case 'flaky': return ; case 'skipped': return ; } }