Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(html-reporter): use button elements for tabs (#41440)
Aditya Kumar Gupta224ed087809e
diff --git a/packages/html-reporter/src/tabbedPane.css b/packages/html-reporter/src/tabbedPane.cssindex 042ab9f760..d063719c39 100644--- a/packages/html-reporter/src/tabbedPane.css+++ b/packages/html-reporter/src/tabbedPane.css@@ -48,11 +48,20 @@align-items: center;justify-content: center;user-select: none;+ background: none;+ border: none;border-bottom: 2px solid transparent;+ color: inherit;+ font: inherit;outline: none;height: 100%;}+.tabbed-pane-tab-element:focus-visible {+ outline: 1px solid var(--color-accent-fg);+ outline-offset: -1px;+}+.tabbed-pane-tab-label {max-width: 250px;white-space: pre;diff --git a/packages/html-reporter/src/tabbedPane.tsx b/packages/html-reporter/src/tabbedPane.tsxindex a1e533348b..55d8f51955 100644--- a/packages/html-reporter/src/tabbedPane.tsx+++ b/packages/html-reporter/src/tabbedPane.tsx@@ -37,14 +37,14 @@ export const TabbedPane: React.FunctionComponent<{<div className='hbox' style={{ flex: 'none' }}><div className='tabbed-pane-tab-strip' role='tablist'>{tabs.map(tab => (- <div className={clsx('tabbed-pane-tab-element', selectedTab === tab.id && 'selected')}+ <button className={clsx('tabbed-pane-tab-element', selectedTab === tab.id && 'selected')}onClick={() => setSelectedTab(tab.id)}id={`${idPrefix}-${tab.id}`}key={tab.id}role='tab'aria-selected={selectedTab === tab.id}><div className='tabbed-pane-tab-label'>{tab.title}</div>- </div>+ </button>))}</div></div>