playwright-core 1.56.0-alpha-2025-09-12 → 1.56.0-alpha-2025-09-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browsers.json +1 -1
- package/lib/server/bidi/bidiConnection.js +24 -2
- package/lib/server/bidi/bidiPage.js +21 -7
- package/lib/server/chromium/crPage.js +9 -0
- package/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/lib/vite/traceViewer/{uiMode.Dn3mFhUe.js → uiMode.DFpqRwGM.js} +2 -2
- package/lib/vite/traceViewer/uiMode.html +1 -1
- package/lib/vite/traceViewer/{xtermModule.Beg8tuEN.css → xtermModule.DYP7pi_n.css} +1 -1
- package/package.json +1 -1
- package/lib/vite/traceViewer/assets/xtermModule-EuEc8Siv.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./assets/xtermModule-
|
|
2
|
-
import{u as Ot,r as K,f as At,_ as Ut,g as Wt,h as zt,j as r,R as u,E as Vt,s as bt,i as ut,k as Kt,t as Ht,m as $t,l as H,n as F,M as xt,b as qt,o as lt,T as Yt,W as Qt,S as Xt,p as Jt,a as Zt,d as Gt,e as te}from"./assets/defaultSettingsView-DZUHQEf1.js";var ee={};class ct{constructor(t,e={}){this.isListing=!1,this._tests=new Map,this._rootSuite=new Q("","root"),this._options=e,this._reporter=t}reset(){this._rootSuite._entries=[],this._tests.clear()}dispatch(t){const{method:e,params:s}=t;if(e==="onConfigure"){this._onConfigure(s.config);return}if(e==="onProject"){this._onProject(s.project);return}if(e==="onBegin"){this._onBegin();return}if(e==="onTestBegin"){this._onTestBegin(s.testId,s.result);return}if(e==="onTestEnd"){this._onTestEnd(s.test,s.result);return}if(e==="onStepBegin"){this._onStepBegin(s.testId,s.resultId,s.step);return}if(e==="onAttach"){this._onAttach(s.testId,s.resultId,s.attachments);return}if(e==="onStepEnd"){this._onStepEnd(s.testId,s.resultId,s.step);return}if(e==="onError"){this._onError(s.error);return}if(e==="onStdIO"){this._onStdIO(s.type,s.testId,s.resultId,s.data,s.isBase64);return}if(e==="onEnd")return this._onEnd(s.result);if(e==="onExit")return this._onExit()}_onConfigure(t){var e,s;this._rootDir=t.rootDir,this._config=this._parseConfig(t),(s=(e=this._reporter).onConfigure)==null||s.call(e,this._config)}_onProject(t){let e=this._options.mergeProjects?this._rootSuite.suites.find(s=>s.project().name===t.name):void 0;e||(e=new Q(t.name,"project"),this._rootSuite._addSuite(e)),e._project=this._parseProject(t);for(const s of t.suites)this._mergeSuiteInto(s,e)}_onBegin(){var t,e;(e=(t=this._reporter).onBegin)==null||e.call(t,this._rootSuite)}_onTestBegin(t,e){var c,n;const s=this._tests.get(t);this._options.clearPreviousResultsWhenTestBegins&&(s.results=[]);const i=s._createTestResult(e.id);i.retry=e.retry,i.workerIndex=e.workerIndex,i.parallelIndex=e.parallelIndex,i.setStartTimeNumber(e.startTime),(n=(c=this._reporter).onTestBegin)==null||n.call(c,s,i)}_onTestEnd(t,e){var c,n,g;const s=this._tests.get(t.testId);s.timeout=t.timeout,s.expectedStatus=t.expectedStatus;const i=s.results.find(l=>l._id===e.id);i.duration=e.duration,i.status=e.status,i.errors=e.errors,i.error=(c=i.errors)==null?void 0:c[0],e.attachments&&(i.attachments=this._parseAttachments(e.attachments)),e.annotations&&(this._absoluteAnnotationLocationsInplace(e.annotations),i.annotations=e.annotations,s.annotations=e.annotations),(g=(n=this._reporter).onTestEnd)==null||g.call(n,s,i),i._stepMap=new Map}_onStepBegin(t,e,s){var _,a;const i=this._tests.get(t),c=i.results.find(h=>h._id===e),n=s.parentStepId?c._stepMap.get(s.parentStepId):void 0,g=this._absoluteLocation(s.location),l=new ie(s,n,g,c);n?n.steps.push(l):c.steps.push(l),c._stepMap.set(s.id,l),(a=(_=this._reporter).onStepBegin)==null||a.call(_,i,c,l)}_onStepEnd(t,e,s){var g,l;const i=this._tests.get(t),c=i.results.find(_=>_._id===e),n=c._stepMap.get(s.id);n._endPayload=s,n.duration=s.duration,n.error=s.error,(l=(g=this._reporter).onStepEnd)==null||l.call(g,i,c,n)}_onAttach(t,e,s){this._tests.get(t).results.find(n=>n._id===e).attachments.push(...s.map(n=>({name:n.name,contentType:n.contentType,path:n.path,body:n.base64&&globalThis.Buffer?Buffer.from(n.base64,"base64"):void 0})))}_onError(t){var e,s;(s=(e=this._reporter).onError)==null||s.call(e,t)}_onStdIO(t,e,s,i,c){var _,a,h,v;const n=c?globalThis.Buffer?Buffer.from(i,"base64"):atob(i):i,g=e?this._tests.get(e):void 0,l=g&&s?g.results.find(d=>d._id===s):void 0;t==="stdout"?(l==null||l.stdout.push(n),(a=(_=this._reporter).onStdOut)==null||a.call(_,n,g,l)):(l==null||l.stderr.push(n),(v=(h=this._reporter).onStdErr)==null||v.call(h,n,g,l))}async _onEnd(t){var e,s;await((s=(e=this._reporter).onEnd)==null?void 0:s.call(e,{status:t.status,startTime:new Date(t.startTime),duration:t.duration}))}_onExit(){var t,e;return(e=(t=this._reporter).onExit)==null?void 0:e.call(t)}_parseConfig(t){const e={...re,...t};return this._options.configOverrides&&(e.configFile=this._options.configOverrides.configFile,e.reportSlowTests=this._options.configOverrides.reportSlowTests,e.quiet=this._options.configOverrides.quiet,e.reporter=[...this._options.configOverrides.reporter]),e}_parseProject(t){return{metadata:t.metadata,name:t.name,outputDir:this._absolutePath(t.outputDir),repeatEach:t.repeatEach,retries:t.retries,testDir:this._absolutePath(t.testDir),testIgnore:ot(t.testIgnore),testMatch:ot(t.testMatch),timeout:t.timeout,grep:ot(t.grep),grepInvert:ot(t.grepInvert),dependencies:t.dependencies,teardown:t.teardown,snapshotDir:this._absolutePath(t.snapshotDir),use:t.use}}_parseAttachments(t){return t.map(e=>({...e,body:e.base64&&globalThis.Buffer?Buffer.from(e.base64,"base64"):void 0}))}_mergeSuiteInto(t,e){let s=e.suites.find(i=>i.title===t.title);s||(s=new Q(t.title,e.type==="project"?"file":"describe"),e._addSuite(s)),s.location=this._absoluteLocation(t.location),t.entries.forEach(i=>{"testId"in i?this._mergeTestInto(i,s):this._mergeSuiteInto(i,s)})}_mergeTestInto(t,e){let s=this._options.mergeTestCases?e.tests.find(i=>i.title===t.title&&i.repeatEachIndex===t.repeatEachIndex):void 0;s||(s=new se(t.testId,t.title,this._absoluteLocation(t.location),t.repeatEachIndex),e._addTest(s),this._tests.set(s.id,s)),this._updateTest(t,s)}_updateTest(t,e){return e.id=t.testId,e.location=this._absoluteLocation(t.location),e.retries=t.retries,e.tags=t.tags??[],e.annotations=t.annotations??[],this._absoluteAnnotationLocationsInplace(e.annotations),e}_absoluteAnnotationLocationsInplace(t){for(const e of t)e.location&&(e.location=this._absoluteLocation(e.location))}_absoluteLocation(t){return t&&{...t,file:this._absolutePath(t.file)}}_absolutePath(t){if(t!==void 0)return this._options.resolvePath?this._options.resolvePath(this._rootDir,t):this._rootDir+"/"+t}}class Q{constructor(t,e){this._entries=[],this._requireFile="",this._parallelMode="none",this.title=t,this._type=e}get type(){return this._type}get suites(){return this._entries.filter(t=>t.type!=="test")}get tests(){return this._entries.filter(t=>t.type==="test")}entries(){return this._entries}allTests(){const t=[],e=s=>{for(const i of s.entries())i.type==="test"?t.push(i):e(i)};return e(this),t}titlePath(){const t=this.parent?this.parent.titlePath():[];return(this.title||this._type!=="describe")&&t.push(this.title),t}project(){var t;return this._project??((t=this.parent)==null?void 0:t.project())}_addTest(t){t.parent=this,this._entries.push(t)}_addSuite(t){t.parent=this,this._entries.push(t)}}class se{constructor(t,e,s,i){this.fn=()=>{},this.results=[],this.type="test",this.expectedStatus="passed",this.timeout=0,this.annotations=[],this.retries=0,this.tags=[],this.repeatEachIndex=0,this.id=t,this.title=e,this.location=s,this.repeatEachIndex=i}titlePath(){const t=this.parent?this.parent.titlePath():[];return t.push(this.title),t}outcome(){return ne(this)}ok(){const t=this.outcome();return t==="expected"||t==="flaky"||t==="skipped"}_createTestResult(t){const e=new oe(this.results.length,t);return this.results.push(e),e}}class ie{constructor(t,e,s,i){this.duration=-1,this.steps=[],this._startTime=0,this.title=t.title,this.category=t.category,this.location=s,this.parent=e,this._startTime=t.startTime,this._result=i}titlePath(){var e;return[...((e=this.parent)==null?void 0:e.titlePath())||[],this.title]}get startTime(){return new Date(this._startTime)}set startTime(t){this._startTime=+t}get attachments(){var t,e;return((e=(t=this._endPayload)==null?void 0:t.attachments)==null?void 0:e.map(s=>this._result.attachments[s]))??[]}get annotations(){var t;return((t=this._endPayload)==null?void 0:t.annotations)??[]}}class oe{constructor(t,e){this.parallelIndex=-1,this.workerIndex=-1,this.duration=-1,this.stdout=[],this.stderr=[],this.attachments=[],this.annotations=[],this.status="skipped",this.steps=[],this.errors=[],this._stepMap=new Map,this._startTime=0,this.retry=t,this._id=e}setStartTimeNumber(t){this._startTime=t}get startTime(){return new Date(this._startTime)}set startTime(t){this._startTime=+t}}const re={forbidOnly:!1,fullyParallel:!1,globalSetup:null,globalTeardown:null,globalTimeout:0,grep:/.*/,grepInvert:null,maxFailures:0,metadata:{},preserveOutput:"always",projects:[],reporter:[[ee.CI?"dot":"list"]],reportSlowTests:{max:5,threshold:3e5},configFile:"",rootDir:"",quiet:!1,shard:null,updateSnapshots:"missing",updateSourceMethod:"patch",version:"",workers:0,webServer:null};function ot(o){return o.map(t=>t.s!==void 0?t.s:new RegExp(t.r.source,t.r.flags))}function ne(o){let t=0,e=0,s=0;for(const i of o.results)i.status==="interrupted"||(i.status==="skipped"&&o.expectedStatus==="skipped"?++t:i.status==="skipped"||(i.status===o.expectedStatus?++e:++s));return e===0&&s===0?"skipped":s===0?"expected":e===0&&t===0?"unexpected":"flaky"}class dt{constructor(t,e,s,i,c){this._treeItemById=new Map,this._treeItemByTestId=new Map;const n=i&&[...i.values()].some(Boolean);this.pathSeparator=c,this.rootItem={kind:"group",subKind:"folder",id:t,title:"",location:{file:"",line:0,column:0},duration:0,parent:void 0,children:[],status:"none",hasLoadErrors:!1},this._treeItemById.set(t,this.rootItem);const g=(l,_,a)=>{for(const h of _.suites){if(!h.title){g(l,h,a);continue}let v=a.children.find(d=>d.kind==="group"&&d.title===h.title);v||(v={kind:"group",subKind:"describe",id:"suite:"+_.titlePath().join("")+""+h.title,title:h.title,location:h.location,duration:0,parent:a,children:[],status:"none",hasLoadErrors:!1},this._addChild(a,v)),g(l,h,v)}for(const h of _.tests){const v=h.title;let d=a.children.find(C=>C.kind!=="group"&&C.title===v);d||(d={kind:"case",id:"test:"+h.titlePath().join(""),title:v,parent:a,children:[],tests:[],location:h.location,duration:0,status:"none",project:void 0,test:void 0,tags:h.tags},this._addChild(a,d));const b=h.results[0];let x="none";(b==null?void 0:b[X])==="scheduled"?x="scheduled":(b==null?void 0:b[X])==="running"?x="running":(b==null?void 0:b.status)==="skipped"?x="skipped":(b==null?void 0:b.status)==="interrupted"?x="none":b&&h.outcome()!=="expected"?x="failed":b&&h.outcome()==="expected"&&(x="passed"),d.tests.push(h);const B={kind:"test",id:h.id,title:l.name,location:h.location,test:h,parent:d,children:[],status:x,duration:h.results.length?Math.max(0,h.results[0].duration):0,project:l};this._addChild(d,B),this._treeItemByTestId.set(h.id,B),d.duration=d.children.reduce((C,T)=>C+T.duration,0)}};for(const l of(e==null?void 0:e.suites)||[])if(!(n&&!i.get(l.title)))for(const _ of l.suites){const a=this._fileItem(_.location.file.split(c),!0);g(l.project(),_,a)}for(const l of s){if(!l.location)continue;const _=this._fileItem(l.location.file.split(c),!0);_.hasLoadErrors=!0}}_addChild(t,e){t.children.push(e),e.parent=t,this._treeItemById.set(e.id,e)}filterTree(t,e,s){const i=t.trim().toLowerCase().split(" "),c=[...e.values()].some(Boolean),n=l=>{const _=[...l.tests[0].titlePath(),...l.tests[0].tags].join(" ").toLowerCase();return!i.every(a=>_.includes(a))&&!l.tests.some(a=>s==null?void 0:s.has(a.id))?!1:(l.children=l.children.filter(a=>!c||(s==null?void 0:s.has(a.test.id))||e.get(a.status)),l.tests=l.children.map(a=>a.test),!!l.children.length)},g=l=>{const _=[];for(const a of l.children)a.kind==="case"?n(a)&&_.push(a):(g(a),(a.children.length||a.hasLoadErrors)&&_.push(a));l.children=_};g(this.rootItem)}_fileItem(t,e){if(t.length===0)return this.rootItem;const s=t.join(this.pathSeparator),i=this._treeItemById.get(s);if(i)return i;const c=this._fileItem(t.slice(0,t.length-1),!1),n={kind:"group",subKind:e?"file":"folder",id:s,title:t[t.length-1],location:{file:s,line:0,column:0},duration:0,parent:c,children:[],status:"none",hasLoadErrors:!1};return this._addChild(c,n),n}sortAndPropagateStatus(){St(this.rootItem)}flattenForSingleProject(){const t=e=>{e.kind==="case"&&e.children.length===1?(e.project=e.children[0].project,e.test=e.children[0].test,e.children=[],this._treeItemByTestId.set(e.test.id,e)):e.children.forEach(t)};t(this.rootItem)}shortenRoot(){let t=this.rootItem;for(;t.children.length===1&&t.children[0].kind==="group"&&t.children[0].subKind==="folder";)t=t.children[0];t.location=this.rootItem.location,this.rootItem=t}testIds(){const t=new Set,e=s=>{s.kind==="case"&&s.tests.forEach(i=>t.add(i.id)),s.children.forEach(e)};return e(this.rootItem),t}fileNames(){const t=new Set,e=s=>{s.kind==="group"&&s.subKind==="file"?t.add(s.id):s.children.forEach(e)};return e(this.rootItem),[...t]}flatTreeItems(){const t=[],e=s=>{t.push(s),s.children.forEach(e)};return e(this.rootItem),t}treeItemById(t){return this._treeItemById.get(t)}collectTestIds(t){return t?ae(t):new Set}}function St(o){for(const n of o.children)St(n);o.kind==="group"&&o.children.sort((n,g)=>n.location.file.localeCompare(g.location.file)||n.location.line-g.location.line);let t=o.children.length>0,e=o.children.length>0,s=!1,i=!1,c=!1;for(const n of o.children)e=e&&n.status==="skipped",t=t&&(n.status==="passed"||n.status==="skipped"),s=s||n.status==="failed",i=i||n.status==="running",c=c||n.status==="scheduled";i?o.status="running":c?o.status="scheduled":s?o.status="failed":e?o.status="skipped":t&&(o.status="passed")}function ae(o){const t=new Set,e=s=>{var i;s.kind==="case"?s.tests.map(c=>c.id).forEach(c=>t.add(c)):s.kind==="test"?t.add(s.id):(i=s.children)==null||i.forEach(e)};return e(o),t}const X=Symbol("statusEx");class le{constructor(t){this.loadErrors=[],this.progress={total:0,passed:0,failed:0,skipped:0},this._lastRunTestCount=0,this._receiver=new ct(this._createReporter(),{mergeProjects:!0,mergeTestCases:!0,resolvePath:(e,s)=>e+t.pathSeparator+s,clearPreviousResultsWhenTestBegins:!0}),this._options=t}_createReporter(){return{version:()=>"v2",onConfigure:t=>{this.config=t,this._lastRunReceiver=new ct({version:()=>"v2",onBegin:e=>{this._lastRunTestCount=e.allTests().length,this._lastRunReceiver=void 0}},{mergeProjects:!0,mergeTestCases:!1,resolvePath:(e,s)=>e+this._options.pathSeparator+s})},onBegin:t=>{var e;if(this.rootSuite||(this.rootSuite=t),this._testResultsSnapshot){for(const s of this.rootSuite.allTests())s.results=((e=this._testResultsSnapshot)==null?void 0:e.get(s.id))||s.results;this._testResultsSnapshot=void 0}this.progress.total=this._lastRunTestCount,this.progress.passed=0,this.progress.failed=0,this.progress.skipped=0,this._options.onUpdate(!0)},onEnd:()=>{this._options.onUpdate(!0)},onTestBegin:(t,e)=>{e[X]="running",this._options.onUpdate()},onTestEnd:(t,e)=>{t.outcome()==="skipped"?++this.progress.skipped:t.outcome()==="unexpected"?++this.progress.failed:++this.progress.passed,e[X]=e.status,this._options.onUpdate()},onError:t=>this._handleOnError(t),printsToStdio:()=>!1}}processGlobalReport(t){const e=new ct({version:()=>"v2",onConfigure:s=>{this.config=s},onError:s=>this._handleOnError(s)});for(const s of t)e.dispatch(s)}processListReport(t){var s;const e=((s=this.rootSuite)==null?void 0:s.allTests())||[];this._testResultsSnapshot=new Map(e.map(i=>[i.id,i.results])),this._receiver.reset();for(const i of t)this._receiver.dispatch(i)}processTestReportEvent(t){var e,s,i;(s=(e=this._lastRunReceiver)==null?void 0:e.dispatch(t))==null||s.catch(()=>{}),(i=this._receiver.dispatch(t))==null||i.catch(()=>{})}_handleOnError(t){var e,s;this.loadErrors.push(t),(s=(e=this._options).onError)==null||s.call(e,t),this._options.onUpdate()}asModel(){return{rootSuite:this.rootSuite||new Q("","root"),config:this.config,loadErrors:this.loadErrors,progress:this.progress}}}const ce=({source:o})=>{const[t,e]=Ot(),[s,i]=K.useState(At()),[c]=K.useState(Ut(()=>import("./assets/xtermModule-EuEc8Siv.js"),__vite__mapDeps([0,1]),import.meta.url).then(g=>g.default)),n=K.useRef(null);return K.useEffect(()=>(Wt(i),()=>zt(i)),[]),K.useEffect(()=>{const g=o.write,l=o.clear;return(async()=>{const{Terminal:_,FitAddon:a}=await c,h=e.current;if(!h)return;const v=s==="dark-mode"?ue:de;if(n.current&&n.current.terminal.options.theme===v)return;n.current&&(h.textContent="");const d=new _({convertEol:!0,fontSize:13,scrollback:1e4,fontFamily:"var(--vscode-editor-font-family)",theme:v}),b=new a;d.loadAddon(b);for(const x of o.pending)d.write(x);o.write=(x=>{o.pending.push(x),d.write(x)}),o.clear=()=>{o.pending=[],d.clear()},d.open(h),b.fit(),n.current={terminal:d,fitAddon:b}})(),()=>{o.clear=l,o.write=g}},[c,n,e,o,s]),K.useEffect(()=>{setTimeout(()=>{n.current&&(n.current.fitAddon.fit(),o.resize(n.current.terminal.cols,n.current.terminal.rows))},250)},[t,o]),r.jsx("div",{"data-testid":"output",className:"xterm-wrapper",style:{flex:"auto"},ref:e})},de={foreground:"#383a42",background:"#fafafa",cursor:"#383a42",black:"#000000",red:"#e45649",green:"#50a14f",yellow:"#c18401",blue:"#4078f2",magenta:"#a626a4",cyan:"#0184bc",white:"#a0a0a0",brightBlack:"#000000",brightRed:"#e06c75",brightGreen:"#98c379",brightYellow:"#d19a66",brightBlue:"#4078f2",brightMagenta:"#a626a4",brightCyan:"#0184bc",brightWhite:"#383a42",selectionBackground:"#d7d7d7",selectionForeground:"#383a42"},ue={foreground:"#f8f8f2",background:"#1e1e1e",cursor:"#f8f8f0",black:"#000000",red:"#ff5555",green:"#50fa7b",yellow:"#f1fa8c",blue:"#bd93f9",magenta:"#ff79c6",cyan:"#8be9fd",white:"#bfbfbf",brightBlack:"#4d4d4d",brightRed:"#ff6e6e",brightGreen:"#69ff94",brightYellow:"#ffffa5",brightBlue:"#d6acff",brightMagenta:"#ff92df",brightCyan:"#a4ffff",brightWhite:"#e6e6e6",selectionBackground:"#44475a",selectionForeground:"#f8f8f2"},he=({filterText:o,setFilterText:t,statusFilters:e,setStatusFilters:s,projectFilters:i,setProjectFilters:c,testModel:n,runTests:g})=>{const[l,_]=u.useState(!1),a=u.useRef(null);u.useEffect(()=>{var d;(d=a.current)==null||d.focus()},[]);const h=[...e.entries()].filter(([d,b])=>b).map(([d])=>d).join(" ")||"all",v=[...i.entries()].filter(([d,b])=>b).map(([d])=>d).join(" ")||"all";return r.jsxs("div",{className:"filters",children:[r.jsx(Vt,{expanded:l,setExpanded:_,title:r.jsx("input",{ref:a,type:"search",placeholder:"Filter (e.g. text, @tag)",spellCheck:!1,value:o,onChange:d=>{t(d.target.value)},onKeyDown:d=>{d.key==="Enter"&&g()}})}),r.jsxs("div",{className:"filter-summary",title:"Status: "+h+`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./assets/xtermModule-CsJ4vdCR.js","./xtermModule.DYP7pi_n.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as Ot,r as K,f as At,_ as Ut,g as Wt,h as zt,j as r,R as u,E as Vt,s as bt,i as ut,k as Kt,t as Ht,m as $t,l as H,n as F,M as xt,b as qt,o as lt,T as Yt,W as Qt,S as Xt,p as Jt,a as Zt,d as Gt,e as te}from"./assets/defaultSettingsView-DZUHQEf1.js";var ee={};class ct{constructor(t,e={}){this.isListing=!1,this._tests=new Map,this._rootSuite=new Q("","root"),this._options=e,this._reporter=t}reset(){this._rootSuite._entries=[],this._tests.clear()}dispatch(t){const{method:e,params:s}=t;if(e==="onConfigure"){this._onConfigure(s.config);return}if(e==="onProject"){this._onProject(s.project);return}if(e==="onBegin"){this._onBegin();return}if(e==="onTestBegin"){this._onTestBegin(s.testId,s.result);return}if(e==="onTestEnd"){this._onTestEnd(s.test,s.result);return}if(e==="onStepBegin"){this._onStepBegin(s.testId,s.resultId,s.step);return}if(e==="onAttach"){this._onAttach(s.testId,s.resultId,s.attachments);return}if(e==="onStepEnd"){this._onStepEnd(s.testId,s.resultId,s.step);return}if(e==="onError"){this._onError(s.error);return}if(e==="onStdIO"){this._onStdIO(s.type,s.testId,s.resultId,s.data,s.isBase64);return}if(e==="onEnd")return this._onEnd(s.result);if(e==="onExit")return this._onExit()}_onConfigure(t){var e,s;this._rootDir=t.rootDir,this._config=this._parseConfig(t),(s=(e=this._reporter).onConfigure)==null||s.call(e,this._config)}_onProject(t){let e=this._options.mergeProjects?this._rootSuite.suites.find(s=>s.project().name===t.name):void 0;e||(e=new Q(t.name,"project"),this._rootSuite._addSuite(e)),e._project=this._parseProject(t);for(const s of t.suites)this._mergeSuiteInto(s,e)}_onBegin(){var t,e;(e=(t=this._reporter).onBegin)==null||e.call(t,this._rootSuite)}_onTestBegin(t,e){var c,n;const s=this._tests.get(t);this._options.clearPreviousResultsWhenTestBegins&&(s.results=[]);const i=s._createTestResult(e.id);i.retry=e.retry,i.workerIndex=e.workerIndex,i.parallelIndex=e.parallelIndex,i.setStartTimeNumber(e.startTime),(n=(c=this._reporter).onTestBegin)==null||n.call(c,s,i)}_onTestEnd(t,e){var c,n,g;const s=this._tests.get(t.testId);s.timeout=t.timeout,s.expectedStatus=t.expectedStatus;const i=s.results.find(l=>l._id===e.id);i.duration=e.duration,i.status=e.status,i.errors=e.errors,i.error=(c=i.errors)==null?void 0:c[0],e.attachments&&(i.attachments=this._parseAttachments(e.attachments)),e.annotations&&(this._absoluteAnnotationLocationsInplace(e.annotations),i.annotations=e.annotations,s.annotations=e.annotations),(g=(n=this._reporter).onTestEnd)==null||g.call(n,s,i),i._stepMap=new Map}_onStepBegin(t,e,s){var _,a;const i=this._tests.get(t),c=i.results.find(h=>h._id===e),n=s.parentStepId?c._stepMap.get(s.parentStepId):void 0,g=this._absoluteLocation(s.location),l=new ie(s,n,g,c);n?n.steps.push(l):c.steps.push(l),c._stepMap.set(s.id,l),(a=(_=this._reporter).onStepBegin)==null||a.call(_,i,c,l)}_onStepEnd(t,e,s){var g,l;const i=this._tests.get(t),c=i.results.find(_=>_._id===e),n=c._stepMap.get(s.id);n._endPayload=s,n.duration=s.duration,n.error=s.error,(l=(g=this._reporter).onStepEnd)==null||l.call(g,i,c,n)}_onAttach(t,e,s){this._tests.get(t).results.find(n=>n._id===e).attachments.push(...s.map(n=>({name:n.name,contentType:n.contentType,path:n.path,body:n.base64&&globalThis.Buffer?Buffer.from(n.base64,"base64"):void 0})))}_onError(t){var e,s;(s=(e=this._reporter).onError)==null||s.call(e,t)}_onStdIO(t,e,s,i,c){var _,a,h,v;const n=c?globalThis.Buffer?Buffer.from(i,"base64"):atob(i):i,g=e?this._tests.get(e):void 0,l=g&&s?g.results.find(d=>d._id===s):void 0;t==="stdout"?(l==null||l.stdout.push(n),(a=(_=this._reporter).onStdOut)==null||a.call(_,n,g,l)):(l==null||l.stderr.push(n),(v=(h=this._reporter).onStdErr)==null||v.call(h,n,g,l))}async _onEnd(t){var e,s;await((s=(e=this._reporter).onEnd)==null?void 0:s.call(e,{status:t.status,startTime:new Date(t.startTime),duration:t.duration}))}_onExit(){var t,e;return(e=(t=this._reporter).onExit)==null?void 0:e.call(t)}_parseConfig(t){const e={...re,...t};return this._options.configOverrides&&(e.configFile=this._options.configOverrides.configFile,e.reportSlowTests=this._options.configOverrides.reportSlowTests,e.quiet=this._options.configOverrides.quiet,e.reporter=[...this._options.configOverrides.reporter]),e}_parseProject(t){return{metadata:t.metadata,name:t.name,outputDir:this._absolutePath(t.outputDir),repeatEach:t.repeatEach,retries:t.retries,testDir:this._absolutePath(t.testDir),testIgnore:ot(t.testIgnore),testMatch:ot(t.testMatch),timeout:t.timeout,grep:ot(t.grep),grepInvert:ot(t.grepInvert),dependencies:t.dependencies,teardown:t.teardown,snapshotDir:this._absolutePath(t.snapshotDir),use:t.use}}_parseAttachments(t){return t.map(e=>({...e,body:e.base64&&globalThis.Buffer?Buffer.from(e.base64,"base64"):void 0}))}_mergeSuiteInto(t,e){let s=e.suites.find(i=>i.title===t.title);s||(s=new Q(t.title,e.type==="project"?"file":"describe"),e._addSuite(s)),s.location=this._absoluteLocation(t.location),t.entries.forEach(i=>{"testId"in i?this._mergeTestInto(i,s):this._mergeSuiteInto(i,s)})}_mergeTestInto(t,e){let s=this._options.mergeTestCases?e.tests.find(i=>i.title===t.title&&i.repeatEachIndex===t.repeatEachIndex):void 0;s||(s=new se(t.testId,t.title,this._absoluteLocation(t.location),t.repeatEachIndex),e._addTest(s),this._tests.set(s.id,s)),this._updateTest(t,s)}_updateTest(t,e){return e.id=t.testId,e.location=this._absoluteLocation(t.location),e.retries=t.retries,e.tags=t.tags??[],e.annotations=t.annotations??[],this._absoluteAnnotationLocationsInplace(e.annotations),e}_absoluteAnnotationLocationsInplace(t){for(const e of t)e.location&&(e.location=this._absoluteLocation(e.location))}_absoluteLocation(t){return t&&{...t,file:this._absolutePath(t.file)}}_absolutePath(t){if(t!==void 0)return this._options.resolvePath?this._options.resolvePath(this._rootDir,t):this._rootDir+"/"+t}}class Q{constructor(t,e){this._entries=[],this._requireFile="",this._parallelMode="none",this.title=t,this._type=e}get type(){return this._type}get suites(){return this._entries.filter(t=>t.type!=="test")}get tests(){return this._entries.filter(t=>t.type==="test")}entries(){return this._entries}allTests(){const t=[],e=s=>{for(const i of s.entries())i.type==="test"?t.push(i):e(i)};return e(this),t}titlePath(){const t=this.parent?this.parent.titlePath():[];return(this.title||this._type!=="describe")&&t.push(this.title),t}project(){var t;return this._project??((t=this.parent)==null?void 0:t.project())}_addTest(t){t.parent=this,this._entries.push(t)}_addSuite(t){t.parent=this,this._entries.push(t)}}class se{constructor(t,e,s,i){this.fn=()=>{},this.results=[],this.type="test",this.expectedStatus="passed",this.timeout=0,this.annotations=[],this.retries=0,this.tags=[],this.repeatEachIndex=0,this.id=t,this.title=e,this.location=s,this.repeatEachIndex=i}titlePath(){const t=this.parent?this.parent.titlePath():[];return t.push(this.title),t}outcome(){return ne(this)}ok(){const t=this.outcome();return t==="expected"||t==="flaky"||t==="skipped"}_createTestResult(t){const e=new oe(this.results.length,t);return this.results.push(e),e}}class ie{constructor(t,e,s,i){this.duration=-1,this.steps=[],this._startTime=0,this.title=t.title,this.category=t.category,this.location=s,this.parent=e,this._startTime=t.startTime,this._result=i}titlePath(){var e;return[...((e=this.parent)==null?void 0:e.titlePath())||[],this.title]}get startTime(){return new Date(this._startTime)}set startTime(t){this._startTime=+t}get attachments(){var t,e;return((e=(t=this._endPayload)==null?void 0:t.attachments)==null?void 0:e.map(s=>this._result.attachments[s]))??[]}get annotations(){var t;return((t=this._endPayload)==null?void 0:t.annotations)??[]}}class oe{constructor(t,e){this.parallelIndex=-1,this.workerIndex=-1,this.duration=-1,this.stdout=[],this.stderr=[],this.attachments=[],this.annotations=[],this.status="skipped",this.steps=[],this.errors=[],this._stepMap=new Map,this._startTime=0,this.retry=t,this._id=e}setStartTimeNumber(t){this._startTime=t}get startTime(){return new Date(this._startTime)}set startTime(t){this._startTime=+t}}const re={forbidOnly:!1,fullyParallel:!1,globalSetup:null,globalTeardown:null,globalTimeout:0,grep:/.*/,grepInvert:null,maxFailures:0,metadata:{},preserveOutput:"always",projects:[],reporter:[[ee.CI?"dot":"list"]],reportSlowTests:{max:5,threshold:3e5},configFile:"",rootDir:"",quiet:!1,shard:null,updateSnapshots:"missing",updateSourceMethod:"patch",version:"",workers:0,webServer:null};function ot(o){return o.map(t=>t.s!==void 0?t.s:new RegExp(t.r.source,t.r.flags))}function ne(o){let t=0,e=0,s=0;for(const i of o.results)i.status==="interrupted"||(i.status==="skipped"&&o.expectedStatus==="skipped"?++t:i.status==="skipped"||(i.status===o.expectedStatus?++e:++s));return e===0&&s===0?"skipped":s===0?"expected":e===0&&t===0?"unexpected":"flaky"}class dt{constructor(t,e,s,i,c){this._treeItemById=new Map,this._treeItemByTestId=new Map;const n=i&&[...i.values()].some(Boolean);this.pathSeparator=c,this.rootItem={kind:"group",subKind:"folder",id:t,title:"",location:{file:"",line:0,column:0},duration:0,parent:void 0,children:[],status:"none",hasLoadErrors:!1},this._treeItemById.set(t,this.rootItem);const g=(l,_,a)=>{for(const h of _.suites){if(!h.title){g(l,h,a);continue}let v=a.children.find(d=>d.kind==="group"&&d.title===h.title);v||(v={kind:"group",subKind:"describe",id:"suite:"+_.titlePath().join("")+""+h.title,title:h.title,location:h.location,duration:0,parent:a,children:[],status:"none",hasLoadErrors:!1},this._addChild(a,v)),g(l,h,v)}for(const h of _.tests){const v=h.title;let d=a.children.find(C=>C.kind!=="group"&&C.title===v);d||(d={kind:"case",id:"test:"+h.titlePath().join(""),title:v,parent:a,children:[],tests:[],location:h.location,duration:0,status:"none",project:void 0,test:void 0,tags:h.tags},this._addChild(a,d));const b=h.results[0];let x="none";(b==null?void 0:b[X])==="scheduled"?x="scheduled":(b==null?void 0:b[X])==="running"?x="running":(b==null?void 0:b.status)==="skipped"?x="skipped":(b==null?void 0:b.status)==="interrupted"?x="none":b&&h.outcome()!=="expected"?x="failed":b&&h.outcome()==="expected"&&(x="passed"),d.tests.push(h);const B={kind:"test",id:h.id,title:l.name,location:h.location,test:h,parent:d,children:[],status:x,duration:h.results.length?Math.max(0,h.results[0].duration):0,project:l};this._addChild(d,B),this._treeItemByTestId.set(h.id,B),d.duration=d.children.reduce((C,T)=>C+T.duration,0)}};for(const l of(e==null?void 0:e.suites)||[])if(!(n&&!i.get(l.title)))for(const _ of l.suites){const a=this._fileItem(_.location.file.split(c),!0);g(l.project(),_,a)}for(const l of s){if(!l.location)continue;const _=this._fileItem(l.location.file.split(c),!0);_.hasLoadErrors=!0}}_addChild(t,e){t.children.push(e),e.parent=t,this._treeItemById.set(e.id,e)}filterTree(t,e,s){const i=t.trim().toLowerCase().split(" "),c=[...e.values()].some(Boolean),n=l=>{const _=[...l.tests[0].titlePath(),...l.tests[0].tags].join(" ").toLowerCase();return!i.every(a=>_.includes(a))&&!l.tests.some(a=>s==null?void 0:s.has(a.id))?!1:(l.children=l.children.filter(a=>!c||(s==null?void 0:s.has(a.test.id))||e.get(a.status)),l.tests=l.children.map(a=>a.test),!!l.children.length)},g=l=>{const _=[];for(const a of l.children)a.kind==="case"?n(a)&&_.push(a):(g(a),(a.children.length||a.hasLoadErrors)&&_.push(a));l.children=_};g(this.rootItem)}_fileItem(t,e){if(t.length===0)return this.rootItem;const s=t.join(this.pathSeparator),i=this._treeItemById.get(s);if(i)return i;const c=this._fileItem(t.slice(0,t.length-1),!1),n={kind:"group",subKind:e?"file":"folder",id:s,title:t[t.length-1],location:{file:s,line:0,column:0},duration:0,parent:c,children:[],status:"none",hasLoadErrors:!1};return this._addChild(c,n),n}sortAndPropagateStatus(){St(this.rootItem)}flattenForSingleProject(){const t=e=>{e.kind==="case"&&e.children.length===1?(e.project=e.children[0].project,e.test=e.children[0].test,e.children=[],this._treeItemByTestId.set(e.test.id,e)):e.children.forEach(t)};t(this.rootItem)}shortenRoot(){let t=this.rootItem;for(;t.children.length===1&&t.children[0].kind==="group"&&t.children[0].subKind==="folder";)t=t.children[0];t.location=this.rootItem.location,this.rootItem=t}testIds(){const t=new Set,e=s=>{s.kind==="case"&&s.tests.forEach(i=>t.add(i.id)),s.children.forEach(e)};return e(this.rootItem),t}fileNames(){const t=new Set,e=s=>{s.kind==="group"&&s.subKind==="file"?t.add(s.id):s.children.forEach(e)};return e(this.rootItem),[...t]}flatTreeItems(){const t=[],e=s=>{t.push(s),s.children.forEach(e)};return e(this.rootItem),t}treeItemById(t){return this._treeItemById.get(t)}collectTestIds(t){return t?ae(t):new Set}}function St(o){for(const n of o.children)St(n);o.kind==="group"&&o.children.sort((n,g)=>n.location.file.localeCompare(g.location.file)||n.location.line-g.location.line);let t=o.children.length>0,e=o.children.length>0,s=!1,i=!1,c=!1;for(const n of o.children)e=e&&n.status==="skipped",t=t&&(n.status==="passed"||n.status==="skipped"),s=s||n.status==="failed",i=i||n.status==="running",c=c||n.status==="scheduled";i?o.status="running":c?o.status="scheduled":s?o.status="failed":e?o.status="skipped":t&&(o.status="passed")}function ae(o){const t=new Set,e=s=>{var i;s.kind==="case"?s.tests.map(c=>c.id).forEach(c=>t.add(c)):s.kind==="test"?t.add(s.id):(i=s.children)==null||i.forEach(e)};return e(o),t}const X=Symbol("statusEx");class le{constructor(t){this.loadErrors=[],this.progress={total:0,passed:0,failed:0,skipped:0},this._lastRunTestCount=0,this._receiver=new ct(this._createReporter(),{mergeProjects:!0,mergeTestCases:!0,resolvePath:(e,s)=>e+t.pathSeparator+s,clearPreviousResultsWhenTestBegins:!0}),this._options=t}_createReporter(){return{version:()=>"v2",onConfigure:t=>{this.config=t,this._lastRunReceiver=new ct({version:()=>"v2",onBegin:e=>{this._lastRunTestCount=e.allTests().length,this._lastRunReceiver=void 0}},{mergeProjects:!0,mergeTestCases:!1,resolvePath:(e,s)=>e+this._options.pathSeparator+s})},onBegin:t=>{var e;if(this.rootSuite||(this.rootSuite=t),this._testResultsSnapshot){for(const s of this.rootSuite.allTests())s.results=((e=this._testResultsSnapshot)==null?void 0:e.get(s.id))||s.results;this._testResultsSnapshot=void 0}this.progress.total=this._lastRunTestCount,this.progress.passed=0,this.progress.failed=0,this.progress.skipped=0,this._options.onUpdate(!0)},onEnd:()=>{this._options.onUpdate(!0)},onTestBegin:(t,e)=>{e[X]="running",this._options.onUpdate()},onTestEnd:(t,e)=>{t.outcome()==="skipped"?++this.progress.skipped:t.outcome()==="unexpected"?++this.progress.failed:++this.progress.passed,e[X]=e.status,this._options.onUpdate()},onError:t=>this._handleOnError(t),printsToStdio:()=>!1}}processGlobalReport(t){const e=new ct({version:()=>"v2",onConfigure:s=>{this.config=s},onError:s=>this._handleOnError(s)});for(const s of t)e.dispatch(s)}processListReport(t){var s;const e=((s=this.rootSuite)==null?void 0:s.allTests())||[];this._testResultsSnapshot=new Map(e.map(i=>[i.id,i.results])),this._receiver.reset();for(const i of t)this._receiver.dispatch(i)}processTestReportEvent(t){var e,s,i;(s=(e=this._lastRunReceiver)==null?void 0:e.dispatch(t))==null||s.catch(()=>{}),(i=this._receiver.dispatch(t))==null||i.catch(()=>{})}_handleOnError(t){var e,s;this.loadErrors.push(t),(s=(e=this._options).onError)==null||s.call(e,t),this._options.onUpdate()}asModel(){return{rootSuite:this.rootSuite||new Q("","root"),config:this.config,loadErrors:this.loadErrors,progress:this.progress}}}const ce=({source:o})=>{const[t,e]=Ot(),[s,i]=K.useState(At()),[c]=K.useState(Ut(()=>import("./assets/xtermModule-CsJ4vdCR.js"),__vite__mapDeps([0,1]),import.meta.url).then(g=>g.default)),n=K.useRef(null);return K.useEffect(()=>(Wt(i),()=>zt(i)),[]),K.useEffect(()=>{const g=o.write,l=o.clear;return(async()=>{const{Terminal:_,FitAddon:a}=await c,h=e.current;if(!h)return;const v=s==="dark-mode"?ue:de;if(n.current&&n.current.terminal.options.theme===v)return;n.current&&(h.textContent="");const d=new _({convertEol:!0,fontSize:13,scrollback:1e4,fontFamily:"var(--vscode-editor-font-family)",theme:v}),b=new a;d.loadAddon(b);for(const x of o.pending)d.write(x);o.write=(x=>{o.pending.push(x),d.write(x)}),o.clear=()=>{o.pending=[],d.clear()},d.open(h),b.fit(),n.current={terminal:d,fitAddon:b}})(),()=>{o.clear=l,o.write=g}},[c,n,e,o,s]),K.useEffect(()=>{setTimeout(()=>{n.current&&(n.current.fitAddon.fit(),o.resize(n.current.terminal.cols,n.current.terminal.rows))},250)},[t,o]),r.jsx("div",{"data-testid":"output",className:"xterm-wrapper",style:{flex:"auto"},ref:e})},de={foreground:"#383a42",background:"#fafafa",cursor:"#383a42",black:"#000000",red:"#e45649",green:"#50a14f",yellow:"#c18401",blue:"#4078f2",magenta:"#a626a4",cyan:"#0184bc",white:"#a0a0a0",brightBlack:"#000000",brightRed:"#e06c75",brightGreen:"#98c379",brightYellow:"#d19a66",brightBlue:"#4078f2",brightMagenta:"#a626a4",brightCyan:"#0184bc",brightWhite:"#383a42",selectionBackground:"#d7d7d7",selectionForeground:"#383a42"},ue={foreground:"#f8f8f2",background:"#1e1e1e",cursor:"#f8f8f0",black:"#000000",red:"#ff5555",green:"#50fa7b",yellow:"#f1fa8c",blue:"#bd93f9",magenta:"#ff79c6",cyan:"#8be9fd",white:"#bfbfbf",brightBlack:"#4d4d4d",brightRed:"#ff6e6e",brightGreen:"#69ff94",brightYellow:"#ffffa5",brightBlue:"#d6acff",brightMagenta:"#ff92df",brightCyan:"#a4ffff",brightWhite:"#e6e6e6",selectionBackground:"#44475a",selectionForeground:"#f8f8f2"},he=({filterText:o,setFilterText:t,statusFilters:e,setStatusFilters:s,projectFilters:i,setProjectFilters:c,testModel:n,runTests:g})=>{const[l,_]=u.useState(!1),a=u.useRef(null);u.useEffect(()=>{var d;(d=a.current)==null||d.focus()},[]);const h=[...e.entries()].filter(([d,b])=>b).map(([d])=>d).join(" ")||"all",v=[...i.entries()].filter(([d,b])=>b).map(([d])=>d).join(" ")||"all";return r.jsxs("div",{className:"filters",children:[r.jsx(Vt,{expanded:l,setExpanded:_,title:r.jsx("input",{ref:a,type:"search",placeholder:"Filter (e.g. text, @tag)",spellCheck:!1,value:o,onChange:d=>{t(d.target.value)},onKeyDown:d=>{d.key==="Enter"&&g()}})}),r.jsxs("div",{className:"filter-summary",title:"Status: "+h+`
|
|
3
3
|
Projects: `+v,onClick:()=>_(!l),children:[r.jsx("span",{className:"filter-label",children:"Status:"})," ",h,r.jsx("span",{className:"filter-label",children:"Projects:"})," ",v]}),l&&r.jsxs("div",{className:"hbox",style:{marginLeft:14,maxHeight:200,overflowY:"auto"},children:[r.jsx("div",{className:"filter-list",role:"list","data-testid":"status-filters",children:[...e.entries()].map(([d,b])=>r.jsx("div",{className:"filter-entry",role:"listitem",children:r.jsxs("label",{children:[r.jsx("input",{type:"checkbox",checked:b,onChange:()=>{const x=new Map(e);x.set(d,!x.get(d)),s(x)}}),r.jsx("div",{children:d})]})},d))}),r.jsx("div",{className:"filter-list",role:"list","data-testid":"project-filters",children:[...i.entries()].map(([d,b])=>r.jsx("div",{className:"filter-entry",role:"listitem",children:r.jsxs("label",{children:[r.jsx("input",{type:"checkbox",checked:b,onChange:()=>{var C;const x=new Map(i);x.set(d,!x.get(d)),c(x);const B=(C=n==null?void 0:n.config)==null?void 0:C.configFile;B&&bt.setObject(B+":projects",[...x.entries()].filter(([T,L])=>L).map(([T])=>T))}}),r.jsx("div",{children:d||"untitled"})]})},d))})]})]})},fe=({tag:o,style:t,onClick:e})=>r.jsx("span",{className:ut("tag",`tag-color-${pe(o)}`),onClick:e,style:{margin:"6px 0 0 6px",...t},title:`Click to filter by tag: ${o}`,children:o});function pe(o){let t=0;for(let e=0;e<o.length;e++)t=o.charCodeAt(e)+((t<<8)-t);return Math.abs(t%6)}const ge=Kt,me=({filterText:o,testModel:t,testServerConnection:e,testTree:s,runTests:i,runningState:c,watchAll:n,watchedTreeIds:g,setWatchedTreeIds:l,isLoading:_,onItemSelected:a,requestedCollapseAllCount:h,requestedExpandAllCount:v,setFilterText:d,onRevealSource:b})=>{const[x,B]=u.useState({expandedItems:new Map}),[C,T]=u.useState(),[L,O]=u.useState(h),[$,P]=u.useState(v);u.useEffect(()=>{if(L!==h){x.expandedItems.clear();for(const S of s.flatTreeItems())x.expandedItems.set(S.id,!1);O(h),T(void 0),B({...x});return}if($!==v){x.expandedItems.clear();for(const S of s.flatTreeItems())x.expandedItems.set(S.id,!0);P(v),T(void 0),B({...x});return}if(!c||c.itemSelectedByUser)return;let f;const y=S=>{var M;S.children.forEach(y),!f&&S.status==="failed"&&(S.kind==="test"&&c.testIds.has(S.test.id)||S.kind==="case"&&c.testIds.has((M=S.tests[0])==null?void 0:M.id))&&(f=S)};y(s.rootItem),f&&T(f.id)},[c,T,s,L,O,h,$,P,v,x,B]);const R=u.useMemo(()=>{if(C)return s.treeItemById(C)},[C,s]);u.useEffect(()=>{if(!t)return;const f=_e(R,t);let y;(R==null?void 0:R.kind)==="test"?y=R.test:(R==null?void 0:R.kind)==="case"&&R.tests.length===1&&(y=R.tests[0]),a({treeItem:R,testCase:y,testFile:f})},[t,R,a]),u.useEffect(()=>{if(!_)if(n)e==null||e.watchNoReply({fileNames:s.fileNames()});else{const f=new Set;for(const y of g.value){const S=s.treeItemById(y),M=S==null?void 0:S.location.file;M&&f.add(M)}e==null||e.watchNoReply({fileNames:[...f]})}},[_,s,n,g,e]);const J=f=>{T(f.id),i("bounce-if-busy",s.collectTestIds(f))},q=(f,y)=>{if(f.preventDefault(),f.stopPropagation(),f.metaKey||f.ctrlKey){const S=o.split(" ");S.includes(y)?d(S.filter(M=>M!==y).join(" ").trim()):d((o+" "+y).trim())}else d((o.split(" ").filter(S=>!S.startsWith("@")).join(" ")+" "+y).trim())};return r.jsx(ge,{name:"tests",treeState:x,setTreeState:B,rootItem:s.rootItem,dataTestId:"test-tree",render:f=>{const y=f.id.replace(/[^\w\d-_]/g,"-"),S=y+"-label",M=y+"-time";return r.jsxs("div",{className:"hbox ui-mode-tree-item","aria-labelledby":`${S} ${M}`,children:[r.jsxs("div",{id:S,className:"ui-mode-tree-item-title",children:[r.jsx("span",{children:f.title}),f.kind==="case"?f.tags.map(Y=>r.jsx(fe,{tag:Y.slice(1),onClick:Z=>q(Z,Y)},Y)):null]}),!!f.duration&&f.status!=="skipped"&&r.jsx("div",{id:M,className:"ui-mode-tree-item-time",children:$t(f.duration)}),r.jsxs(H,{noMinHeight:!0,noShadow:!0,children:[r.jsx(F,{icon:"play",title:"Run",onClick:()=>J(f),disabled:!!c&&!c.completed}),r.jsx(F,{icon:"go-to-file",title:"Show source",onClick:b,style:f.kind==="group"&&f.subKind==="folder"?{visibility:"hidden"}:{}}),!n&&r.jsx(F,{icon:"eye",title:"Watch",onClick:()=>{g.value.has(f.id)?g.value.delete(f.id):g.value.add(f.id),l({...g})},toggled:g.value.has(f.id)})]})]})},icon:f=>Ht(f.status),title:f=>f.title,selectedItem:R,onAccepted:J,onSelected:f=>{c&&(c.itemSelectedByUser=!0),T(f.id)},isError:f=>f.kind==="group"?f.hasLoadErrors:!1,autoExpandDepth:o?5:1,noItemsMessage:_?"Loading…":"No tests"})};function _e(o,t){if(!(!o||!t))return{file:o.location.file,line:o.location.line,column:o.location.column,source:{errors:t.loadErrors.filter(e=>{var s;return((s=e.location)==null?void 0:s.file)===o.location.file}).map(e=>({line:e.location.line,message:e.message})),content:void 0}}}function we(o){return`.playwright-artifacts-${o}`}const ve=({item:o,rootDir:t,onOpenExternally:e,revealSource:s,pathSeparator:i})=>{var h,v;const[c,n]=u.useState(void 0),[g,l]=u.useState(0),_=u.useRef(null),{outputDir:a}=u.useMemo(()=>({outputDir:o.testCase?be(o.testCase):void 0}),[o]);return u.useEffect(()=>{var B,C;_.current&&clearTimeout(_.current);const d=(B=o.testCase)==null?void 0:B.results[0];if(!d){n(void 0);return}const b=d&&d.duration>=0&&d.attachments.find(T=>T.name==="trace");if(b&&b.path){_t(b.path).then(T=>n({model:T,isLive:!1}));return}if(!a){n(void 0);return}const x=[a,we(d.workerIndex),"traces",`${(C=o.testCase)==null?void 0:C.id}.json`].join(i);return _.current=setTimeout(async()=>{try{const T=await _t(x);n({model:T,isLive:!0})}catch{const T=new xt([]);T.errorDescriptors.push(...d.errors.flatMap(L=>L.message?[{message:L.message}]:[])),n({model:T,isLive:!1})}finally{l(g+1)}},500),()=>{_.current&&clearTimeout(_.current)}},[a,o,n,g,l,i]),r.jsx(qt,{model:c==null?void 0:c.model,showSourcesFirst:!0,rootDir:t,fallbackLocation:o.testFile,isLive:c==null?void 0:c.isLive,status:(h=o.treeItem)==null?void 0:h.status,annotations:((v=o.testCase)==null?void 0:v.annotations)??[],onOpenExternally:e,revealSource:s},"workbench")},be=o=>{var t;for(let e=o.parent;e;e=e.parent)if(e.project())return(t=e.project())==null?void 0:t.outputDir};async function _t(o){const t=new URLSearchParams;t.set("trace",o),t.set("limit","1");const s=await(await fetch(`contexts?${t.toString()}`)).json();return new xt(s)}let wt={cols:80};const z={pending:[],clear:()=>{},write:o=>z.pending.push(o),resize:()=>{}},A=new URLSearchParams(window.location.search),xe=new URL(A.get("server")??"../",window.location.href),ht=new URL(A.get("ws"),xe);ht.protocol=ht.protocol==="https:"?"wss:":"ws:";const I={args:A.getAll("arg"),grep:A.get("grep")||void 0,grepInvert:A.get("grepInvert")||void 0,projects:A.getAll("project"),workers:A.get("workers")||void 0,headed:A.has("headed"),updateSnapshots:A.get("updateSnapshots")||void 0,reporters:A.has("reporter")?A.getAll("reporter"):void 0,pathSeparator:A.get("pathSeparator")||"/"};I.updateSnapshots&&!["all","changed","none","missing"].includes(I.updateSnapshots)&&(I.updateSnapshots=void 0);const vt=navigator.platform==="MacIntel",Se=({})=>{var mt;const[o,t]=u.useState(""),[e,s]=u.useState(!1),[i,c]=u.useState(!1),[n,g]=u.useState(new Map([["passed",!1],["failed",!1],["skipped",!1]])),[l,_]=u.useState(new Map),[a,h]=u.useState(),[v,d]=u.useState(),[b,x]=u.useState({}),[B,C]=u.useState(new Set),[T,L]=u.useState(!1),[O,$]=u.useState(),P=O&&!O.completed,[R,J]=lt("watch-all",!1),[q,f]=u.useState({value:new Set}),y=u.useRef(Promise.resolve()),S=u.useRef(new Set),[M,Y]=u.useState(0),[Z,Tt]=u.useState(0),[kt,jt]=u.useState(!1),[ft,pt]=u.useState(!0),[w,yt]=u.useState(),[G,Et]=u.useState(),[tt,It]=u.useState(!1),[et,Rt]=u.useState(!1),[Bt,gt]=u.useState(!1),Ct=u.useCallback(()=>gt(!0),[gt]),[st,Nt]=lt("show-browser",!1),[rt,Pt]=lt("updateSnapshots","missing"),Lt=u.useRef(null),it=u.useCallback(()=>{yt(p=>(p==null||p.close(),new Yt(new Qt(ht))))},[]);u.useEffect(()=>{var p;(p=Lt.current)==null||p.focus(),L(!0),it()},[it]),u.useEffect(()=>{if(!w)return;const p=[w.onStdio(m=>{if(m.buffer){const k=atob(m.buffer);z.write(k)}else z.write(m.text);m.type==="stderr"&&c(!0)}),w.onClose(()=>jt(!0))];return z.resize=(m,k)=>{wt={cols:m,rows:k},w.resizeTerminalNoReply({cols:m,rows:k})},()=>{for(const m of p)m.dispose()}},[w]),u.useEffect(()=>{if(!w)return;let p;const m=new le({onUpdate:k=>{clearTimeout(p),p=void 0,k?h(m.asModel()):p||(p=setTimeout(()=>{h(m.asModel())},250))},onError:k=>{z.write((k.stack||k.value||"")+`
|
|
4
4
|
`),c(!0)},pathSeparator:I.pathSeparator});return Et(m),h(void 0),L(!0),f({value:new Set}),(async()=>{try{await w.initialize({interceptStdio:!0,watchTestDirs:!0});const{status:k,report:E}=await w.runGlobalSetup({});if(m.processGlobalReport(E),k!=="passed")return;const N=await w.listTests({projects:I.projects,locations:I.args,grep:I.grep,grepInvert:I.grepInvert});m.processListReport(N.report),w.onReport(D=>{m.processTestReportEvent(D)});const{hasBrowsers:U}=await w.checkBrowsers({});pt(U)}finally{L(!1)}})(),()=>{clearTimeout(p)}},[w]),u.useEffect(()=>{if(!a)return;const{config:p,rootSuite:m}=a,k=p.configFile?bt.getObject(p.configFile+":projects",void 0):void 0,E=new Map(l);for(const N of E.keys())m.suites.find(U=>U.title===N)||E.delete(N);for(const N of m.suites)E.has(N.title)||E.set(N.title,!!(k!=null&&k.includes(N.title)));!k&&E.size&&![...E.values()].includes(!0)&&E.set(E.entries().next().value[0],!0),(l.size!==E.size||[...l].some(([N,U])=>E.get(N)!==U))&&_(E)},[l,a]),u.useEffect(()=>{P&&(a!=null&&a.progress)?d(a.progress):a||d(void 0)},[a,P]);const{testTree:Mt}=u.useMemo(()=>{if(!a)return{testTree:new dt("",new Q("","root"),[],l,I.pathSeparator)};const p=new dt("",a.rootSuite,a.loadErrors,l,I.pathSeparator);return p.filterTree(o,n,P?O==null?void 0:O.testIds:void 0),p.sortAndPropagateStatus(),p.shortenRoot(),p.flattenForSingleProject(),C(p.testIds()),{testTree:p}},[o,a,n,l,C,O,P]),V=u.useCallback((p,m)=>{!w||!a||p==="bounce-if-busy"&&P||(S.current=new Set([...S.current,...m]),y.current=y.current.then(async()=>{var N,U,D;const k=S.current;if(S.current=new Set,!k.size)return;{for(const j of((N=a.rootSuite)==null?void 0:N.allTests())||[])if(k.has(j.id)){j.results=[];const W=j._createTestResult("pending");W[X]="scheduled"}h({...a})}const E=" ["+new Date().toLocaleTimeString()+"]";z.write("\x1B[2m—".repeat(Math.max(0,wt.cols-E.length))+E+"\x1B[22m"),d({total:0,passed:0,failed:0,skipped:0}),$({testIds:k}),await w.runTests({locations:I.args,grep:I.grep,grepInvert:I.grepInvert,testIds:[...k],projects:[...l].filter(([j,W])=>W).map(([j])=>j),updateSnapshots:rt,reporters:I.reporters,headed:st,workers:st?1:void 0,trace:"on"});for(const j of((U=a.rootSuite)==null?void 0:U.allTests())||[])((D=j.results[0])==null?void 0:D.duration)===-1&&(j.results=[]);h({...a}),$(j=>j?{...j,completed:!0}:void 0)}))},[l,P,a,w,rt,st]);u.useEffect(()=>{if(!w||!G)return;const p=w.onTestFilesChanged(async m=>{if(y.current=y.current.then(async()=>{L(!0);try{const D=await w.listTests({projects:I.projects,locations:I.args,grep:I.grep,grepInvert:I.grepInvert});G.processListReport(D.report)}catch(D){console.log(D)}finally{L(!1)}}),await y.current,m.testFiles.length===0)return;const k=G.asModel(),E=new dt("",k.rootSuite,k.loadErrors,l,I.pathSeparator),N=[],U=new Set(m.testFiles);if(R){const D=j=>{const W=j.location.file;W&&U.has(W)&&N.push(...E.collectTestIds(j)),j.kind==="group"&&j.subKind==="folder"&&j.children.forEach(D)};D(E.rootItem)}else for(const D of q.value){const j=E.treeItemById(D),W=j==null?void 0:j.location.file;W&&U.has(W)&&N.push(...E.collectTestIds(j))}V("queue-if-busy",new Set(N))});return()=>p.dispose()},[V,w,R,q,G,l]),u.useEffect(()=>{if(!w)return;const p=m=>{m.code==="Backquote"&&m.ctrlKey?(m.preventDefault(),s(!e)):m.code==="F5"&&m.shiftKey?(m.preventDefault(),w==null||w.stopTestsNoReply({})):m.code==="F5"&&(m.preventDefault(),V("bounce-if-busy",B))};return addEventListener("keydown",p),()=>{removeEventListener("keydown",p)}},[V,it,w,B,e]);const nt=u.useRef(null),Dt=u.useCallback(p=>{var m;p.preventDefault(),p.stopPropagation(),(m=nt.current)==null||m.showModal()},[]),at=u.useCallback(p=>{var m;p.preventDefault(),p.stopPropagation(),(m=nt.current)==null||m.close()},[]),Ft=u.useCallback(p=>{at(p),s(!0),w==null||w.installBrowsers({}).then(async()=>{s(!1);const{hasBrowsers:m}=await(w==null?void 0:w.checkBrowsers({}));pt(m)})},[at,w]);return r.jsxs("div",{className:"vbox ui-mode",children:[!ft&&r.jsxs("dialog",{ref:nt,children:[r.jsxs("div",{className:"title",children:[r.jsx("span",{className:"codicon codicon-lightbulb"}),"Install browsers"]}),r.jsxs("div",{className:"body",children:["Playwright did not find installed browsers.",r.jsx("br",{}),"Would you like to run `playwright install`?",r.jsx("br",{}),r.jsx("button",{className:"button",onClick:Ft,children:"Install"}),r.jsx("button",{className:"button secondary",onClick:at,children:"Dismiss"})]})]}),kt&&r.jsxs("div",{className:"disconnected",children:[r.jsx("div",{className:"title",children:"UI Mode disconnected"}),r.jsxs("div",{children:[r.jsx("a",{href:"#",onClick:()=>window.location.href="/",children:"Reload the page"})," to reconnect"]})]}),r.jsx(Xt,{sidebarSize:250,minSidebarSize:150,orientation:"horizontal",sidebarIsFirst:!0,settingName:"testListSidebar",main:r.jsxs("div",{className:"vbox",children:[r.jsxs("div",{className:ut("vbox",!e&&"hidden"),children:[r.jsxs(H,{children:[r.jsx("div",{className:"section-title",style:{flex:"none"},children:"Output"}),r.jsx(F,{icon:"circle-slash",title:"Clear output",onClick:()=>{z.clear(),c(!1)}}),r.jsx("div",{className:"spacer"}),r.jsx(F,{icon:"close",title:"Close",onClick:()=>s(!1)})]}),r.jsx(ce,{source:z})]}),r.jsx("div",{className:ut("vbox",e&&"hidden"),children:r.jsx(ve,{pathSeparator:I.pathSeparator,item:b,rootDir:(mt=a==null?void 0:a.config)==null?void 0:mt.rootDir,revealSource:Bt,onOpenExternally:p=>w==null?void 0:w.openNoReply({location:{file:p.file,line:p.line,column:p.column}})})})]}),sidebar:r.jsxs("div",{className:"vbox ui-mode-sidebar",children:[r.jsxs(H,{noShadow:!0,noMinHeight:!0,children:[r.jsx("img",{src:"playwright-logo.svg",alt:"Playwright logo"}),r.jsx("div",{className:"section-title",children:"Playwright"}),r.jsx(F,{icon:"refresh",title:"Reload",onClick:()=>it(),disabled:P||T}),r.jsxs("div",{style:{position:"relative"},children:[r.jsx(F,{icon:"terminal",title:"Toggle output — "+(vt?"⌃`":"Ctrl + `"),toggled:e,onClick:()=>{s(!e)}}),i&&r.jsx("div",{title:"Output contains error",style:{position:"absolute",top:2,right:2,width:7,height:7,borderRadius:"50%",backgroundColor:"var(--vscode-notificationsErrorIcon-foreground)"}})]}),!ft&&r.jsx(F,{icon:"lightbulb-autofix",style:{color:"var(--vscode-list-warningForeground)"},title:"Playwright browsers are missing",onClick:Dt})]}),r.jsx(he,{filterText:o,setFilterText:t,statusFilters:n,setStatusFilters:g,projectFilters:l,setProjectFilters:_,testModel:a,runTests:()=>V("bounce-if-busy",B)}),r.jsxs(H,{className:"section-toolbar",noMinHeight:!0,children:[!P&&!v&&r.jsx("div",{className:"section-title",children:"Tests"}),!P&&v&&r.jsx("div",{"data-testid":"status-line",className:"status-line",children:r.jsxs("div",{children:[v.passed,"/",v.total," passed (",v.passed/v.total*100|0,"%)"]})}),P&&v&&r.jsx("div",{"data-testid":"status-line",className:"status-line",children:r.jsxs("div",{children:["Running ",v.passed,"/",O.testIds.size," passed (",v.passed/O.testIds.size*100|0,"%)"]})}),r.jsx(F,{icon:"play",title:"Run all — F5",onClick:()=>V("bounce-if-busy",B),disabled:P||T}),r.jsx(F,{icon:"debug-stop",title:"Stop — "+(vt?"⇧F5":"Shift + F5"),onClick:()=>w==null?void 0:w.stopTests({}),disabled:!P||T}),r.jsx(F,{icon:"eye",title:"Watch all",toggled:R,onClick:()=>{f({value:new Set}),J(!R)}}),r.jsx(F,{icon:"collapse-all",title:"Collapse all",onClick:()=>{Y(M+1)}}),r.jsx(F,{icon:"expand-all",title:"Expand all",onClick:()=>{Tt(Z+1)}})]}),r.jsx(me,{filterText:o,testModel:a,testTree:Mt,testServerConnection:w,runningState:O,runTests:V,onItemSelected:x,watchAll:R,watchedTreeIds:q,setWatchedTreeIds:f,isLoading:T,requestedCollapseAllCount:M,requestedExpandAllCount:Z,setFilterText:t,onRevealSource:Ct}),r.jsxs(H,{noShadow:!0,noMinHeight:!0,className:"settings-toolbar",onClick:()=>Rt(!et),children:[r.jsx("span",{className:`codicon codicon-${et?"chevron-down":"chevron-right"}`,style:{marginLeft:5},title:et?"Hide Testing Options":"Show Testing Options"}),r.jsx("div",{className:"section-title",children:"Testing Options"})]}),et&&r.jsx(Jt,{settings:[{type:"check",value:st,set:Nt,name:"Show browser — single worker"},{type:"select",options:[{label:"All",value:"all"},{label:"Changed",value:"changed"},{label:"Missing",value:"missing"},{label:"None",value:"none"}],value:rt,set:Pt,name:"Update snapshots"}]}),r.jsxs(H,{noShadow:!0,noMinHeight:!0,className:"settings-toolbar",onClick:()=>It(!tt),children:[r.jsx("span",{className:`codicon codicon-${tt?"chevron-down":"chevron-right"}`,style:{marginLeft:5},title:tt?"Hide Settings":"Show Settings"}),r.jsx("div",{className:"section-title",children:"Settings"})]}),tt&&r.jsx(Zt,{})]})})]})};(async()=>{if(Gt(),window.location.protocol!=="file:"){if(window.location.href.includes("isUnderTest=true")&&await new Promise(o=>setTimeout(o,1e3)),!navigator.serviceWorker)throw new Error(`Service workers are not supported.
|
|
5
5
|
Make sure to serve the website (${window.location}) via HTTPS or localhost.`);navigator.serviceWorker.register("sw.bundle.js"),navigator.serviceWorker.controller||await new Promise(o=>{navigator.serviceWorker.oncontrollerchange=()=>o()}),setInterval(function(){fetch("ping")},1e4)}te.createRoot(document.querySelector("#root")).render(r.jsx(Se,{}))})();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
7
|
<link rel="icon" href="./playwright-logo.svg" type="image/svg+xml">
|
|
8
8
|
<title>Playwright Test</title>
|
|
9
|
-
<script type="module" crossorigin src="./uiMode.
|
|
9
|
+
<script type="module" crossorigin src="./uiMode.DFpqRwGM.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/defaultSettingsView-DZUHQEf1.js">
|
|
11
11
|
<link rel="stylesheet" crossorigin href="./defaultSettingsView.BKj3bZ0J.css">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="./uiMode.CmsGRTbS.css">
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
* The original design remains. The terminal itself
|
|
30
30
|
* has been extended to include xterm CSI codes, among
|
|
31
31
|
* other features.
|
|
32
|
-
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
|
|
32
|
+
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
|