@piwitests/server 0.26.0 → 0.26.1
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BdQ7kfxJ.js → 1QWBzxLM.js} +4 -4
- package/.output/public/_nuxt/{CY1UsEbI.js → 4hW9LHwA.js} +1 -1
- package/.output/public/_nuxt/96uxfdYT.js +1 -0
- package/.output/public/_nuxt/{HGYIpJtg.js → AbnDY6Zr.js} +1 -1
- package/.output/public/_nuxt/{CZ6WR7uw.js → B-1zt4pp.js} +1 -1
- package/.output/public/_nuxt/{Sx5-c-bZ.js → B1iYmAt_.js} +1 -1
- package/.output/public/_nuxt/{CbzgEkmW.js → B2bxEmbR.js} +1 -1
- package/.output/public/_nuxt/B3hAvaCe.js +4 -0
- package/.output/public/_nuxt/{CyWOerIG.js → B4lvHjBe.js} +1 -1
- package/.output/public/_nuxt/B5S7BkC3.js +1 -0
- package/.output/public/_nuxt/{Bb_1uAHn.js → B6j5Ornu.js} +1 -1
- package/.output/public/_nuxt/{CrsaY0R_.js → B82vqOZe.js} +1 -1
- package/.output/public/_nuxt/{CTFUlsXp.js → B9oXlGro.js} +1 -1
- package/.output/public/_nuxt/{CsJ9Ce4U.js → BABCH5kE.js} +1 -1
- package/.output/public/_nuxt/{Gn1Ns00e.js → BF5qB58w.js} +1 -1
- package/.output/public/_nuxt/{CsGsLxHg.js → BFLa9ZEP.js} +1 -1
- package/.output/public/_nuxt/BIlohx1E.js +1 -0
- package/.output/public/_nuxt/{B6djubIK.js → BM5C-Oec.js} +1 -1
- package/.output/public/_nuxt/{CrZhoZuI.js → BOA-I6S9.js} +1 -1
- package/.output/public/_nuxt/{Bp2zrrkV.js → BQUhoGCh.js} +1 -1
- package/.output/public/_nuxt/{DUC3QnqW.js → BQYLGX9o.js} +1 -1
- package/.output/public/_nuxt/{CUjzhXN1.js → BRMeEHXd.js} +1 -1
- package/.output/public/_nuxt/{Cf_a8ynB.js → BRtaKOKv.js} +2 -2
- package/.output/public/_nuxt/{B7uPoZ7T.js → BS91Og__.js} +1 -1
- package/.output/public/_nuxt/{DKgbchez.js → BTGAvMoT.js} +1 -1
- package/.output/public/_nuxt/{BIamiwb7.js → BaLX92Wz.js} +1 -1
- package/.output/public/_nuxt/{LWIyaZKe.js → Bc6Zr-Xn.js} +1 -1
- package/.output/public/_nuxt/{R7AVOWi_.js → BceMEnJt.js} +1 -1
- package/.output/public/_nuxt/{Q2oJNyXL.js → BeCAVtCK.js} +1 -1
- package/.output/public/_nuxt/{D_SD71Qf.js → Bf119e7x.js} +1 -1
- package/.output/public/_nuxt/BfRcdz11.js +9 -0
- package/.output/public/_nuxt/{CxwnFFD0.js → Bl0xzETD.js} +1 -1
- package/.output/public/_nuxt/{C_eXufkv.js → BnUQ3i5l.js} +1 -1
- package/.output/public/_nuxt/{rPG7kzfL.js → Bp1WeQ0_.js} +1 -1
- package/.output/public/_nuxt/{BL8cYWsR.js → Bp31ZRcA.js} +1 -1
- package/.output/public/_nuxt/{Drh1_ASq.js → BrxUH8qL.js} +1 -1
- package/.output/public/_nuxt/{D72Ce8Ff.js → BsdfEbVC.js} +1 -1
- package/.output/public/_nuxt/BtGI4ZbP.js +1 -0
- package/.output/public/_nuxt/{BV8EzO8q.js → BuMX-4RF.js} +1 -1
- package/.output/public/_nuxt/{DPPhFZOr.js → BuXJR5tn.js} +1 -1
- package/.output/public/_nuxt/{Bh2WA4IJ.js → Bx_lfKHl.js} +1 -1
- package/.output/public/_nuxt/{vcSKeWsW.js → C4UKyPQn.js} +1 -1
- package/.output/public/_nuxt/{IoE3eJ9F.js → C9XCTbtQ.js} +1 -1
- package/.output/public/_nuxt/{BilJoEne.js → CEPU6VkU.js} +1 -1
- package/.output/public/_nuxt/CHz7LJIX.js +1 -0
- package/.output/public/_nuxt/{BPhGDGAR.js → CMhd8IBr.js} +1 -1
- package/.output/public/_nuxt/{C5X_N4R7.js → CN1M6i4K.js} +33 -33
- package/.output/public/_nuxt/CQLkowA3.js +1 -0
- package/.output/public/_nuxt/{DTtizz85.js → CU_2YLhT.js} +1 -1
- package/.output/public/_nuxt/{CMVTTE_g.js → CXkXHtcx.js} +1 -1
- package/.output/public/_nuxt/{igDJCTgt.js → CZeKW-zP.js} +1 -1
- package/.output/public/_nuxt/{9oKY4Zb7.js → CapSEET7.js} +1 -1
- package/.output/public/_nuxt/{j2eGYaRa.js → CeExxGSu.js} +1 -1
- package/.output/public/_nuxt/{CEgRB8H9.js → CfwpqSe7.js} +1 -1
- package/.output/public/_nuxt/{CFKbXp6V.js → ChOtLYkd.js} +1 -1
- package/.output/public/_nuxt/ChuJzPWz.js +1 -0
- package/.output/public/_nuxt/{Bo73sAu8.js → CiCUZGFZ.js} +1 -1
- package/.output/public/_nuxt/{C6R4tyud.js → CkL_oDa8.js} +1 -1
- package/.output/public/_nuxt/{DtGJeysS.js → CkhOMiiO.js} +1 -1
- package/.output/public/_nuxt/ClmHMP65.js +2 -0
- package/.output/public/_nuxt/{BtcDY0Du.js → Cnm0d_7S.js} +1 -1
- package/.output/public/_nuxt/{CK2AMqz_.js → CtQMagSz.js} +1 -1
- package/.output/public/_nuxt/{B1KjIR-q.js → Ctnn3S3-.js} +1 -1
- package/.output/public/_nuxt/{DCeZxpxe.js → CywiLuOD.js} +4 -4
- package/.output/public/_nuxt/{oA84LLqO.js → CzRkZLB4.js} +1 -1
- package/.output/public/_nuxt/CzyCEdYP.js +1 -0
- package/.output/public/_nuxt/{D56yp7m9.js → D-F0Rhjj.js} +1 -1
- package/.output/public/_nuxt/D4mPjHHR.js +2 -0
- package/.output/public/_nuxt/{BsGvSoPC.js → D4v7lLm3.js} +1 -1
- package/.output/public/_nuxt/{CxRTKV-K.js → D6B0WKO0.js} +1 -1
- package/.output/public/_nuxt/{jv8U_Tup.js → DAg6jtav.js} +1 -1
- package/.output/public/_nuxt/DBXXb0w8.js +1 -0
- package/.output/public/_nuxt/{ChlP20A5.js → DHN2t5Vt.js} +1 -1
- package/.output/public/_nuxt/{B8tezsWe.js → DJKHXfNS.js} +1 -1
- package/.output/public/_nuxt/{CFg5qdS0.js → DMqAUHFN.js} +1 -1
- package/.output/public/_nuxt/{C9A3sPDo.js → DURme_kn.js} +1 -1
- package/.output/public/_nuxt/{C2hIM5f9.js → DVo_e_uj.js} +1 -1
- package/.output/public/_nuxt/{DKhqIou2.js → DXh8q5KY.js} +1 -1
- package/.output/public/_nuxt/{CZXeJs2k.js → DXz1Kb4-.js} +1 -1
- package/.output/public/_nuxt/{CPrVhXJk.js → DYdwHaco.js} +1 -1
- package/.output/public/_nuxt/{WZXZeGYt.js → D_ZAGxCQ.js} +1 -1
- package/.output/public/_nuxt/{D5SN7rPK.js → D_dhjJvR.js} +1 -1
- package/.output/public/_nuxt/{DR1jFptD.js → DamZHy5M.js} +1 -1
- package/.output/public/_nuxt/{xKX9IHe3.js → DbtjJCra.js} +1 -1
- package/.output/public/_nuxt/{r6zkA1SE.js → DcOlL-oi.js} +1 -1
- package/.output/public/_nuxt/{CxspCKpR.js → DeQ9sIia.js} +1 -1
- package/.output/public/_nuxt/{BkHJoHpc.js → DjX1bLZD.js} +1 -1
- package/.output/public/_nuxt/{Be0bwdsi.js → Dly7wCCl.js} +1 -1
- package/.output/public/_nuxt/DmeogbGY.js +1 -0
- package/.output/public/_nuxt/{CfV2N201.js → Dn_-RkxP.js} +1 -1
- package/.output/public/_nuxt/{dg6uXTyR.js → DoDo3VF2.js} +1 -1
- package/.output/public/_nuxt/{BMlKQMjM.js → DoVHTl-K.js} +1 -1
- package/.output/public/_nuxt/DpM8IgHL.js +1 -0
- package/.output/public/_nuxt/{B4NjylBn.js → Dpwj_1H5.js} +1 -1
- package/.output/public/_nuxt/{DzJa19LG.js → DvSHenmZ.js} +1 -1
- package/.output/public/_nuxt/DvYU87_a.js +1 -0
- package/.output/public/_nuxt/{G2J1dVVb.js → Dx41arC8.js} +1 -1
- package/.output/public/_nuxt/DxBrlj7b.js +1 -0
- package/.output/public/_nuxt/{r-HZNbp3.js → JNpNdV-o.js} +1 -1
- package/.output/public/_nuxt/Lz9MmwKY.js +1 -0
- package/.output/public/_nuxt/OMI0cmZ0.js +1 -0
- package/.output/public/_nuxt/{CUWrUpTl.js → UAmyrRCI.js} +1 -1
- package/.output/public/_nuxt/{EJllK0wm.js → VBTxfbqU.js} +1 -1
- package/.output/public/_nuxt/VbedPPFH.js +1 -0
- package/.output/public/_nuxt/{BY9A1aOT.js → _okd7MfH.js} +1 -1
- package/.output/public/_nuxt/{BOn5q0rT.js → bmAf49LT.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/0174ebd8-8fa5-4698-aa79-7a8dd2f6527f.json +1 -0
- package/.output/public/_nuxt/{D0XWJGhG.js → e-GZmCeP.js} +1 -1
- package/.output/public/_nuxt/entry.Dv52uAyn.css +1 -0
- package/.output/public/_nuxt/{DVIIj6Vv.js → f9TbT3AM.js} +1 -1
- package/.output/public/_nuxt/gdlHFfN6.js +1 -0
- package/.output/public/_nuxt/{BTG_PmM5.js → huBoAZeM.js} +1 -1
- package/.output/public/_nuxt/{DadksxQ9.js → mYw4b7uY.js} +1 -1
- package/.output/public/_nuxt/{B0eHOux4.js → mi7tdFxN.js} +1 -1
- package/.output/public/_nuxt/sFe4Zr5j.js +1 -0
- package/.output/public/_nuxt/{CLrLFf3s.js → uspGXbik.js} +1 -1
- package/.output/public/_nuxt/{DLN-CQXF.js → w7KxwWEv.js} +1 -1
- package/.output/public/_nuxt/{Bp55g9gr.js → wa4k1aDz.js} +1 -1
- package/.output/public/_nuxt/{C2yZcDch.js → xuB8n0QL.js} +1 -1
- package/.output/public/favicon.ico +0 -0
- package/.output/public/trace-viewer/assets/codeMirrorModule-LEHpjmcn.js +32 -0
- package/.output/public/trace-viewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
- package/.output/public/trace-viewer/assets/urlMatch-BYQrIQwR.js +1 -0
- package/.output/public/trace-viewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/.output/public/trace-viewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/.output/public/trace-viewer/codicon.DCmgc-ay.ttf +0 -0
- package/.output/public/trace-viewer/defaultSettingsView.CjdS-WJx.css +1 -0
- package/.output/public/trace-viewer/index.CzXZzn5A.css +1 -0
- package/.output/public/trace-viewer/index.DMMX1gXU.js +2 -0
- package/.output/public/trace-viewer/index.html +44 -0
- package/.output/public/trace-viewer/manifest.webmanifest +16 -0
- package/.output/public/trace-viewer/playwright-logo.svg +9 -0
- package/.output/public/trace-viewer/snapshot.html +10 -0
- package/.output/public/trace-viewer/snapshot.v8KI4P3m.js +2 -0
- package/.output/public/trace-viewer/sw.bundle.js +5 -0
- package/.output/public/trace-viewer/uiMode.BZQ54Kgt.css +1 -0
- package/.output/public/trace-viewer/uiMode.Ut8wwJNp.js +6 -0
- package/.output/public/trace-viewer/uiMode.html +18 -0
- package/.output/public/trace-viewer/xtermModule.DYP7pi_n.css +32 -0
- package/.output/server/chunks/_/users.mjs +1 -1
- package/.output/server/chunks/build/{BreadcrumbNav-DBnGj5Jq.mjs → BreadcrumbNav-Bg4QGX0k.mjs} +11 -4
- package/.output/server/chunks/build/BreadcrumbNav-Bg4QGX0k.mjs.map +1 -0
- package/.output/server/chunks/build/{BrowserBadge-vFb1ERG_.mjs → BrowserBadge-yMgLTBUu.mjs} +17 -9
- package/.output/server/chunks/build/BrowserBadge-yMgLTBUu.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartMarkerLines-BXqUpUcs.mjs → ChartMarkerLines-D0cTRlxF.mjs} +3 -3
- package/.output/server/chunks/build/ChartMarkerLines-D0cTRlxF.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartTooltip-DoF6Smyc.mjs → ChartTooltip-B2t6VYYH.mjs} +3 -3
- package/.output/server/chunks/build/ChartTooltip-B2t6VYYH.mjs.map +1 -0
- package/.output/server/chunks/build/Checkbox-ChSYhiUz.mjs +1 -1
- package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs +32 -0
- package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs.map +1 -0
- package/.output/server/chunks/build/{CodeBlock-CmvKHaq8.mjs → CodeBlock-DuWhmcI2.mjs} +3 -3
- package/.output/server/chunks/build/CodeBlock-DuWhmcI2.mjs.map +1 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-a5KYecZ0.mjs +1 -1
- package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs +72 -0
- package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs.map +1 -0
- package/.output/server/chunks/build/{DataLocationCard-ChV02QJj.mjs → DataLocationCard-DCdhQBIY.mjs} +2 -2
- package/.output/server/chunks/build/DataLocationCard-DCdhQBIY.mjs.map +1 -0
- package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs → DesktopRunLocallyButton-ChHg3GqK.mjs} +5 -5
- package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs.map → DesktopRunLocallyButton-ChHg3GqK.mjs.map} +1 -1
- package/.output/server/chunks/build/{DiagnosisPanel-C_ndadzP.mjs → DiagnosisPanel-DE-r2UV8.mjs} +5 -5
- package/.output/server/chunks/build/DiagnosisPanel-DE-r2UV8.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisResult-GAjo6Lt3.mjs → DiagnosisResult-CrGK--xh.mjs} +16 -10
- package/.output/server/chunks/build/DiagnosisResult-CrGK--xh.mjs.map +1 -0
- package/.output/server/chunks/build/{DurationValue-CObiBDnH.mjs → DurationValue-Dn06XQk3.mjs} +2 -2
- package/.output/server/chunks/build/DurationValue-Dn06XQk3.mjs.map +1 -0
- package/.output/server/chunks/build/EntityLinks-BcpvMt_V.mjs +1 -1
- package/.output/server/chunks/build/EnvManagedBadge-_8GfjWjE.mjs +1 -1
- package/.output/server/chunks/build/{FeatureUnavailable-Buoyoqx1.mjs → FeatureUnavailable-IaBjVCqQ.mjs} +2 -2
- package/.output/server/chunks/build/FeatureUnavailable-IaBjVCqQ.mjs.map +1 -0
- package/.output/server/chunks/build/{GetStartedWizard-tL3U_qM1.mjs → GetStartedWizard-BiyxEXWP.mjs} +3 -3
- package/.output/server/chunks/build/GetStartedWizard-BiyxEXWP.mjs.map +1 -0
- package/.output/server/chunks/build/{HelpHint-C96TlqxY.mjs → HelpHint-CdBz6deq.mjs} +2 -2
- package/.output/server/chunks/build/HelpHint-CdBz6deq.mjs.map +1 -0
- package/.output/server/chunks/build/{MetaStripGroup-Cp2WCQf7.mjs → MetaStripGroup-CDyGlsNt.mjs} +94 -21
- package/.output/server/chunks/build/MetaStripGroup-CDyGlsNt.mjs.map +1 -0
- package/.output/server/chunks/build/{NavbarActions-VCHW0u67.mjs → NavbarActions-BTWxKCVI.mjs} +2 -2
- package/.output/server/chunks/build/NavbarActions-BTWxKCVI.mjs.map +1 -0
- package/.output/server/chunks/build/NavigationMenu-D4ZpdCm_.mjs +1 -1
- package/.output/server/chunks/build/OpenInIdeLink-Bnl-_som.mjs +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-saHYJoyQ.mjs → ProjectTestCasesTable-DJDAZ9NQ.mjs} +9 -9
- package/.output/server/chunks/build/ProjectTestCasesTable-DJDAZ9NQ.mjs.map +1 -0
- package/.output/server/chunks/build/{RunReports-CKYYRC59.mjs → RunReports-BSo2cCNx.mjs} +4 -4
- package/.output/server/chunks/build/RunReports-BSo2cCNx.mjs.map +1 -0
- package/.output/server/chunks/build/{RunStatusBadge-CWhmAmKb.mjs → RunStatusBadge-zfeSwcTx.mjs} +2 -2
- package/.output/server/chunks/build/RunStatusBadge-zfeSwcTx.mjs.map +1 -0
- package/.output/server/chunks/build/{SectionCard-BB1O3uXd.mjs → SectionCard-CKD1s0eF.mjs} +2 -2
- package/.output/server/chunks/build/SectionCard-CKD1s0eF.mjs.map +1 -0
- package/.output/server/chunks/build/Select-COU8NARj.mjs +1 -1
- package/.output/server/chunks/build/SelectMenu-BUwwc3Qt.mjs +1 -1
- package/.output/server/chunks/build/{SettingsField-CEasBHu3.mjs → SettingsField-CDnUtiCM.mjs} +3 -3
- package/.output/server/chunks/build/SettingsField-CDnUtiCM.mjs.map +1 -0
- package/.output/server/chunks/build/Table-BET-DOtX.mjs +1 -1
- package/.output/server/chunks/build/{TestCaseHistoryChart-BgI6P_zS.mjs → TestCaseHistoryChart-Do7WK-ZY.mjs} +16 -17
- package/.output/server/chunks/build/TestCaseHistoryChart-Do7WK-ZY.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-DR8jM5th.mjs → TestStatusBar-BipoEOzd.mjs} +15 -6
- package/.output/server/chunks/build/TestStatusBar-BipoEOzd.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-CK0ucuXC.mjs +1 -1
- package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs → _id_-BLPB189b.mjs} +16 -16
- package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs.map → _id_-BLPB189b.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-kkexEH_q.mjs → _id_-BeGJOSxY.mjs} +16 -16
- package/.output/server/chunks/build/_id_-BeGJOSxY.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-B7Dw490u.mjs → _id_-CfLEW45H.mjs} +472 -304
- package/.output/server/chunks/build/_id_-CfLEW45H.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-DVPb1S93.mjs → _id_-DxHe32cW.mjs} +654 -453
- package/.output/server/chunks/build/_id_-DxHe32cW.mjs.map +1 -0
- package/.output/server/chunks/build/{about-C4AbyQ4q.mjs → about-FLAssVsA.mjs} +5 -5
- package/.output/server/chunks/build/about-FLAssVsA.mjs.map +1 -0
- package/.output/server/chunks/build/{account-B45bYZd1.mjs → account-Cvz6KkYu.mjs} +4 -4
- package/.output/server/chunks/build/account-Cvz6KkYu.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-CgN9xXFf.mjs → ai-DR9Zry7B.mjs} +8 -8
- package/.output/server/chunks/build/{ai-CgN9xXFf.mjs.map → ai-DR9Zry7B.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs → analytics-CCAQayhv.mjs} +9 -9
- package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs.map → analytics-CCAQayhv.mjs.map} +1 -1
- package/.output/server/chunks/build/{auto-heal-BnTdKHQq.mjs → auto-heal-ngiiiVmq.mjs} +4 -4
- package/.output/server/chunks/build/auto-heal-ngiiiVmq.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{default-BGOdM_zA.mjs → default-wYpdMMvh.mjs} +15 -13
- package/.output/server/chunks/build/{default-BGOdM_zA.mjs.map → default-wYpdMMvh.mjs.map} +1 -1
- package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs → docs-BX9DoKOI.mjs} +4 -4
- package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs.map → docs-BX9DoKOI.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-BbL3k6c3.mjs → edit-DnyBC4uC.mjs} +7 -7
- package/.output/server/chunks/build/{edit-BbL3k6c3.mjs.map → edit-DnyBC4uC.mjs.map} +1 -1
- package/.output/server/chunks/build/fetch-DOcN2mHf.mjs +1 -1
- package/.output/server/chunks/build/{help-content-BK3jcgLw.mjs → help-content-3QLSe6Vd.mjs} +3 -3
- package/.output/server/chunks/build/help-content-3QLSe6Vd.mjs.map +1 -0
- package/.output/server/chunks/build/{import-ibAn_HB9.mjs → import-S-w3MXez.mjs} +8 -8
- package/.output/server/chunks/build/import-S-w3MXez.mjs.map +1 -0
- package/.output/server/chunks/build/{index-D5A0DW7Y.mjs → index-BFr7JW_2.mjs} +4 -4
- package/.output/server/chunks/build/index-BFr7JW_2.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CqinXTVs.mjs → index-CdzYiYiu.mjs} +9 -9
- package/.output/server/chunks/build/{index-CqinXTVs.mjs.map → index-CdzYiYiu.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-DreB_S-d.mjs → index-CgYJur1z.mjs} +31 -23
- package/.output/server/chunks/build/index-CgYJur1z.mjs.map +1 -0
- package/.output/server/chunks/build/{index-2GmuPNF-.mjs → index-CjnZ521K.mjs} +22 -4
- package/.output/server/chunks/build/index-CjnZ521K.mjs.map +1 -0
- package/.output/server/chunks/build/{index-KsRegEjT.mjs → index-xgA4P1ht.mjs} +3218 -4087
- package/.output/server/chunks/build/index-xgA4P1ht.mjs.map +1 -0
- package/.output/server/chunks/build/isValueEqualOrExist-D4lZ8uRY.mjs +1 -1
- package/.output/server/chunks/build/login-DueFS2RU.mjs +1 -1
- package/.output/server/chunks/build/{mcp-Dwj29-uG.mjs → mcp-DlZzubUF.mjs} +7 -7
- package/.output/server/chunks/build/mcp-DlZzubUF.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-CjAn5FJj.mjs → notifications-ByPVhyPX.mjs} +6 -6
- package/.output/server/chunks/build/notifications-ByPVhyPX.mjs.map +1 -0
- package/.output/server/chunks/build/{performance-DRzcu_c7.mjs → performance-Dc9FhaJr.mjs} +6 -6
- package/.output/server/chunks/build/performance-Dc9FhaJr.mjs.map +1 -0
- package/.output/server/chunks/build/{pr-feedback-DR60oGBf.mjs → pr-feedback-5kC_UmKG.mjs} +4 -4
- package/.output/server/chunks/build/pr-feedback-5kC_UmKG.mjs.map +1 -0
- package/.output/server/chunks/build/{selections-BjjolRZ9.mjs → selections-C6J9mI0s.mjs} +9 -9
- package/.output/server/chunks/build/selections-C6J9mI0s.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +33 -33
- package/.output/server/chunks/build/{settings-B3NWV9tu.mjs → settings-DcCAv0U4.mjs} +17 -81
- package/.output/server/chunks/build/settings-DcCAv0U4.mjs.map +1 -0
- package/.output/server/chunks/build/{settings-metadata-DwJk8uSt.mjs → settings-metadata-B684YiW4.mjs} +2 -2
- package/.output/server/chunks/build/settings-metadata-B684YiW4.mjs.map +1 -0
- package/.output/server/chunks/build/{setup-BlgFTixN.mjs → setup-Cf3Mzf-W.mjs} +8 -8
- package/.output/server/chunks/build/{setup-BlgFTixN.mjs.map → setup-Cf3Mzf-W.mjs.map} +1 -1
- package/.output/server/chunks/build/{storage-C1O-FC0U.mjs → storage-B4VySiv3.mjs} +7 -7
- package/.output/server/chunks/build/storage-B4VySiv3.mjs.map +1 -0
- package/.output/server/chunks/build/{tags-dsvYrnii.mjs → tags-BvWdsd1F.mjs} +25 -11
- package/.output/server/chunks/build/tags-BvWdsd1F.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-CFiOuyK6.mjs → test-cases-LIIu7dMu.mjs} +11 -11
- package/.output/server/chunks/build/test-cases-LIIu7dMu.mjs.map +1 -0
- package/.output/server/chunks/build/{test-functions-CbmBi6az.mjs → test-functions-Dv8nezrM.mjs} +8 -8
- package/.output/server/chunks/build/test-functions-Dv8nezrM.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs → useCopyRich-DRRKIts2.mjs} +17 -14
- package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs.map → useCopyRich-DRRKIts2.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDesktopDownload-R_RWSgUV.mjs → useDesktopDownload-CK-5nATq.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopDownload-CK-5nATq.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopLocalRuns-BdELBy0Y.mjs → useDesktopLocalRuns-BHZic4MJ.mjs} +3 -3
- package/.output/server/chunks/build/useDesktopLocalRuns-BHZic4MJ.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopProjectLink-IUN7SIP2.mjs → useDesktopProjectLink-CqBvnXwG.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopProjectLink-CqBvnXwG.mjs.map +1 -0
- package/.output/server/chunks/build/useOpenInIde-DS4YXevu.mjs +1 -1
- package/.output/server/chunks/build/{useSettingsNav-Dg87E7kY.mjs → useSettingsNav-dyHz-2Bz.mjs} +2 -2
- package/.output/server/chunks/build/useSettingsNav-dyHz-2Bz.mjs.map +1 -0
- package/.output/server/chunks/build/{users-DgsoiXxQ.mjs → users-CluLB8DL.mjs} +31 -13
- package/.output/server/chunks/build/users-CluLB8DL.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +839 -680
- package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +5 -2
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +42 -26
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +1 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +1 -0
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
- package/.output/server/chunks/routes/mcp.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/routes/share/_token_.get.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/3HmftUHT.js +0 -1
- package/.output/public/_nuxt/B7zo6PK8.js +0 -1
- package/.output/public/_nuxt/BO4sfkbw.js +0 -1
- package/.output/public/_nuxt/BdyXNI2_.js +0 -1
- package/.output/public/_nuxt/Bg63qh8W.js +0 -1
- package/.output/public/_nuxt/BnhWd06P.js +0 -1
- package/.output/public/_nuxt/CHWW6xiX.js +0 -1
- package/.output/public/_nuxt/CIPvUOic.js +0 -2
- package/.output/public/_nuxt/CVcFbORW.js +0 -9
- package/.output/public/_nuxt/CZlz5y13.js +0 -1
- package/.output/public/_nuxt/CkV_UG8j.js +0 -1
- package/.output/public/_nuxt/D0TpBpCc.js +0 -1
- package/.output/public/_nuxt/D3LyIeiJ.js +0 -1
- package/.output/public/_nuxt/DcccidY5.js +0 -4
- package/.output/public/_nuxt/DqkCbAzo.js +0 -1
- package/.output/public/_nuxt/DwH4SIZE.js +0 -1
- package/.output/public/_nuxt/DwZS0oRm.js +0 -2
- package/.output/public/_nuxt/DxPZIuWy.js +0 -1
- package/.output/public/_nuxt/Dyb1FouX.js +0 -1
- package/.output/public/_nuxt/builds/meta/a5fb24cc-65e3-4e55-aa12-038fe2de4754.json +0 -1
- package/.output/public/_nuxt/entry.BFe0Ua9k.css +0 -1
- package/.output/public/_nuxt/i7znB42v.js +0 -1
- package/.output/server/chunks/build/BreadcrumbNav-DBnGj5Jq.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-vFb1ERG_.mjs.map +0 -1
- package/.output/server/chunks/build/ChartMarkerLines-BXqUpUcs.mjs.map +0 -1
- package/.output/server/chunks/build/ChartTooltip-DoF6Smyc.mjs.map +0 -1
- package/.output/server/chunks/build/CodeBlock-CmvKHaq8.mjs.map +0 -1
- package/.output/server/chunks/build/DataLocationCard-ChV02QJj.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-C_ndadzP.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisResult-GAjo6Lt3.mjs.map +0 -1
- package/.output/server/chunks/build/DurationValue-CObiBDnH.mjs.map +0 -1
- package/.output/server/chunks/build/FeatureUnavailable-Buoyoqx1.mjs.map +0 -1
- package/.output/server/chunks/build/GetStartedWizard-tL3U_qM1.mjs.map +0 -1
- package/.output/server/chunks/build/HelpHint-C96TlqxY.mjs.map +0 -1
- package/.output/server/chunks/build/MetaStripGroup-Cp2WCQf7.mjs.map +0 -1
- package/.output/server/chunks/build/NavbarActions-VCHW0u67.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectTestCasesTable-saHYJoyQ.mjs.map +0 -1
- package/.output/server/chunks/build/RunReports-CKYYRC59.mjs.map +0 -1
- package/.output/server/chunks/build/RunStatusBadge-CWhmAmKb.mjs.map +0 -1
- package/.output/server/chunks/build/SectionCard-BB1O3uXd.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-CEasBHu3.mjs.map +0 -1
- package/.output/server/chunks/build/TestCaseHistoryChart-BgI6P_zS.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-DR8jM5th.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-B7Dw490u.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-DVPb1S93.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-kkexEH_q.mjs.map +0 -1
- package/.output/server/chunks/build/about-C4AbyQ4q.mjs.map +0 -1
- package/.output/server/chunks/build/account-B45bYZd1.mjs.map +0 -1
- package/.output/server/chunks/build/auto-heal-BnTdKHQq.mjs.map +0 -1
- package/.output/server/chunks/build/help-content-BK3jcgLw.mjs.map +0 -1
- package/.output/server/chunks/build/import-ibAn_HB9.mjs.map +0 -1
- package/.output/server/chunks/build/index-2GmuPNF-.mjs.map +0 -1
- package/.output/server/chunks/build/index-D5A0DW7Y.mjs.map +0 -1
- package/.output/server/chunks/build/index-DreB_S-d.mjs.map +0 -1
- package/.output/server/chunks/build/index-KsRegEjT.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-Dwj29-uG.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-CjAn5FJj.mjs.map +0 -1
- package/.output/server/chunks/build/performance-DRzcu_c7.mjs.map +0 -1
- package/.output/server/chunks/build/pr-feedback-DR60oGBf.mjs.map +0 -1
- package/.output/server/chunks/build/selections-BjjolRZ9.mjs.map +0 -1
- package/.output/server/chunks/build/settings-B3NWV9tu.mjs.map +0 -1
- package/.output/server/chunks/build/settings-metadata-DwJk8uSt.mjs.map +0 -1
- package/.output/server/chunks/build/storage-C1O-FC0U.mjs.map +0 -1
- package/.output/server/chunks/build/tags-dsvYrnii.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-CFiOuyK6.mjs.map +0 -1
- package/.output/server/chunks/build/test-functions-CbmBi6az.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopDownload-R_RWSgUV.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopLocalRuns-BdELBy0Y.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopProjectLink-IUN7SIP2.mjs.map +0 -1
- package/.output/server/chunks/build/useSettingsNav-Dg87E7kY.mjs.map +0 -1
- package/.output/server/chunks/build/users-DgsoiXxQ.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={"home.flaky":{title:"Flaky tests",text:"Tests that pass and fail without code changes. This counts how many were detected across your projects recently.",doc:"flaky-tests#flaky-test-detection"},"home.trend-bars":{title:"Run history bars",text:"One bar per full run (up to 20), oldest left → newest right. Green = pass, red = fail, amber = passed with flaky tests, gray = skipped/unknown. Click a bar to open that run.",doc:"ui-overview#home"},"home.tendency":{title:"Tendency",text:"Derived from the last 5 full runs. Failing = latest run failed; flaky = pass/fail mixed or flaky tests seen in the window; passing = all recent runs green.",doc:"ui-overview#home"},"home.project-health":{title:"Project health",text:"Every project at a glance — run history bars and a tendency badge so you can immediately see which project needs attention. Only full runs count.",doc:"ui-overview#home"},"home.get-started":{title:"Get started",text:"Wire the Piwi reporter into your Playwright config to start sending results here. The wizard generates the snippet for you.",doc:"getting-started#using-the-piwi-dashboard-reporter"},"analytics.insights":{title:"Insights",text:"Auto-generated findings over the selected period — pass-rate drops, failing streaks, stale clusters, wasted CI time. Ranked by severity; click one to jump to the source."},"analytics.portfolio":{title:"Portfolio health",text:"Every project over the selected period: pass rate with its change vs the previous period, flaky volume, open failure clusters, and the latest run. Worst health sorts first."},"analytics.heatmap":{title:"Pass rate heatmap",text:"Each cell is the aggregate pass rate of one project over one time bucket — green is healthy, red is broken, gray means no runs. Longer periods use wider buckets."},"analytics.ci-time":{title:"CI time",text:"Total minutes your test runs consumed, over time, with the change vs the previous equal-length period. Steady growth here is a capacity conversation."},"analytics.wasted-time":{title:"Wasted CI time",text:"Minutes that produced no signal: time inside wait steps plus time executing attempts that ended failed or timed out. The strongest argument for fixing slow waits and flaky tests."},"analytics.flaky-leaderboard":{title:"Flakiest tests",text:"The worst flaky tests across all projects, using the same scoring as each project’s Flaky tests tab, sorted by wasted-CI impact.",doc:"flaky-tests#flaky-test-detection"},"analytics.cluster-landscape":{title:"Failure clusters",text:"Open failure clusters across all projects — the biggest and oldest unresolved root causes. Clusters outlive run retention, so this works on long horizons.",doc:"ai-diagnosis#failure-clustering"},"analytics.regression-velocity":{title:"Regression velocity",text:"How much new breakage each period introduces: tests that passed in a baseline and now fail (regressions), plus tests that turned flaky. Rising bars mean quality debt is accumulating.",doc:"flaky-tests#regression-signals"},"analytics.browser-matrix":{title:"Browser matrix",text:"Pass rate per project × browser, so a suite that is green on one browser but failing on another (a browser-specific bug) stands out immediately."},"analytics.slow-endpoints":{title:"Slow endpoints",text:"Backend calls captured during tests, aggregated across all projects by route: p50/p90 latency, error rate, and how many projects hit each one — a shared endpoint regressing shows up here first.",doc:"capture-fixtures"},"projects.tag-filter":{text:"Filter projects by tag. Selecting several tags uses OR logic — a project matching any of them is shown."},"projects.table":{title:"Projects",text:"Every project that has reported results, with its latest run, pass rate and activity. Click a row to drill in.",doc:"ui-overview#projects"},"project.import":{title:"Importing past runs",text:"Upload the archives Playwright writes to blob-report/ to backfill runs from before you adopted Piwi. One archive becomes one run, complete with traces and screenshots, and re-uploading the same archive changes nothing. Imports are silent by design — no notifications, AI diagnosis or regression signals, so a backfill never pages the team about months-old failures.",doc:"importing-runs",envVars:["PIWI_IMPORT_MAX_BYTES"]},"project.run-scope":{title:"Full vs partial runs",text:"A partial run executed only a subset of the suite (a shard, a retry, or a filtered selection). Trends use full runs so partial results don’t skew the numbers.",doc:"ui-overview#test-run-detail"},"project.runs-trend":{title:"Run trend",text:"One stacked bar per run — failed anchored at the bottom, passed on top — following the filters above. A growing red base marks where things broke; hover a bar for the counts, click it to open the run.",doc:"ui-overview#project-detail"},"project.flaky-tests":{title:"Flaky tests",text:"Tests that fail intermittently across runs. Impact estimates wasted CI time; the score (0–100) rates severity and root cause explains why.",doc:"flaky-tests#flaky-test-detection"},"project.quarantine":{title:"Quarantine",text:"A quarantined test still runs and still reports — it is only excluded from the CI gate’s verdict. Passing runs accumulate as a streak, so a test that recovers is flagged ready to release instead of staying quarantined forever.",doc:"flaky-tests#quarantine-with-a-way-out"},"project.performance":{title:"Performance",text:"Duration trends for the suite — average and P90 (the slowest 10% threshold). Use it to catch tests getting steadily slower.",doc:"flaky-tests#performance"},"project.timeline":{title:"Timeline markers",text:"Dated events — deploys, config changes, infra migrations, incidents — overlaid as vertical lines on the trend charts, so you can tell whether a change moved your results or performance. Markers can be scoped to an environment; some are detected automatically when tooling versions change between runs.",doc:"timeline-markers",envVars:["PIWI_AUTO_MARKERS"]},"project.slowest-tests":{title:"Slowest tests",text:"The tests taking the most time, ranked. Optimizing the top entries shortens your overall run the fastest.",doc:"flaky-tests#performance"},"project.run-compare":{title:"Run comparison",text:"Diff two runs to see which tests changed status or duration between them — handy for confirming a fix or spotting a regression.",doc:"ui-overview#test-run-detail"},"project.test-cases":{title:"Test cases",text:'Every distinct test in the project with its executed-only pass rate, result breakdown and average duration across runs. Search by title or file, filter by status, and switch to a per-spec tree. Cases not run within the selected age window are hidden by default (last 30 days) — pick "All time" to see obsolete ones. Click a test to see its full history.',doc:"ui-overview#project-detail"},"project.compare":{title:"Compare runs",text:"Pick two runs to see a side-by-side summary and a per-test status diff between them.",doc:"ui-overview#test-run-detail"},"project.spec-health":{title:"Spec health",text:"A heatmap grouped by spec file: pass rate, flaky rate and average time per spec, so you can find the riskiest files at a glance.",doc:"flaky-tests#spec-health-heatmap"},"project.members":{title:"Project access",text:"Who can see this project. Admins always have access; reporters and users see only the projects assigned to them.",doc:"authentication#user-management"},"project.ai-instructions":{title:"AI diagnosis instructions",text:"Extra guidance handed to the AI when diagnosing this project’s failures — e.g. domain terms, known-flaky areas, or where to look first.",doc:"ai-diagnosis#custom-instructions"},"project.scm-token":{title:"Repository access token",text:"A read-only Git host token lets diagnosis pull the actual commit diffs behind a failure for SCM-grounded analysis. Stored encrypted.",doc:"ai-diagnosis#scm-grounded-context"},"project.local-folder":{title:"Linked local folder",text:"The checkout on this machine that produces this project’s runs. Linking it enables running tests from the app and opening files in your IDE. The link is stored on this machine only — never on the server.",doc:"desktop#running-tests-from-the-app"},"run.summary":{title:"Run summary",text:"Headline outcome of this run — overall status, test counts and total duration.",doc:"ui-overview#test-run-detail"},"run.partial":{title:"Partial run",text:"This run covered only part of the suite (a shard, retry or filtered selection), so its totals aren’t a full picture.",doc:"ui-overview#test-run-detail"},"run.live":{title:"Live run",text:"This run is still streaming results in real time. Results and counts update as each test finishes.",doc:"reporter#live-streaming"},"run.ci-env":{title:"CI & environment",text:"Where this run executed — CI provider, pipeline and machine details — collected automatically by the reporter.",doc:"reporter#automatic-metadata-collection"},"run.reports":{title:"Storage & reports",text:"HTML reports, traces and attachments uploaded with this run. A run can carry several reports (e.g. per shard).",doc:"reporter#multiple-reports"},"run.metadata":{title:"Tags, links & custom data",text:"Extra context attached to the run: tags for grouping, links to external issues, and any custom key/value data your reporter sent."},"run.test-cases":{title:"Test cases",text:"Per-test results for this run. Filter by status, or by the NEW (new regression) and FLAKY signal badges.",doc:"ui-overview#test-run-detail"},"run.insights":{title:"Run insights",text:"Automatic highlights for this run — newly failing, flaky and slow tests — surfaced so you don’t have to hunt for them.",doc:"flaky-tests#run-insights"},"run.regression":{title:"Regression signals",text:"Tests that newly started failing in this run versus the project baseline — the most likely fallout from the latest change.",doc:"flaky-tests#regression-signals"},"run.timeline":{title:"Workers timeline",text:"When each test ran on each parallel worker. Gaps and long bars reveal poor parallelization or a single slow test stalling a shard.",doc:"ui-overview#test-run-detail"},"case.diagnosis-tab":{title:"Diagnosis",text:"Everything you need to understand and fix this failure in one place — the error, a verdict on what kind of failure it is, the captured evidence, and an AI diagnosis.",doc:"evidence#one-execution-diagnosis-first"},"case.verdict":{title:"Failure verdict",text:"An at-a-glance read on this failure: whether it newly regressed or is flaky, how many times it retried, and how long the test has been failing.",doc:"flaky-tests#regression-signals"},"case.evidence":{title:"Failure evidence",text:"What was captured at the moment of failure — screenshots, video and traces — grouped so you can see exactly what the browser saw.",doc:"evidence#trace-viewer"},"case.test-source":{title:"Test source",text:"The source around the failing line and the callers above it — captured from the failure’s call stack — so you can read where it broke, and the code that led there, without opening your editor. When the execution has a trace, this deepens into the complete call stack with the real source of every frame, read from the trace’s embedded files.",doc:"evidence#trace-powered-deep-views"},"export.offline":{title:"Reading this offline",text:"Takes this investigation out of the dashboard as a file that needs no network and no Piwi server. HTML is one self-contained page with screenshots and video embedded; ZIP adds the raw artifacts — trace archives, full-size video, logs — plus a machine-readable data.json; PDF is the HTML printed from your browser. Evidence past the size budget is listed in the report as omitted rather than dropped quietly.",doc:"offline-export",envVars:["PIWI_EXPORT_MAX_INLINE_BYTES","PIWI_EXPORT_MAX_BYTES","PIWI_EXPORT_MAX_CASES"]},"case.artifacts":{title:"Artifacts",text:"Traces, attachments, console output and network requests captured for this execution — the raw material behind the result.",doc:"evidence#trace-viewer"},"case.steps":{title:"Steps",text:"Each step Playwright ran, with its duration. A failed step is highlighted with its error, and slow steps are color-coded.",doc:"evidence#one-execution-diagnosis-first"},"case.wasted-time":{title:"Wasted time",text:"Time spent in fixed waits (waitForTimeout and matching patterns) that could usually be replaced with a web-first assertion.",doc:"flaky-tests#performance"},"case.ai":{title:"AI diagnosis for this execution",text:"Diagnose just this failing execution, or copy the full evidence context to paste into your own AI assistant.",doc:"ai-diagnosis#diagnosing-one-execution"},"case.web-vitals":{title:"Web Vitals",text:"Core Web Vitals (LCP, CLS, etc.) captured during the test, measuring real loading and responsiveness of the page under test.",doc:"capture-fixtures"},"case.traces":{title:"Traces",text:`Playwright trace files for this execution. "View trace" opens them in the dashboard's own trace viewer — the trace stays on your server, it is never sent to a third party.`,doc:"evidence#trace-viewer"},"case.console":{title:"Console output",text:"Browser console messages logged while this test ran — often the first clue for a JavaScript error behind a failure.",doc:"capture-fixtures"},"case.network":{title:"Network requests",text:"HTTP requests the page made during the test, with timing and status — useful for spotting failed or slow calls. When the execution has a trace, the Full trace view shows every request (all resource types) with headers, timing phases, a waterfall and capped body previews; sensitive header values are masked.",doc:"evidence#trace-powered-deep-views"},"case.backend-logs":{title:"Backend server logs",text:"Server-side warnings and errors captured during the test, correlated with this execution via a Piwi backend integration.",doc:"backend-logs"},"case.aria":{title:"ARIA snapshot",text:"A snapshot of the accessibility tree at the moment of failure — what assistive tech saw, and useful grounding for AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"case.flaky-count":{title:"Flaky runs",text:"How many of this test’s recent executions flipped between pass and fail without a code change.",doc:"flaky-tests#flaky-test-detection"},"case.history-chart":{title:"Duration trend",text:"This test’s duration across recent runs. Rising times or spikes hint at a slowdown or instability.",doc:"flaky-tests#flaky-test-detection"},"case.sparkline":{title:"Status history",text:"Pass/fail outcome of this test over its recent runs, oldest to newest — a quick read on its stability.",doc:"flaky-tests#flaky-test-detection"},"cluster.concept":{title:"Failure clusters",text:"Failures with the same error fingerprint are grouped into one cluster, so a single root cause shows up once instead of N times.",doc:"ai-diagnosis#failure-clustering"},"cluster.new-vs-known":{title:"New vs known failure",text:"Whether this failure matches an existing cluster (a known issue) or opened a new one — a fresh signature worth a closer look.",doc:"ai-diagnosis#failure-clustering"},"cluster.triage":{text:"Track a cluster’s state: set its status, add triage notes, or extract a subset of failures into a separate cluster."},"cluster.resolution":{title:"Resolution",text:"Recorded when a full run turns this cluster green: when the fix landed, how long the cluster stayed open, and whether the change matched the diagnosed files. If the failure comes back, the cluster is marked as regressed rather than quietly reopened.",doc:"ai-diagnosis#did-the-fix-work"},"cluster.evidence":{title:"Test evidence",text:"The concrete artifacts behind this cluster — screenshots, signals and traces from affected tests — gathered for review and AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.scm":{title:"What changed",text:"Recent commits and diffs around when this failure started, so you can connect the break to the change that caused it.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.baseline":{title:"Baseline commit",text:"The last known-good commit. Diffs are computed from here forward to scope the search for the offending change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.commit-browser":{title:"Commit browser",text:"Browse the repository’s recent commits and inspect each diff to pick a baseline or find the suspect change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.diagnosis":{title:"AI diagnosis",text:"Runs the configured AI model over the failure plus its evidence and code changes to propose a root cause and fix.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.context-input":{title:"Additional context",text:"Extra notes, files or screenshots you add to steer the diagnosis — anything the model can’t infer from the captured evidence.",doc:"ai-diagnosis#custom-instructions"},"cluster.context-preview":{title:"Context preview",text:"Exactly what will be sent to the AI, including how much was trimmed to fit the token budget. Review it before spending tokens.",doc:"ai-diagnosis#context-limits-and-token-cost"},"cluster.result":{title:"Diagnosis result",text:"The AI’s proposed root cause, fix and confidence. Treat it as a lead to verify, not proof — confirm against the evidence before acting.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.ai-setup":{title:"AI not configured",text:"Diagnosis needs an AI provider and API key. Configure one in Settings → AI to enable automatic and on-demand analysis.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.confidence":{title:"Confidence score",text:"How sure the model is of the top hypothesis (0–100). It is lowered when key evidence is missing or truncated, so treat a low score as “gather more before acting”.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.hypotheses":{title:"Other hypotheses",text:"Alternative root causes the model weighed, ranked by likelihood. Useful when the evidence is ambiguous and the top pick is not conclusive.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.coverage":{title:"Data coverage",text:"Which evidence sections were present, truncated or absent for this diagnosis — the same map the model sees. Absent or trimmed evidence lowers confidence; the quote icon marks sections the diagnosis cited.",doc:"ai-diagnosis#context-limits-and-token-cost"},"notifications.subscribe":{title:"Project notifications",text:"Get notified about this project’s runs through your channels. Choose which events trigger an alert.",doc:"notifications#subscriptions"},"settings.general":{title:"General settings",text:"Central place for account, users, AI diagnosis, notifications, storage and tags. Settings that can be overridden by environment variables show a lock badge naming the variable."},"settings.storage-stats":{title:"Storage statistics",text:"How much disk your reports, traces and attachments use, broken down so you can see what to clean up.",doc:"storage#storage-architecture"},"settings.cleanup":{title:"Cleanup old runs",text:"Delete runs (and their reports, traces and attachments) older than a chosen age to reclaim storage. This cannot be undone.",doc:"storage#storage-management"},"account.email":{title:"Email & verification",text:"Your account email is used for password resets and notifications. Verifying it confirms you own the address.",doc:"authentication#user-management"},"settings.smtp":{title:"SMTP status",text:"Outbound email (resets, invites, notifications) is configured through environment variables and shown here read-only.",doc:"notifications#smtp-configuration",envVars:["PIWI_SMTP_HOST","PIWI_SMTP_PORT","PIWI_SMTP_USER","PIWI_SMTP_PASS","PIWI_SMTP_FROM","PIWI_SMTP_FROM_NAME","PIWI_SMTP_SECURE"]},"notifications.channels":{title:"Channels",text:"Destinations an alert can go to — browser, email, Slack or webhook. Create a channel, then subscribe events to it. Administrators can make a channel global (usable by everyone); without authentication every channel is global.",doc:"notifications#channels"},"notifications.subscriptions":{title:"Subscriptions",text:"Which events (run failed, new cluster, etc.) notify which channel, optionally scoped to one project and filtered. Global subscriptions deliver instance-wide and are managed by administrators.",doc:"notifications#subscriptions"},"settings.ai-provider":{title:"AI provider",text:"Configure the model providers behind the three AI roles — diagnosis, research and embedding. Each role has its own provider config, or reuses another role’s provider and credentials. Keys are stored encrypted and never returned by the API.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_PROVIDER","PIWI_AI_MODEL","PIWI_AI_API_KEY","PIWI_AI_BASE_URL"]},"settings.ai-instructions":{title:"Global analysis instructions",text:"Guidance applied to every diagnosis across all projects — house style, terminology, or things to always check. Per-project instructions add to this.",doc:"ai-diagnosis#custom-instructions"},"settings.ai-research":{title:"Research model",text:"An optional cheaper/faster model that pre-analyzes the failure (on a lean view) before the main model writes the final diagnosis. It can use its own provider, and the costly SCM diff is only fetched when it flags a likely regression. It also handles cluster naming and merge adjudication, so configuring a cheap research model routes those utility calls away from the expensive diagnosis model.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_RESEARCH_PROVIDER","PIWI_AI_RESEARCH_MODEL","PIWI_AI_RESEARCH_BASE_URL","PIWI_AI_RESEARCH_API_KEY"]},"settings.ai-limits":{title:"Diagnosis context limits",text:"Caps on how much evidence (and how many tokens) go into each diagnosis. Higher limits give the model more to work with but cost more. Each field can be pinned individually by its env var.",doc:"ai-diagnosis#context-limits-and-token-cost",envVars:["PIWI_AI_MAX_SAMPLE_ERROR_CHARS","PIWI_AI_MAX_SCM_PATCH_BUDGET","PIWI_AI_MAX_AFFECTED_TESTS","PIWI_AI_MAX_STEPS","PIWI_AI_MAX_CONSOLE_ENTRIES","PIWI_AI_MAX_CONSOLE_ENTRY_CHARS","PIWI_AI_MAX_NETWORK_REQUESTS","PIWI_AI_MAX_ARIA_SNAPSHOT_CHARS","PIWI_AI_MAX_TEST_SOURCE_CHARS","PIWI_AI_MAX_SERVER_LOG_ENTRIES","PIWI_AI_MAX_SERVER_LOG_ENTRY_CHARS","PIWI_AI_MAX_IMAGES","PIWI_AI_MAX_PASSED_PEERS","PIWI_AI_MAX_CONSOLE_WINDOW","PIWI_AI_SLOW_REQUEST_MS","PIWI_AI_MAX_TRACE_STACK_FRAMES","PIWI_AI_MAX_TRACE_NETWORK_REQUESTS"]},"settings.users":{title:"Users & roles",text:"Manage accounts and their role. Administrators control everything; reporters submit results; users have read-only access.",doc:"authentication#roles"},"settings.api-keys":{title:"API keys",text:"Tokens (prefixed pd_) that let the reporter or scripts authenticate without a password. Shown once at creation; revoke anytime.",doc:"authentication#api-keys"},"settings.tags":{text:"Reusable labels you can attach to projects for grouping and filtering across the dashboard."},"settings.wasted-time":{title:"Wasted-time patterns",text:"Define which wait steps count as wasted time. A wait is wasted when any pattern matches its step title or source location. Patterns are case-insensitive and support * and ? wildcards. Changes apply to existing runs immediately.",doc:"flaky-tests#performance",envVars:["PIWI_WASTED_WAIT_PATTERNS"]},"settings.timeout-hygiene":{title:"Timeout hygiene",text:"Thresholds for flagging oversized per-test timeouts and stale test.slow() marks. Opportunities are recomputed at read time, so changes apply to existing runs immediately.",doc:"flaky-tests#performance"},"settings.pr-feedback":{title:"Pull-request feedback",text:"When a run finishes on a branch with an open pull request, Piwi can post a summary comment — new failures separated from pre-existing ones, with suggested locators — and set a commit status. Needs PIWI_SITE_URL and an SCM token with write access.",doc:"ci#pull-request-feedback",envVars:["PIWI_SITE_URL"]},"settings.auto-heal":{title:"Auto-heal pull requests",text:"When a locator breaks on the default branch and healing has high-confidence evidence, Piwi opens the fix pull request itself — a deterministic one-line locator edit per broken call site. Off by default, with an explicit per-project allowlist. Needs PIWI_SITE_URL and an SCM token with write access.",doc:"auto-heal",envVars:["PIWI_SITE_URL"]},"settings.auto-diagnose":{title:"Auto-diagnose",text:"When a run finishes, up to 3 new failure clusters are diagnosed automatically — each diagnosis is one research call (when a research model is configured) plus one diagnosis call — and new clusters get human-readable titles in one batched call. Requires the diagnosis model to be configured.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_AUTO_DIAGNOSE"]},"settings.embedding-model":{title:"Embedding model",text:"Embeds failures so semantically-similar errors group together (used by failure clustering). Can reuse another role’s provider or configure its own.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_EMBEDDING_PROVIDER","PIWI_AI_EMBEDDING_MODEL","PIWI_AI_EMBEDDING_BASE_URL","PIWI_AI_EMBEDDING_API_KEY"]},"settings.privacy":{title:"Privacy notice",text:"What data is sent to the configured LLM provider when diagnosing a failure, and how secrets are stored. API keys are encrypted at rest; env vars keep them out of the DB entirely.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"settings.storage-backend":{title:"Storage backend",text:"Where test artifacts (HTML reports, traces, attachments) are stored — local disk or S3. Configured entirely through environment variables; shown here read-only.",doc:"storage#storage-architecture",envVars:["PIWI_STORAGE_TYPE","PIWI_STORAGE_PATH","PIWI_S3_BUCKET","PIWI_S3_REGION","PIWI_S3_ACCESS_KEY_ID","PIWI_S3_SECRET_ACCESS_KEY","PIWI_S3_ENDPOINT","PIWI_S3_FORCE_PATH_STYLE"]},"settings.auth-toggle":{title:"Authentication",text:"Role-based access control and API keys. Off by default — when disabled, every endpoint behaves as a single virtual administrator.",doc:"authentication",envVars:["PIWI_AUTH_ENABLED","PIWI_AUTH_SECRET"]},"account.display-name":{title:"Display name",text:"A friendly name shown alongside your account. Optional, and visible only within the dashboard."},"account.connected-accounts":{title:"Connected accounts",text:"Sign in with an OAuth provider (Google or GitHub). Providers are configured by an operator through environment variables; one provider can be linked per account.",doc:"authentication#oauth-google-github",envVars:["PIWI_OAUTH_GOOGLE_CLIENT_ID","PIWI_OAUTH_GOOGLE_CLIENT_SECRET","PIWI_OAUTH_GITHUB_CLIENT_ID","PIWI_OAUTH_GITHUB_CLIENT_SECRET","PIWI_OAUTH_ALLOWED_DOMAINS","PIWI_OAUTH_GITHUB_ALLOWED_ORGS"]},"account.password":{title:"Password",text:"Change the password you sign in with. OAuth-only accounts manage their password through their provider.",doc:"authentication#user-management"},"notifications.test-email":{title:"Send test email",text:"Send a test message through the configured SMTP server to verify delivery. Uses the environment-configured SMTP connection.",doc:"notifications#smtp-configuration"},"mcp.tools":{title:"What it provides",text:"The tools this MCP server exposes to AI agents, letting them query your projects, runs and failures directly.",doc:"mcp#what-it-provides"},"mcp.auth":{title:"Authentication",text:"How an MCP client authenticates to this server — uses the same API keys as the rest of the dashboard.",doc:"mcp#authentication"},"mcp.client-setup":{title:"Client setup",text:"Copy-paste configuration to connect Claude Code, Cursor, VS Code and other MCP clients to this server.",doc:"mcp#client-setup"},"shared.entity-links":{title:"Entity links",text:"Links to external systems (Jira, GitHub, etc.) attached to this item. The provider is detected automatically from the URL."},"ide.open":{title:"Open in IDE",text:"Click a source path to open it in your local editor. Set your local workspace folder (so VS Code gets an absolute path) or a JetBrains project name, then pick a method. Auto probes the JetBrains local server first (the only one it can confirm) before falling back to a vscode:// or jetbrains:// launch. These preferences live in this browser only.",doc:"ide-integration"},"locator-healing":{title:"Alternative locators",text:'When a locator breaks after a UI change, Piwi suggests pre-captured alternatives from the last passing run — or from another test in the project that uses the same locator. Each alternative is ranked by stability score — prefer data-testid (100) over CSS classes (10–40). The recommended fix shows the exact one-line edit for the failing test, with a "Copy fix prompt" for an AI coding agent. A "Your pick" badge marks a replacement you confirmed on the failing page: "Pick from snapshot" opens the failure-time DOM and lets you click the intended element, and "Pick from trace" opens the failure trace in the trace viewer, whose Pick locator tool works on the recorded page snapshots.',doc:"reporter#locator-healing"},"environment-diff":{title:"Environment diff",text:"Compares this execution’s environment (Playwright version, browser config, locale, viewport, CI provider, …) against the same test’s last passing run on the same browser. Only changed keys are shown — an empty diff rules out environment drift as the cause."},"visual-diff":{title:"Visual diff",text:"Pixel-compares the failing screenshot against the same test’s last passing screenshot (same browser). Red pixels in the overlay mark what changed. When the two screenshots have different dimensions the ratio is flagged as unreliable."},"dom-snapshot":{title:"DOM snapshot",text:"The page’s HTML around the failing action, rendered from the uploaded Playwright trace — nothing extra is captured. Input values, inline handlers and script bodies are removed; token-shaped strings are masked."},"page-state":{title:"App state at test end",text:"URL, history state, storage key names + value lengths, and cookie names + flags captured when the test ended. Values are never captured. Disable with the reporter’s capturePageState option.",doc:"capture-fixtures"}};function s(e){return t[e].envVars??[]}export{t as H,s as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./C_eXufkv.js";import{d as b,o as s,e as y,f as d,c as o,F as r,z as u,b as p,a1 as h,i as m,g as n,t as l,v as x}from"./BdQ7kfxJ.js";const w={key:0,class:"flex gap-0.5 h-2.5 w-full min-w-30 overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-700"},g={key:1,class:"text-xs text-zinc-400 dark:text-zinc-500 italic"},v={class:"min-w-52 space-y-1.5 rounded-md bg-zinc-900 px-3 py-2 text-sm shadow-lg"},z={class:"font-semibold text-white"},B={class:"text-white"},C={class:"ml-4 tabular-nums font-medium text-white"},F={class:"ml-auto tabular-nums text-zinc-300 text-xs"},N=b({__name:"TestStatusBar",props:{passed:{},failed:{},skipped:{},flaky:{},total:{},didNotRun:{}},setup(i){const t=i,c=x(()=>t.total?[{key:"passed",label:"Passed",count:t.passed-t.flaky,color:"bg-emerald-500"},{key:"failed",label:"Failed",count:t.failed,color:"bg-rose-500"},{key:"flaky",label:"Flaky",count:t.flaky,color:"bg-purple-500"},{key:"skipped",label:"Skipped",count:t.skipped,color:"bg-zinc-400"},{key:"didNotRun",label:"Didn't run",count:t.didNotRun??0,color:"bg-amber-300 dark:bg-amber-700"}].filter(a=>a.count>0).map(a=>({...a,widthPct:a.count/t.total*100,displayPct:(a.count/t.total*100).toFixed(1)})):[]);return(_,a)=>{const k=f;return s(),y(k,{ui:{content:"overflow-visible !p-0"}},{content:d(()=>[n("div",v,[n("div",z,l(i.total)+" tests total",1),(s(!0),o(r,null,u(p(c),e=>(s(),o("div",{key:e.key,class:"flex items-center gap-2 whitespace-nowrap"},[n("span",{class:m([e.color,"inline-block h-2.5 w-2.5 shrink-0 rounded-sm"])},null,2),n("span",B,l(e.label),1),n("span",C,l(e.count),1),n("span",F,l(e.displayPct)+"%",1)]))),128))])]),default:d(()=>[i.total>0?(s(),o("div",w,[(s(!0),o(r,null,u(p(c),e=>(s(),o("div",{key:e.key,class:m([e.color,"h-full transition-all"]),style:h({width:e.widthPct+"%"})},null,6))),128))])):(s(),o("div",g,"No tests"))]),_:1})}}}),R=Object.assign(N,{__name:"TestStatusBar"});export{R as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./BV8EzO8q.js";import{_ as b}from"./B7zo6PK8.js";import{_ as h}from"./DxPZIuWy.js";import{_ as j,a as v}from"./B7uPoZ7T.js";import{_ as x}from"./B6djubIK.js";import{d as $,u as w,w as y,s as C,e as P,f as a,v as B,o as N,g,h as e,b as o,r as k}from"./BdQ7kfxJ.js";import{u as D}from"./DTtizz85.js";import"./Bo73sAu8.js";import"./D0XWJGhG.js";import"./i7znB42v.js";import"./r6zkA1SE.js";import"./Bh2WA4IJ.js";import"./C2hIM5f9.js";import"./CfV2N201.js";import"./CZ6WR7uw.js";import"./BnhWd06P.js";import"./C_eXufkv.js";import"./LWIyaZKe.js";import"./DwZS0oRm.js";import"./CsGsLxHg.js";import"./CPrVhXJk.js";import"./B4NjylBn.js";import"./CrZhoZuI.js";import"./BL8cYWsR.js";import"./CLrLFf3s.js";import"./EJllK0wm.js";import"./BOn5q0rT.js";import"./CrsaY0R_.js";import"./Bg63qh8W.js";import"./HGYIpJtg.js";import"./Bb_1uAHn.js";const R={class:"p-4"},lo=$({__name:"test-cases",async setup(T){let r,n;const i=w(),s=String(i.params.id),{data:t}=([r,n]=y(()=>D(`/api/projects/${s}`,"$GBv2haQFFX")),r=await r,n(),r),c=k(null);return C(B(()=>({title:`${t.value?.label||t.value?.name||"Project"} — Test cases — Piwi Dashboard`}))),(F,U)=>{const m=f,p=b,_=h,l=v,u=x,d=j;return N(),P(d,{id:"project-test-cases"},{header:a(()=>[e(l,null,{leading:a(()=>[e(m),e(p,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},{label:o(t)?.label||o(t)?.name||"Project",to:`/projects/${o(s)}`},{label:"Test cases"}]},null,8,["items"])]),right:a(()=>[e(_,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>o(c)?.refresh()}]},null,8,["actions"])]),_:1})]),body:a(()=>[g("div",R,[e(u,{ref_key:"tableRef",ref:c,"project-id":o(s),"project-name":o(t)?.name,"sync-query":""},null,8,["project-id","project-name"])])]),_:1})}}});export{lo as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as os}from"./BV8EzO8q.js";import{d as me,o as s,c as a,h as l,_ as ke,g as n,A as ls,e as k,G as it,f as i,k as _,t as o,b as e,z as oe,j as Te,F as H,l as m,B as rt,q as bt,C as wt,am as is,P as xt,x as je,an as yt,m as $e,H as Ke,E as ut,i as Q,v as F,r as G,M as De,a1 as _e,D as Le,n as qe,K as tt,a as ge,ao as ht,I as rs,L as us,u as We,w as Ee,aj as cs,ad as _t,p as ds,s as ms}from"./BdQ7kfxJ.js";import{_ as $t}from"./C_eXufkv.js";import{_ as fs}from"./B7zo6PK8.js";import{_ as ps}from"./DxPZIuWy.js";import{_ as gs,a as xs}from"./B7uPoZ7T.js";import{_ as ys,a as hs,b as vs,c as ks}from"./BdyXNI2_.js";import{_ as bs}from"./BnhWd06P.js";import{_ as He}from"./LWIyaZKe.js";import{_ as Se}from"./CrsaY0R_.js";import{_ as Tt}from"./G2J1dVVb.js";import{_ as ws}from"./xKX9IHe3.js";import{_ as _s}from"./D56yp7m9.js";import{A as Ct,q as Rt,p as It,a as ct,f as $s,i as St,n as Ts,B as nt,C as at,l as Ue,D as zt,k as ot,o as Cs,d as Rs,c as Is,j as ce}from"./DwZS0oRm.js";import{f as Xe}from"./D-c8ZSws.js";import{_ as Ss}from"./BsGvSoPC.js";import{_ as dt}from"./HGYIpJtg.js";import{_ as zs}from"./C5X_N4R7.js";import{b as Ft}from"./CrZhoZuI.js";import{a as mt,u as Oe}from"./DTtizz85.js";import{_ as Fs}from"./D0XWJGhG.js";import{_ as jt}from"./Bp2zrrkV.js";import{_ as js}from"./r6zkA1SE.js";import{_ as Pt}from"./CPrVhXJk.js";import{_ as Ps}from"./CsGsLxHg.js";import{_ as Dt}from"./D0TpBpCc.js";import{u as Ds}from"./Bb_1uAHn.js";import{_ as Ns}from"./C2hIM5f9.js";import{_ as Nt}from"./Bh2WA4IJ.js";import{_ as Bt}from"./CfV2N201.js";import{_ as Bs}from"./BOn5q0rT.js";import{_ as ft}from"./CLrLFf3s.js";import{_ as Mt}from"./DPPhFZOr.js";import{_ as Ms}from"./CFKbXp6V.js";import{_ as At}from"./CK2AMqz_.js";import{_ as As}from"./CUWrUpTl.js";import{_ as Us}from"./DzJa19LG.js";import{_ as Ls}from"./CZ6WR7uw.js";import{u as Es}from"./DR1jFptD.js";import{_ as Os}from"./vcSKeWsW.js";import{u as Ks,s as Ws}from"./BY9A1aOT.js";import"./Bo73sAu8.js";import"./DadksxQ9.js";import"./WZXZeGYt.js";import"./Bg63qh8W.js";import"./BilJoEne.js";import"./CyWOerIG.js";import"./CxwnFFD0.js";import"./9oKY4Zb7.js";import"./i7znB42v.js";import"./BO4sfkbw.js";import"./rPG7kzfL.js";import"./Gn1Ns00e.js";import"./BL8cYWsR.js";import"./dg6uXTyR.js";import"./DKgbchez.js";import"./B4NjylBn.js";import"./EJllK0wm.js";import"./Sx5-c-bZ.js";import"./B8tezsWe.js";const Hs={key:0,class:"inline-flex items-center gap-2 text-info"},Vs={type:"button",class:"inline-flex items-center gap-1.5 rounded-md px-1.5 py-0.5 -my-0.5 -ml-1.5 text-muted hover:text-default hover:bg-elevated/60 transition-colors cursor-pointer",title:"Stored reports & artifacts"},Gs={class:"tabular-nums whitespace-nowrap"},Xs={class:"text-dimmed"},qs={class:"p-3 w-72 space-y-2"},Ys={class:"text-xs font-medium text-muted inline-flex items-center gap-1"},Js={class:"text-xs tabular-nums text-dimmed shrink-0"},Zs={key:0,class:"flex items-center justify-between gap-2 text-sm border-t border-default pt-2"},Qs={class:"truncate"},en={class:"text-xs tabular-nums text-dimmed shrink-0"},tn=me({__name:"RunStorageChip",props:{storageStats:{},reports:{},finalizing:{type:Boolean}},setup(t){const g=rt();return(y,I)=>{const $=ke,c=ls,R=Se,r=Te,h=it;return t.finalizing?(s(),a("div",Hs,[l($,{name:"i-lucide-upload",class:"size-3.5 shrink-0 animate-pulse"}),I[0]||(I[0]=n("span",{class:"text-xs font-medium whitespace-nowrap"},"Uploading reports & traces…",-1)),l(c,{value:null,size:"sm",color:"info",class:"w-24 rounded-full animate-pulse"})])):t.storageStats?.totalFiles?(s(),k(h,{key:1},{content:i(()=>[n("div",qs,[n("p",Ys,[I[1]||(I[1]=_(" Stored artifacts ",-1)),l(R,{topic:"run.reports"})]),(s(!0),a(H,null,oe(t.reports,M=>(s(),a("div",{key:`${M.type}-${M.path}`,class:"flex items-center justify-between gap-2 min-w-0"},[l(r,{href:("fileApiUrl"in y?y.fileApiUrl:e(Rt))(M.path,null,e(g).app?.baseURL),icon:("reportIcon"in y?y.reportIcon:e(Ct))(M.type),target:"_blank",size:"xs",variant:"outline",class:"min-w-0",ui:{label:"truncate"}},{default:i(()=>[_(o(M.label),1)]),_:2},1032,["href","icon"]),n("span",Js,o(("formatBytes"in y?y.formatBytes:e(Xe))(M.size)),1)]))),128)),t.storageStats.testCaseFilesCount>0?(s(),a("div",Zs,[n("span",Qs,"Test files ("+o(t.storageStats.testCaseFilesCount)+")",1),n("span",en,o(("formatBytes"in y?y.formatBytes:e(Xe))(t.storageStats.testCaseFilesSize)),1)])):m("",!0)])]),default:i(()=>[n("button",Vs,[l($,{name:"i-lucide-database",class:"size-3.5 text-dimmed shrink-0"}),n("span",Gs,[_(o(("formatBytes"in y?y.formatBytes:e(Xe))(t.storageStats.totalSize))+" ",1),n("span",Xs,"· "+o(t.storageStats.totalFiles)+" file"+o(t.storageStats.totalFiles===1?"":"s"),1)]),l($,{name:"i-lucide-chevron-down",class:"size-3 text-dimmed shrink-0"})])]),_:1})):m("",!0)}}}),sn=Object.assign(tn,{__name:"RunStorageChip"}),nn={class:"flex items-center gap-3 flex-1 min-w-0 justify-between"},an={class:"flex items-center gap-3 min-w-0"},on={class:"text-sm font-semibold truncate flex items-center gap-1"},ln={class:"flex items-center gap-3 shrink-0 max-sm:hidden"},rn={class:"text-xs text-zinc-500 tabular-nums whitespace-nowrap"},un={class:"text-zinc-700 dark:text-zinc-300"},cn={class:"text-xs text-emerald-600 dark:text-emerald-400 tabular-nums whitespace-nowrap"},dn={class:"text-xs text-rose-600 dark:text-rose-400 tabular-nums whitespace-nowrap"},mn={class:"text-xs text-zinc-500 tabular-nums whitespace-nowrap"},fn={class:"text-xs text-amber-600 dark:text-amber-400 tabular-nums whitespace-nowrap",title:"Tests that never ran (maxFailures cutoff or a serial-group failure)"},pn={class:"text-xs text-orange-600 dark:text-orange-400 tabular-nums whitespace-nowrap"},gn={class:"@container"},xn={class:"space-y-3"},yn={class:"flex items-start justify-between gap-x-3 gap-y-2 flex-wrap pr-8"},hn={class:"min-w-0 flex-1 basis-64"},vn={class:"flex items-center gap-2 flex-wrap"},kn={class:"text-base font-bold shrink-0 flex items-center gap-1"},bn={class:"mt-1 text-xs text-muted flex items-center gap-1.5 flex-wrap"},wn={class:"text-dimmed"},_n={class:"flex items-center gap-1.5 shrink-0"},$n={class:"p-2 space-y-1 min-w-32"},Tn=["onClick"],Cn={class:"hidden @2xl:inline"},Rn={class:"text-xl font-bold mt-0.5"},In={class:"relative"},Sn={class:"text-xl font-bold mt-0.5 text-emerald-600 dark:text-emerald-400"},zn={class:"text-xl font-bold mt-0.5 text-rose-600 dark:text-rose-400"},Fn={class:"text-xl font-bold mt-0.5 text-zinc-600 dark:text-zinc-400"},jn={class:"text-xl font-bold mt-0.5 text-amber-600 dark:text-amber-400"},Pn={key:0,class:"flex items-center gap-x-4 gap-y-1.5 flex-wrap"},Dn={class:"flex-1 basis-60 min-w-44 max-w-xl"},Nn={class:"flex items-center flex-wrap gap-x-3 gap-y-1 text-xs shrink-0"},Bn={class:"flex items-center gap-1"},Mn={key:0,class:"flex items-center gap-1"},An={key:1,class:"flex items-center gap-1"},Un={key:2,class:"flex items-center gap-1"},Ln={key:0,class:"rounded-full border border-default px-2 py-0.5 text-xs bg-elevated/60"},En={key:1},On=["href"],Kn={key:1},Wn={class:"text-muted"},Hn={key:0,class:"font-medium"},Vn=["title"],Gn={key:2,class:"text-muted"},Xn=["title"],qn={class:"text-muted whitespace-nowrap"},Yn={class:"text-muted"},Jn={key:0,class:"mt-2"},Zn={class:"bg-zinc-50 dark:bg-zinc-900 p-2.5 rounded text-xs font-mono overflow-x-auto max-h-48 overflow-y-auto"},Qn={class:"m-0"},ea=me({__name:"RunSummary",props:{testRun:{},displayProgress:{},allReports:{},showCustomData:{type:Boolean},finalizing:{type:Boolean},activeFilter:{},totalWastedTime:{}},emits:["update:showCustomData","filter-status","label-updated"],setup(t,{emit:g}){const y=t,I=g,$=bt(),c=rt(),R=F(()=>y.testRun?.storageStats),r=F(()=>y.testRun?.metadata?.ci),h=F(()=>y.testRun?.metadata?.scm),M=F(()=>y.testRun?.metadata?.tags),A=F(()=>y.testRun?.metadata?.customData),P=F(()=>!!(r.value||y.testRun?.environment)),z=F(()=>!!(y.testRun?.playwrightVersion||y.testRun?.reporterVersion)),D=F(()=>!!(R.value?.totalFiles||y.finalizing)),K=F(()=>y.allReports[0]??null),{copy:Y,copied:f}=mt(),C=G("file-line"),x=G(!1),u=G(!1);wt(()=>{u.value=!!is()});const d=F(()=>y.testRun?.testCases?y.testRun.testCases.filter(U=>U.status==="failed"||U.status==="timedout").map(U=>({filePath:(U.filePath||U.location?.split(":")[0])??"",title:U.title,line:U.location&&parseInt(U.location.split(":")[1]??"",10)||null,projectName:U.browser?.projectName||null})):[]);function L(){return Ft(d.value,{mode:C.value})}async function w(){const U=L();U&&(x.value=!0,await Y(U,{toast:"Retry command copied"}),setTimeout(()=>{x.value=!1},2e3))}const W=F(()=>x.value?"Copied!":St(L()));function X(){const U=y.testRun;if(!U)return"";const S=U.status==="passed"?"✅":U.status==="failed"?"❌":U.status==="running"?"🔄":"⚠️",v=U.label?` — ${U.label}`:"",j=U.project?.label??U.project?.name??"",N=U.totalTests??0,b=U.passedTests??0,Z=U.failedTests??0,te=U.skippedTests??0,se=U.didNotRunTests??0,fe=U.flakyTests??0,be=$s(U.duration),le=fe>0?` · ${fe} flaky`:"",ve=se>0?` · ${se} didn't run`:"";return[`*Run #${U.id}*${v}`,`Status: ${S} ${U.status} | Project: ${j}`,`Tests: ${N} total · ${b} passed · ${Z} failed · ${te} skipped${ve}${le}`,`Duration: ${be}`].join(`
|
|
2
|
-
`)}const T=G(""),J=G(!1),ne=G(!1);let ee=!1;const ie=G(null);function V(){ee=!1,T.value=y.testRun?.label??"",J.value=!0,De(()=>ie.value?.focus())}async function B(){if(ne.value)return;if(ee){ee=!1;return}const U=y.testRun;if(U){ne.value=!0;try{await $fetch(`/api/test-runs/${U.id}`,{method:"PATCH",body:{label:T.value||null}}),J.value=!1,I("label-updated")}catch(S){const v=S&&typeof S=="object"&&"data"in S?S.data?.message:"Failed to save label";$.add({title:"Error",description:v||"Failed to save label",color:"error"})}finally{ne.value=!1}}}function re(){ee=!0,J.value=!1}function xe(U){U.key==="Enter"?B():U.key==="Escape"&&re()}return(U,S)=>{const v=ys,j=ke,N=$e,b=bs,Z=He,te=Se,se=Tt,fe=Ke,be=$t,le=ut,ve=Te,ze=it,Fe=ws,ye=_s,de=vs,we=sn,Re=Ss,Ne=hs,Ie=dt,p=zs;return s(),k(p,{"storage-key":"test-run"},{folded:i(()=>[n("div",nn,[n("div",an,[l(v,{status:t.testRun?.status??"",size:"sm"},null,8,["status"]),n("span",on,[_(" Run #"+o(t.testRun?.id)+" ",1),e(J)?(s(),a(H,{key:0},[xt(n("input",{ref_key:"labelInputRef",ref:ie,"onUpdate:modelValue":S[0]||(S[0]=ae=>je(T)?T.value=ae:null),type:"text",placeholder:"Add a label...",class:"inline-block w-40 text-sm font-normal border-b border-dashed border-zinc-400 bg-transparent outline-none focus:border-primary px-0.5 py-0",onKeydown:xe,onBlur:B},null,544),[[yt,e(T)]]),e(ne)?(s(),k(j,{key:0,name:"i-lucide-loader-circle",class:"size-3.5 text-zinc-400 animate-spin shrink-0"})):m("",!0)],64)):(s(),a(H,{key:1},[t.testRun?.label?(s(),a("span",{key:0,class:"font-normal text-zinc-500 ml-1.5 cursor-pointer hover:text-zinc-700 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400",onClick:V},"— "+o(t.testRun.label),1)):(s(),a("button",{key:1,class:"text-xs text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400 ml-1",title:"Add a label",onClick:V}," + label "))],64))]),t.testRun?.shardTotal&&t.testRun.shardTotal>1?(s(),k(N,{key:0,color:"neutral",variant:"soft",size:"sm",class:"shrink-0",title:`Shard ${t.testRun.shardsFinished??0}/${t.testRun.shardTotal}`},{default:i(()=>[l(j,{name:"i-lucide-layout-grid",class:"size-3 mr-1"}),_(" "+o(t.testRun.shardsFinished??0)+"/"+o(t.testRun.shardTotal),1)]),_:1},8,["title"])):m("",!0)]),n("div",ln,[n("span",rn,[S[12]||(S[12]=_(" T: ",-1)),n("strong",un,o(t.displayProgress?.totalTests??t.testRun?.totalTests??0),1)]),n("span",cn,[S[13]||(S[13]=_(" P: ",-1)),n("strong",null,o(t.displayProgress?.passedTests??t.testRun?.passedTests??0),1)]),n("span",dn,[S[14]||(S[14]=_(" F: ",-1)),n("strong",null,o(t.displayProgress?.failedTests??t.testRun?.failedTests??0),1)]),n("span",mn,[S[15]||(S[15]=_(" S: ",-1)),n("strong",null,o(t.displayProgress?.skippedTests??t.testRun?.skippedTests??0),1)]),n("span",fn,[S[16]||(S[16]=_(" DNR: ",-1)),n("strong",null,o(t.testRun?.didNotRunTests??0),1)]),n("span",pn,[S[17]||(S[17]=_(" Fl: ",-1)),n("strong",null,o(t.testRun?.flakyTests??0),1)]),l(b,{passed:t.displayProgress?.passedTests??t.testRun?.passedTests??0,failed:t.displayProgress?.failedTests??t.testRun?.failedTests??0,skipped:t.displayProgress?.skippedTests??t.testRun?.skippedTests??0,flaky:t.testRun?.flakyTests??0,"did-not-run":t.testRun?.didNotRunTests??0,total:t.displayProgress?.totalTests??t.testRun?.totalTests??0},null,8,["passed","failed","skipped","flaky","did-not-run","total"]),l(Z,{ms:t.testRun?.duration,class:"text-xs text-zinc-400"},null,8,["ms"])])])]),default:i(()=>[n("div",gn,[l(Ie,{class:"shadow-xs",ui:{footer:"px-4 py-2.5 sm:px-4 bg-muted/30"}},{footer:i(()=>[l(Ne,null,{default:i(()=>[e(P)?(s(),k(de,{key:0,label:"CI & environment",icon:"i-lucide-cloud",help:"run.ci-env"},{default:i(()=>[t.testRun?.environment?(s(),a("span",Ln,o(t.testRun.environment),1)):m("",!0),e(r)?.provider?(s(),a("span",En,o(e(r).provider),1)):m("",!0),e(r)?.buildNumber||e(r)?.buildUrl?(s(),a(H,{key:2},[S[29]||(S[29]=n("span",{class:"text-dimmed"},"·",-1)),e(r)?.buildUrl?(s(),a("a",{key:0,href:e(r).buildUrl,target:"_blank",class:"text-primary hover:underline"},o(e(r)?.buildNumber?`Build #${e(r).buildNumber}`:"View build"),9,On)):(s(),a("span",Kn,"Build #"+o(e(r).buildNumber),1))],64)):m("",!0),e(r)?.workflow||e(r)?.jobName?(s(),a(H,{key:3},[S[30]||(S[30]=n("span",{class:"text-dimmed"},"·",-1)),n("span",Wn,[e(r)?.workflow?(s(),a(H,{key:0},[_(o(e(r).workflow),1)],64)):m("",!0),e(r)?.workflow&&e(r)?.jobName?(s(),a(H,{key:1},[_(" · ")],64)):m("",!0),e(r)?.jobName?(s(),a(H,{key:2},[_(o(e(r).jobName),1)],64)):m("",!0)])],64)):m("",!0)]),_:1})):m("",!0),e(h)?(s(),k(de,{key:1,label:"Source",icon:"i-lucide-git-branch"},{default:i(()=>[e(h).branch?(s(),a("span",Hn,o(e(h).branch),1)):m("",!0),e(h).commit?(s(),a("code",{key:1,class:"text-xs font-mono bg-zinc-100 dark:bg-zinc-800 px-1 py-0.5 rounded",title:e(h).commit},o(e(h).commit.length>=8?e(h).commit.substring(0,8):e(h).commit),9,Vn)):m("",!0),e(h).author?(s(),a("span",Gn,o(e(h).author),1)):m("",!0),e(h).commitMessage?(s(),a("span",{key:3,class:"text-xs text-dimmed truncate max-w-[40ch]",title:e(h).commitMessage},o(e(h).commitMessage),9,Xn)):m("",!0)]),_:1})):m("",!0),e(z)?(s(),k(de,{key:2,label:"Tooling versions",icon:"i-lucide-tag"},{default:i(()=>[n("span",qn,[t.testRun?.playwrightVersion?(s(),a(H,{key:0},[_("Playwright v"+o(t.testRun.playwrightVersion),1)],64)):m("",!0),t.testRun?.playwrightVersion&&t.testRun?.reporterVersion?(s(),a(H,{key:1},[_(" · ")],64)):m("",!0),t.testRun?.reporterVersion?(s(),a(H,{key:2},[_("Piwi v"+o(t.testRun.reporterVersion),1)],64)):m("",!0)])]),_:1})):m("",!0),e(M)?.length?(s(),k(de,{key:3,label:"Tags",icon:"i-lucide-tags"},{default:i(()=>[(s(!0),a(H,null,oe(e(M),ae=>(s(),k(N,{key:ae,color:"neutral",variant:"soft",size:"sm"},{default:i(()=>[_(o(ae),1)]),_:2},1024))),128))]),_:1})):m("",!0),t.testRun?.metadata?.relatedIssue?(s(),k(de,{key:4,label:"Related issue",icon:"i-lucide-bookmark"},{default:i(()=>[n("span",Yn,o(t.testRun.metadata.relatedIssue),1)]),_:1})):m("",!0),e(D)?(s(),k(de,{key:5,label:"Storage"},{default:i(()=>[l(we,{"storage-stats":e(R),reports:t.allReports,finalizing:t.finalizing},null,8,["storage-stats","reports","finalizing"])]),_:1})):m("",!0),l(de,{label:"Links",icon:"i-lucide-link",help:"run.metadata"},{default:i(()=>[l(Re,{"entity-type":"test_run","entity-id":t.testRun.id,links:t.testRun.links??null,onUpdated:S[10]||(S[10]=ae=>U.$emit("label-updated"))},null,8,["entity-id","links"])]),_:1}),e(A)?(s(),k(de,{key:6,label:"Custom data"},{default:i(()=>[l(ve,{size:"xs",variant:"ghost",color:"neutral",icon:t.showCustomData?"i-lucide-chevron-up":"i-lucide-chevron-down",onClick:S[11]||(S[11]=ae=>I("update:showCustomData",!t.showCustomData))},{default:i(()=>[...S[31]||(S[31]=[_(" Custom data ",-1)])]),_:1},8,["icon"])]),_:1})):m("",!0)]),_:1}),t.showCustomData&&e(A)?(s(),a("div",Jn,[n("div",Zn,[n("pre",Qn,o(JSON.stringify(e(A),null,2)),1)])])):m("",!0)]),default:i(()=>[n("div",xn,[n("div",yn,[n("div",hn,[n("div",vn,[l(v,{status:t.testRun?.status??""},null,8,["status"]),n("h2",kn,[_(" Run #"+o(t.testRun?.id)+" ",1),e(J)?(s(),a(H,{key:0},[xt(n("input",{ref_key:"labelInputRef",ref:ie,"onUpdate:modelValue":S[1]||(S[1]=ae=>je(T)?T.value=ae:null),type:"text",placeholder:"Add a label...",class:"inline-block w-48 text-sm font-normal border-b border-dashed border-zinc-400 bg-transparent outline-none focus:border-primary px-0.5 py-0",onKeydown:xe,onBlur:B},null,544),[[yt,e(T)]]),e(ne)?(s(),k(j,{key:0,name:"i-lucide-loader-circle",class:"size-3.5 text-zinc-400 animate-spin shrink-0"})):m("",!0)],64)):(s(),a(H,{key:1},[t.testRun?.label?(s(),a("span",{key:0,class:"font-normal text-zinc-500 ml-1.5 cursor-pointer hover:text-zinc-700 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400",onClick:V},"— "+o(t.testRun.label),1)):(s(),a("button",{key:1,class:"text-xs text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400 ml-1.5",title:"Add a label",onClick:V}," + label "))],64)),l(te,{topic:"run.summary"})]),t.testRun?.shardTotal&&t.testRun.shardTotal>1?(s(),k(N,{key:0,color:"neutral",variant:"soft",size:"sm",class:"shrink-0",title:`Shard ${t.testRun.shardsFinished??0}/${t.testRun.shardTotal}`},{default:i(()=>[l(j,{name:"i-lucide-layout-grid",class:"size-3 mr-1"}),_(" "+o(t.testRun.shardsFinished??0)+"/"+o(t.testRun.shardTotal),1)]),_:1},8,["title"])):m("",!0),t.testRun?.precedingMarker?(s(),k(be,{key:1,text:`This run started after: ${t.testRun.precedingMarker.label}`},{default:i(()=>[l(fe,{to:`/projects/${t.testRun.projectId}?tab=timeline`,class:"shrink-0 inline-flex items-center gap-1"},{default:i(()=>[S[18]||(S[18]=n("span",{class:"text-xs text-muted"},"After",-1)),l(se,{marker:t.testRun.precedingMarker,size:"xs"},null,8,["marker"])]),_:1},8,["to"])]),_:1},8,["text"])):m("",!0)]),n("p",bn,[n("span",null,"Started "+o(("prettyDateFormat"in U?U.prettyDateFormat:e(It))(t.testRun?.startTime)),1),l(le,null,{default:i(()=>[n("span",wn,"· "+o(("formatRelativeTime"in U?U.formatRelativeTime:e(ct))(t.testRun?.startTime)),1)]),_:1})])]),n("div",_n,[l(be,{text:e(f)?"Copied!":"Copy run summary"},{default:i(()=>[l(ve,{size:"xs",variant:"ghost",color:"neutral",icon:e(f)?"i-lucide-check":"i-lucide-clipboard","aria-label":"Copy run summary",class:"text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",onClick:S[2]||(S[2]=ae=>e(Y)(X(),{toast:"Run summary copied"}))},null,8,["icon"])]),_:1},8,["text"]),e(d).length>0&&!e(u)?(s(),k(ze,{key:0},{content:i(()=>[n("div",$n,[S[20]||(S[20]=n("p",{class:"text-xs font-medium text-zinc-500 px-2 py-1"},"Mode",-1)),(s(),a(H,null,oe(["file-line","grep","file"],ae=>n("button",{key:ae,class:Q(["w-full text-left px-2 py-1 text-sm rounded hover:bg-zinc-100 dark:hover:bg-zinc-800",e(C)===ae?"bg-primary/10 text-primary":""]),onClick:Be=>C.value=ae},o(ae==="file-line"?"File:line":ae==="grep"?"Title (grep)":"File only"),11,Tn)),64))])]),default:i(()=>[l(ve,{size:"xs",color:"warning",variant:"subtle",icon:e(x)?"i-lucide-check":"i-lucide-play",title:e(W),"aria-label":"Retry",onClick:S[3]||(S[3]=ae=>w())},{default:i(()=>[...S[19]||(S[19]=[n("span",{class:"hidden @2xl:inline"},"Retry",-1)])]),_:1},8,["icon","title"])]),_:1})):m("",!0),e(d).length>0?(s(),k(Fe,{key:1,"project-id":t.testRun?.project?.id,"project-label":t.testRun?.project?.label??t.testRun?.project?.name,cases:e(d)},null,8,["project-id","project-label","cases"])):m("",!0),e(K)?(s(),k(ve,{key:2,href:("fileApiUrl"in U?U.fileApiUrl:e(Rt))(e(K).path,null,e(c).app?.baseURL),icon:("reportIcon"in U?U.reportIcon:e(Ct))(e(K).type),target:"_blank",size:"xs",color:"primary",variant:"outline","aria-label":e(K).label,title:e(K).size?`${e(K).label} · ${("formatBytes"in U?U.formatBytes:e(Xe))(e(K).size)}`:e(K).label},{default:i(()=>[n("span",Cn,o(e(K).label),1)]),_:1},8,["href","icon","aria-label","title"])):m("",!0)])]),l(ye,{"min-tile-width":"7.5rem"},{default:i(()=>[n("button",{class:Q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="all"?"bg-accented ring-2 ring-zinc-400 dark:ring-zinc-500":"bg-elevated/60 hover:bg-elevated"]),onClick:S[4]||(S[4]=ae=>I("filter-status","all"))},[S[21]||(S[21]=n("p",{class:"text-xs font-medium text-zinc-500 uppercase tracking-wider"},"Total",-1)),n("p",Rn,o(t.displayProgress?.totalTests??t.testRun?.totalTests??0),1)],2),n("div",In,[n("button",{class:Q(["rounded-lg p-3 text-left w-full h-full transition-colors cursor-pointer",t.activeFilter==="passed"?"bg-emerald-100 dark:bg-emerald-900/30 ring-2 ring-emerald-400 dark:ring-emerald-600":"bg-emerald-50 dark:bg-emerald-900/20 hover:bg-emerald-100 dark:hover:bg-emerald-900/30"]),onClick:S[5]||(S[5]=ae=>I("filter-status","passed"))},[S[22]||(S[22]=n("p",{class:"text-xs font-medium text-emerald-700 dark:text-emerald-400 uppercase tracking-wider"}," Passed ",-1)),n("p",Sn,o(t.displayProgress?.passedTests??t.testRun?.passedTests??0),1)],2),(t.testRun?.flakyTests??0)>0?(s(),a("button",{key:0,class:Q(["absolute top-1.5 right-1.5 inline-flex items-center gap-0.5 rounded-full px-1.5 py-0.5 text-xs font-semibold leading-none tabular-nums transition-colors cursor-pointer",t.activeFilter==="flaky"?"bg-orange-200 dark:bg-orange-800/60 text-orange-800 dark:text-orange-200 ring-2 ring-orange-400 dark:ring-orange-600":"bg-orange-100 dark:bg-orange-900/40 text-orange-700 dark:text-orange-300 hover:bg-orange-200 dark:hover:bg-orange-800/60"]),title:"Flaky — passed only after a retry (a subset of passed). Click to filter.",onClick:S[6]||(S[6]=ae=>I("filter-status","flaky"))},[l(j,{name:"i-lucide-shuffle",class:"size-3"}),_(" "+o(t.testRun?.flakyTests??0),1)],2)):m("",!0)]),n("button",{class:Q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="failed"?"bg-rose-100 dark:bg-rose-900/30 ring-2 ring-rose-400 dark:ring-rose-600":"bg-rose-50 dark:bg-rose-900/20 hover:bg-rose-100 dark:hover:bg-rose-900/30"]),onClick:S[7]||(S[7]=ae=>I("filter-status","failed"))},[S[23]||(S[23]=n("p",{class:"text-xs font-medium text-rose-700 dark:text-rose-400 uppercase tracking-wider"},"Failed",-1)),n("p",zn,o(t.displayProgress?.failedTests??t.testRun?.failedTests??0),1)],2),n("button",{class:Q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="skipped"?"bg-accented ring-2 ring-zinc-400 dark:ring-zinc-500":"bg-elevated/60 hover:bg-elevated"]),onClick:S[8]||(S[8]=ae=>I("filter-status","skipped"))},[S[24]||(S[24]=n("p",{class:"text-xs font-medium text-zinc-500 uppercase tracking-wider"},"Skipped",-1)),n("p",Fn,o(t.displayProgress?.skippedTests??t.testRun?.skippedTests??0),1)],2),n("button",{class:Q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="didnotrun"?"bg-amber-100 dark:bg-amber-900/30 ring-2 ring-amber-400 dark:ring-amber-600":"bg-amber-50 dark:bg-amber-900/20 hover:bg-amber-100 dark:hover:bg-amber-900/30"]),title:"Tests that never ran (maxFailures cutoff or a serial-group failure)",onClick:S[9]||(S[9]=ae=>I("filter-status","didnotrun"))},[S[25]||(S[25]=n("p",{class:"text-xs font-medium text-amber-700 dark:text-amber-400 uppercase tracking-wider"},"Didn't run",-1)),n("p",jn,o(t.testRun?.didNotRunTests??0),1)],2)]),_:1}),t.testRun?(s(),a("div",Pn,[n("div",Dn,[l(b,{passed:t.displayProgress?.passedTests??t.testRun?.passedTests??0,failed:t.displayProgress?.failedTests??t.testRun?.failedTests??0,skipped:t.displayProgress?.skippedTests??t.testRun?.skippedTests??0,flaky:t.testRun?.flakyTests??0,"did-not-run":t.testRun?.didNotRunTests??0,total:t.displayProgress?.totalTests??t.testRun?.totalTests??0},null,8,["passed","failed","skipped","flaky","did-not-run","total"])]),n("div",Nn,[n("div",Bn,[l(j,{name:"i-lucide-clock",class:"size-3.5 text-zinc-400"}),l(Z,{ms:t.testRun?.duration,class:"font-medium"},null,8,["ms"])]),t.testRun?.avgTestDuration?(s(),a("div",Mn,[l(j,{name:"i-lucide-gauge",class:"size-3.5 text-zinc-400"}),S[26]||(S[26]=n("span",{class:"text-zinc-500"},"Avg",-1)),l(Z,{ms:t.testRun.avgTestDuration,class:"font-medium"},null,8,["ms"])])):m("",!0),t.testRun?.p90TestDuration?(s(),a("div",An,[l(j,{name:"i-lucide-arrow-up-right",class:"size-3.5 text-orange-500"}),S[27]||(S[27]=n("span",{class:"text-zinc-500"},"P90",-1)),l(Z,{ms:t.testRun.p90TestDuration,class:"font-medium text-orange-600 dark:text-orange-400","unit-class":"opacity-60"},null,8,["ms"])])):m("",!0),t.totalWastedTime&&t.totalWastedTime>0?(s(),a("div",Un,[l(j,{name:"i-lucide-clock",class:"size-3.5 text-amber-500"}),S[28]||(S[28]=n("span",{class:"text-zinc-500"},"Wasted",-1)),l(Z,{ms:t.totalWastedTime,class:"font-medium text-amber-600 dark:text-amber-400","unit-class":"opacity-60"},null,8,["ms"])])):m("",!0)])])):m("",!0)])]),_:1})])]),_:1})}}}),ta=Object.assign(ea,{__name:"RunSummary"}),sa={key:0,class:"inline-flex items-center gap-1 flex-wrap"},na=me({__name:"TestRowBadges",props:{mode:{default:null},isNewRegression:{type:[Boolean,null],default:!1},isNewFlaky:{type:[Boolean,null],default:!1},annotations:{default:null},tags:{default:null},meta:{default:null},maxTags:{default:0}},setup(t){const g=t;function y(h){return h==="fixme"||h==="slow"?"warning":h==="fail"?"error":h==="skip"?"neutral":h==="tag"?"primary":"info"}function I(h){switch(h){case"fixme":return"i-lucide-wrench";case"skip":return"i-lucide-skip-forward";case"slow":return"i-lucide-timer";case"fail":return"i-lucide-x-circle";case"tag":return"i-lucide-tag";default:return null}}function $(h){return h.type==="tag"?h.description??h.type:h.type}const c=F(()=>(g.annotations??[]).filter(h=>!Ts(h.type))),R=F(()=>!!((g.tags?.length??0)>0||g.meta?.owner||g.meta?.priority||g.meta?.feature||g.meta?.link)),r=F(()=>g.mode==="parallel"||g.mode==="serial"||!!g.isNewRegression||!!g.isNewFlaky||c.value.length>0||R.value);return(h,M)=>{const A=$e,P=ke,z=Ps;return e(r)?(s(),a("div",sa,[t.mode==="parallel"?(s(),k(A,{key:0,color:"success",variant:"soft",size:"xs",class:"shrink-0"},{default:i(()=>[...M[0]||(M[0]=[_("parallel",-1)])]),_:1})):m("",!0),t.mode==="serial"?(s(),k(A,{key:1,color:"warning",variant:"soft",size:"xs",class:"shrink-0"},{default:i(()=>[...M[1]||(M[1]=[_("serial",-1)])]),_:1})):m("",!0),t.isNewRegression?(s(),k(A,{key:2,color:"error",variant:"solid",size:"xs",class:"uppercase tracking-wider shrink-0",title:"First run in which this test failed"},{default:i(()=>[...M[2]||(M[2]=[_(" NEW ",-1)])]),_:1})):m("",!0),t.isNewFlaky?(s(),k(A,{key:3,color:"info",variant:"solid",size:"xs",class:"uppercase tracking-wider shrink-0",title:"First run in which this test was flaky"},{default:i(()=>[...M[3]||(M[3]=[_(" FLAKY ",-1)])]),_:1})):m("",!0),(s(!0),a(H,null,oe(e(c),D=>(s(),k(A,{key:`${D.type}:${D.description??""}`,color:y(D.type),variant:"soft",size:"xs",title:D.type!=="tag"?D.description??void 0:void 0,class:"shrink-0 gap-1"},{default:i(()=>[I(D.type)?(s(),k(P,{key:0,name:I(D.type),class:"size-2.5 shrink-0"},null,8,["name"])):m("",!0),_(" "+o($(D)),1)]),_:2},1032,["color","title"]))),128)),l(z,{tags:t.tags,meta:t.meta,"max-tags":t.maxTags},null,8,["tags","meta","max-tags"])])):m("",!0)}}}),Ut=Object.assign(na,{__name:"TestRowBadges"}),aa={class:"inline-flex items-center gap-1 min-w-0 text-xs text-info","data-testid":"live-step"},oa=["title"],la=me({__name:"TestRowLiveStep",props:{step:{}},setup(t){return(g,y)=>{const I=ke;return s(),a("span",aa,[t.step.status?(s(),k(I,{key:0,name:t.step.status==="failed"?"i-lucide-x":"i-lucide-check",class:Q([t.step.status==="failed"?"text-rose-500":"text-emerald-500","size-3 shrink-0"])},null,8,["name","class"])):(s(),k(I,{key:1,name:"i-lucide-loader-circle",class:"size-3 shrink-0 animate-spin"})),n("span",{class:"truncate",title:t.step.title},o(t.step.title),9,oa)])}}}),Lt=Object.assign(la,{__name:"TestRowLiveStep"});function lt(t,g){if(!t||g.status!=="running"||g.workerIndex==null)return null;const y=t[g.workerIndex];return!y||y.parentTitle&&y.parentTitle!==g.title?null:y}const ia={class:"rounded-lg border border-default bg-default text-sm flex flex-col flex-1 min-h-0"},ra={class:"flex items-center justify-end px-3 py-1.5 border-b border-default bg-elevated shrink-0"},ua=["disabled","title"],ca={class:"overflow-y-auto flex-1 min-h-0"},da=["onClick"],ma={key:1,class:"font-medium truncate min-w-0 text-muted"},fa={class:"flex items-center gap-1.5 sm:gap-2 shrink-0 tabular-nums"},pa=["title"],ga={class:"max-sm:sr-only"},xa=["href","title","onClick"],ya={class:"truncate"},ha={class:"flex items-center gap-1.5 sm:gap-2 shrink-0 ml-auto"},va={key:1,class:"text-xs text-info"},ka={key:4,class:"inline-flex items-center gap-0.5 text-xs text-amber-600 dark:text-amber-400",title:"Wasted in fixed waits"},ba={key:0,class:"text-center py-8 text-muted"},wa=me({__name:"TestCasesTree",props:{testCases:{},suites:{},hasFilter:{type:Boolean},highlightedCaseId:{},liveSteps:{},projectKey:{},projectName:{}},setup(t){const g=t,y=F(()=>{const f=new Map;for(const C of g.suites)f.set(`${C.filePath}${C.suitePath.join("")}`,C);return f});function I(f){return f==="timedOut"||f==="timedout"?"failed":f}const $=["failed","passed","skipped","didnotrun","running"];function c(f){return $.filter(C=>f[C]>0).map(C=>({key:C,count:f[C],label:Ue(C)}))}function R(f){const C={passed:0,failed:0,skipped:0,didnotrun:0,running:0,total:0};for(const x of f){const u=I(x.status);u in C&&C[u]++,C.total++}return C}const r=G(new Set),h=F(()=>r.value.size===0);function M(f){return g.hasFilter?!0:!r.value.has(f)}function A(f){if(g.hasFilter)return;const C=new Set(r.value);C.has(f)?C.delete(f):C.add(f),r.value=C}function P(){const f=[],C=new Map;for(const x of g.testCases){const u=x.filePath??"unknown";C.has(u)||C.set(u,[]),C.get(u).push(x)}for(const[x,u]of C){f.push(`file:${x}`);const d=new Set;for(const L of u){const w=L.suitePath??[];for(let W=1;W<=w.length;W++)d.add(`group:${x}${w.slice(0,W).join("")}`)}for(const L of d)f.push(L)}return f}function z(){r.value=new Set(P())}function D(){r.value=new Set}function K(f,C,x,u,d){const L=C.filter(X=>(X.suitePath??[]).length===u.length),w=C.filter(X=>(X.suitePath??[]).length>u.length),W=new Map;for(const X of w){const T=(X.suitePath??[])[u.length];W.has(T)||W.set(T,[]),W.get(T).push(X)}for(const[X,T]of W){const J=[...u,X],ne=`group:${x}${J.join("")}`,ee=y.value.get(`${x}${J.join("")}`);f.push({kind:"group",depth:d,key:ne,label:X,stats:R(T),mode:ee?.mode??"default",annotations:ee?.annotations??[]}),M(ne)&&K(f,T,x,J,d+1)}for(const X of L)f.push({kind:"test",depth:d,key:`test:${X.executionId}`,test:X})}const Y=F(()=>{const f=[],C=new Map;for(const x of g.testCases){const u=x.filePath??"unknown";C.has(u)||C.set(u,[]),C.get(u).push(x)}for(const[x,u]of[...C.entries()].sort(([d],[L])=>d.localeCompare(L))){const d=`file:${x}`;f.push({kind:"group",depth:0,key:d,label:x,stats:R(u)}),M(d)&&K(f,u,x,[],1)}return f});return(f,C)=>{const x=ke,u=Pt,d=Ut,L=Dt,w=Lt,W=He,X=$e;return s(),a("div",ia,[n("div",ra,[n("button",{class:Q(["flex items-center gap-1 text-xs transition-colors",t.hasFilter?"text-muted cursor-not-allowed opacity-50":"text-muted hover:text-default"]),disabled:t.hasFilter,title:t.hasFilter?"Clear filters to collapse/expand":h.value?"Collapse all":"Expand all",onClick:C[0]||(C[0]=T=>h.value?z():D())},[l(x,{name:h.value?"i-lucide-fold-vertical":"i-lucide-unfold-vertical",class:"size-3.5"},null,8,["name"]),_(" "+o(h.value?"Collapse all":"Expand all"),1)],10,ua)]),n("div",ca,[(s(!0),a(H,null,oe(Y.value,T=>(s(),a(H,{key:T.key},[T.kind==="group"?(s(),a("div",{key:0,class:Q(["flex items-center gap-2 py-2 pr-4 border-b border-default last:border-b-0 select-none sticky",[T.depth===0?"bg-elevated":"bg-default",!t.hasFilter&&"cursor-pointer"]]),style:_e({paddingLeft:`${T.depth*20+12}px`,top:`${T.depth*36}px`,zIndex:20-T.depth}),onClick:J=>A(T.key)},[l(x,{name:M(T.key)?"i-lucide-chevron-down":"i-lucide-chevron-right",class:"size-3.5 text-muted shrink-0"},null,8,["name"]),l(x,{name:T.depth===0?"i-lucide-file-code-2":"i-lucide-folder-open",class:Q(["size-4 shrink-0",T.depth===0?"text-blue-500":"text-amber-500"])},null,8,["name","class"]),T.depth===0?(s(),a("span",{key:0,class:"min-w-0",onClick:C[1]||(C[1]=Le(()=>{},["stop"]))},[l(u,{"file-path":T.label,"project-key":t.projectKey,"project-name":t.projectName,class:"font-medium text-default"},null,8,["file-path","project-key","project-name"])])):(s(),a("span",ma,o(T.label),1)),T.depth>0?(s(),k(d,{key:2,mode:T.mode,annotations:T.annotations,class:"shrink-0"},null,8,["mode","annotations"])):m("",!0),C[2]||(C[2]=n("div",{class:"flex-1"},null,-1)),n("div",fa,[(s(!0),a(H,null,oe(c(T.stats),J=>(s(),a("span",{key:J.key,class:Q(["text-xs inline-flex items-center gap-0.5",[("getStatusTextClass"in f?f.getStatusTextClass:e(nt))(J.key),J.key==="failed"?"font-medium":""]]),title:`${J.count} ${J.label}`},[l(x,{name:("getStatusIcon"in f?f.getStatusIcon:e(at))(J.key),class:"size-3 shrink-0 sm:hidden"},null,8,["name"]),_(" "+o(J.count),1),n("span",ga,o(J.label),1)],10,pa))),128))])],14,da)):(s(),a("div",{key:1,class:Q(["flex flex-wrap items-center gap-x-2 gap-y-1 pr-3 py-2 sm:py-1.5 border-b border-default last:border-b-0 hover:bg-zinc-50 dark:hover:bg-zinc-900/40 transition-colors",t.highlightedCaseId===T.test.executionId?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),style:_e({paddingLeft:`${T.depth*20+12}px`})},[l(L,{browser:T.test.browser,size:"sm"},null,8,["browser"]),l(x,{name:("getStatusIcon"in f?f.getStatusIcon:e(at))(T.test.status),class:Q(["size-4 shrink-0",[("getStatusTextClass"in f?f.getStatusTextClass:e(nt))(T.test.status),("isStatusInFlight"in f?f.isStatusInFlight:e(zt))(T.test.status)?"animate-spin":""]]),role:"img","aria-label":`Status: ${("formatStatusLabel"in f?f.formatStatusLabel:e(Ue))(T.test.status)}`,title:("formatStatusLabel"in f?f.formatStatusLabel:e(Ue))(T.test.status)},null,8,["name","class","aria-label","title"]),n("a",{href:`/test-run-cases/${T.test.executionId}`,class:"text-highlighted hover:text-primary hover:underline min-w-32 self-stretch flex items-center",title:T.test.title,onClick:Le(J=>("navigateTo"in f?f.navigateTo:e(qe))(`/test-run-cases/${T.test.executionId}`),["prevent"])},[n("span",ya,o(T.test.title),1)],8,xa),l(d,{"is-new-regression":!!T.test.isNewRegression,"is-new-flaky":!!T.test.isNewFlaky,annotations:T.test.testAnnotations,tags:T.test.tags,meta:T.test.testMeta,"max-tags":3,class:"shrink-0"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"]),n("div",ha,[T.test.status==="running"?(s(),a(H,{key:0},[("liveStepForCase"in f?f.liveStepForCase:e(lt))(t.liveSteps,T.test)?(s(),k(w,{key:0,step:("liveStepForCase"in f?f.liveStepForCase:e(lt))(t.liveSteps,T.test),class:"max-w-48 lg:max-w-96"},null,8,["step"])):(s(),a("span",va,"In progress..."))],64)):T.test.duration?(s(),k(W,{key:1,ms:T.test.duration,class:"text-xs text-muted"},null,8,["ms"])):m("",!0),T.test.workerIndex!=null?(s(),k(X,{key:2,color:"neutral",variant:"soft",size:"xs",class:"font-mono",title:`Worker ${T.test.workerIndex}`},{default:i(()=>[_(" w"+o(T.test.workerIndex),1)]),_:2},1032,["title"])):m("",!0),(T.test.retries??0)>0?(s(),k(X,{key:3,color:"warning",variant:"soft",size:"xs"},{default:i(()=>[_(o(T.test.retries)+"x ",1)]),_:2},1024)):m("",!0),T.test.wastedTimeMs?(s(),a("span",ka,[l(x,{name:"i-lucide-hourglass",class:"size-3 shrink-0"}),l(W,{ms:T.test.wastedTimeMs,"unit-class":"opacity-60","no-title":""},null,8,["ms"])])):m("",!0)])],6))],64))),128)),Y.value.length===0?(s(),a("div",ba,[l(x,{name:"i-lucide-search-x",class:"size-6 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),C[3]||(C[3]=n("p",{class:"text-sm"},"No test cases match your filters.",-1))])):m("",!0)])])}}}),_a=Object.assign(wa,{__name:"TestCasesTree"}),$a={class:"flex flex-col min-h-0"},Ta={class:"flex items-center rounded-md border border-default overflow-hidden"},Ca={key:0,class:"text-sm text-zinc-500 tabular-nums inline-flex items-center gap-1"},Ra={key:1,class:"text-sm text-zinc-500 tabular-nums inline-flex items-center gap-1"},Ia={class:"flex flex-wrap items-center gap-1"},Sa=["onClick"],za={key:2,class:"flex items-center gap-1 md:hidden"},Fa={key:0,class:"flex-1 min-h-0 max-lg:h-[70dvh] md:overflow-x-auto overflow-y-hidden rounded-lg border border-default bg-default"},ja=["aria-rowcount"],Pa=["aria-sort","aria-label","title","onClick"],Da={key:1,class:"truncate"},Na={class:"flex items-start gap-2"},Ba=["href","onClick"],Ma={class:"pl-6 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted"},Aa={key:1,class:"text-info"},Ua={key:4,class:"inline-flex items-center gap-0.5 text-amber-600 dark:text-amber-400",title:"Wasted in fixed waits"},La={class:"px-3 py-2 flex items-center min-w-0",role:"cell"},Ea={class:"px-3 py-2 min-w-0 space-y-0.5",role:"cell"},Oa={class:"flex items-center gap-1.5 min-w-0"},Ka=["href","title","onClick"],Wa={key:1,class:"min-w-0"},Ha={class:"px-3 py-2 flex items-center",role:"cell"},Va={class:"px-3 py-2 flex items-center whitespace-nowrap",role:"cell"},Ga={key:0,class:"text-info text-xs"},Xa={class:"px-3 py-2 flex items-center",role:"cell"},qa={class:"px-3 py-2 flex items-center tabular-nums",role:"cell"},Ya={key:0,class:"px-3 py-2 flex items-center whitespace-nowrap",role:"cell"},Ja={key:1,class:"text-zinc-400"},Za={class:"flex-1 min-h-0 flex items-center justify-center py-10 text-sm text-zinc-500"},Qa={key:1,class:"text-center py-10 text-zinc-500"},eo={key:2,class:"text-center py-10 text-zinc-500"},Ve="natural",to=me({__name:"TestCasesList",props:us({testCases:{},suites:{},isLive:{type:Boolean},liveSteps:{},failureClusterFilter:{},projectKey:{},projectName:{}},{search:{default:""},searchModifiers:{},activeStatuses:{default:()=>[]},activeStatusesModifiers:{},browserFilter:{default:"all"},browserFilterModifiers:{}}),emits:["update:search","update:activeStatuses","update:browserFilter"],setup(t,{expose:g}){const{treeView:y,setTreeView:I}=Ds("test-cases"),$=t,c=tt(t,"search"),R=tt(t,"activeStatuses"),r=tt(t,"browserFilter"),h=G(!1),M=G(!1),A=[{label:"Passed",value:"passed",color:"green"},{label:"Failed",value:"failed",color:"red"},{label:"Skipped",value:"skipped",color:"gray"},{label:"Didn't run",value:"didnotrun",color:"amber"},{label:"Flaky",value:"flaky",color:"orange"}];function P(v){R.value.indexOf(v)>=0?R.value=R.value.filter(N=>N!==v):R.value=[...R.value,v]}const z=F(()=>{const v=new Set;for(const N of $.testCases){const b=N.browser?.projectName;b&&v.add(b)}const j=[{label:"All browsers",value:"all"}];for(const N of[...v].sort())j.push({label:N,value:N});return j});function D(v){return v.status==="didnotrun"?Cs(v.didNotRunReason):Ue(v.status)}function K(v){return lt($.liveSteps,v)}function Y(v,j){return j==="failed"?v.status==="failed"||v.status==="timedOut"||v.status==="timedout":j==="flaky"?(v.retries??0)>0:v.status===j}const f=F(()=>{let v=$.testCases;if($.failureClusterFilter!=null&&(v=v.filter(j=>j.failureClusterId===$.failureClusterFilter)),R.value.length>0&&(v=v.filter(j=>R.value.some(N=>Y(j,N)))),r.value!=="all"&&(v=v.filter(j=>j.browser?.projectName===r.value)),c.value){const j=c.value.toLowerCase();v=v.filter(N=>N.title.toLowerCase().includes(j)||N.location&&N.location.toLowerCase().includes(j))}return h.value&&(v=v.filter(j=>j.isNewRegression)),M.value&&(v=v.filter(j=>j.isNewFlaky)),v}),C=G(null),x=G("asc");function u(v){C.value!==v?(C.value=v,x.value="asc"):x.value==="asc"?x.value="desc":C.value=null}function d(v){return C.value!==v?"i-lucide-chevrons-up-down":x.value==="asc"?"i-lucide-chevron-up":"i-lucide-chevron-down"}function L(v,j){switch(j){case"browser":return v.browser?.projectName??"";case"title":return v.title??"";case"status":return v.status??"";case"duration":return v.duration??0;case"workerIndex":return v.workerIndex??-1;case"retries":return v.retries??0;case"wastedTimeMs":return v.wastedTimeMs??0;default:return""}}const w=F(()=>{const v=f.value,j=C.value;if(!j)return v;const N=x.value==="asc"?1:-1;return[...v].sort((b,Z)=>{const te=L(b,j),se=L(Z,j);return typeof te=="number"&&typeof se=="number"?(te-se)*N:String(te).localeCompare(String(se))*N})}),W=F(()=>$.testCases.some(v=>(v.wastedTimeMs??0)>0)),X=F(()=>{const v=[{key:"browser",label:"Browser",sortable:!0,width:"3.25rem",align:"left",icon:"i-lucide-monitor"},{key:"title",label:"Test case",sortable:!0,width:"minmax(12rem, 3fr)",align:"left"},{key:"status",label:"Status",sortable:!0,width:"6rem",align:"left"},{key:"duration",label:"Duration",sortable:!0,width:"7rem",align:"left"},{key:"workerIndex",label:"Worker",sortable:!0,width:"6rem",align:"left"},{key:"retries",label:"Retries",sortable:!0,width:"6.5rem",align:"left"}];return W.value&&v.push({key:"wastedTimeMs",label:"Wasted",sortable:!0,width:"6rem",align:"left"}),v}),T=F(()=>[{label:"Run order",value:Ve},...X.value.map(v=>({label:v.label,value:v.key}))]),J=F({get:()=>C.value??Ve,set:v=>{C.value=v===Ve?null:v,v!==Ve&&(x.value="asc")}}),ne=F(()=>X.value.map(v=>v.width).join(" ")),ee=F(()=>W.value?"47.5rem":"41.5rem"),ie=F(()=>c.value!==""||R.value.length>0||r.value!=="all"||$.failureClusterFilter!=null),V=G(null),B=G(!1),re=G(null);function xe(v){return v.scrollHeight-v.scrollTop-v.clientHeight<50}function U(v){const j=v.target;j&&(B.value=!xe(j))}ge(()=>$.isLive,v=>{v||(B.value=!1)}),ge(()=>w.value.length,()=>{!$.isLive||B.value||De(()=>V.value?.scrollToBottom())});function S(v){I(!1),re.value=v;const j=()=>{const N=w.value.findIndex(b=>b.executionId===v);N>=0&&V.value?.scrollToItem(N,{behavior:"smooth"})};De(()=>{V.value?j():setTimeout(j,60),setTimeout(()=>{re.value=null},3e3)})}return g({scrollToCase:S}),(v,j)=>{const N=ke,b=Se,Z=rs,te=Fs,se=jt,fe=Te,be=js,le=_a,ve=Dt,ze=Pt,Fe=Ut,ye=Lt,de=He,we=$e,Re=ht("DynamicScrollerItem"),Ne=ht("DynamicScroller"),Ie=ut;return s(),a("div",$a,[l(be,{class:"mb-4 shrink-0"},{start:i(()=>[n("div",Ta,[n("button",{class:Q(["px-2 py-1 text-xs transition-colors",e(y)?"text-muted hover:bg-elevated/60":"bg-primary text-white dark:text-white"]),title:"Flat list",onClick:j[0]||(j[0]=p=>e(I)(!1))},[l(N,{name:"i-lucide-list",class:"size-3.5"})],2),n("button",{class:Q(["px-2 py-1 text-xs transition-colors",e(y)?"bg-primary text-white dark:text-white":"text-muted hover:bg-elevated/60"]),title:"Tree view",onClick:j[1]||(j[1]=p=>e(I)(!0))},[l(N,{name:"i-lucide-folder-tree",class:"size-3.5"})],2)]),t.isLive?(s(),a("span",Ca,[_(o(t.testCases.length)+" completed ",1),l(b,{topic:"run.live"})])):(s(),a("span",Ra,[_(o(w.value.length)+o(w.value.length!==t.testCases.length?` / ${t.testCases.length}`:"")+" cases ",1),l(b,{topic:"run.test-cases"})]))]),default:i(()=>[l(Z,{modelValue:c.value,"onUpdate:modelValue":j[2]||(j[2]=p=>c.value=p),placeholder:"Search test cases...",icon:"i-lucide-search",size:"sm",class:"min-w-48 max-sm:flex-1"},null,8,["modelValue"]),n("div",Ia,[(s(),a(H,null,oe(A,p=>n("button",{key:p.value,class:Q(["inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-xs font-medium transition-colors whitespace-nowrap",R.value.includes(p.value)?p.color==="green"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400":p.color==="red"?"bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-400":p.color==="orange"?"bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400":"bg-zinc-200 text-zinc-700 dark:bg-zinc-700 dark:text-zinc-300":"bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400 hover:bg-zinc-200 dark:hover:bg-zinc-700"]),onClick:ae=>P(p.value)},[n("span",{class:Q(["size-2 rounded-full shrink-0",p.color==="green"?"bg-emerald-500":p.color==="red"?"bg-rose-500":p.color==="orange"?"bg-orange-500":"bg-zinc-400"])},null,2),_(" "+o(p.label),1)],10,Sa)),64))]),l(te,{modelValue:r.value,"onUpdate:modelValue":j[3]||(j[3]=p=>r.value=p),items:z.value,size:"sm",class:"w-36"},null,8,["modelValue","items"]),t.isLive?m("",!0):(s(),k(se,{key:0,modelValue:h.value,"onUpdate:modelValue":j[4]||(j[4]=p=>h.value=p),label:"New regressions",size:"sm"},null,8,["modelValue"])),t.isLive?m("",!0):(s(),k(se,{key:1,modelValue:M.value,"onUpdate:modelValue":j[5]||(j[5]=p=>M.value=p),label:"New flaky",size:"sm"},null,8,["modelValue"])),e(y)?m("",!0):(s(),a("div",za,[l(te,{modelValue:J.value,"onUpdate:modelValue":j[6]||(j[6]=p=>J.value=p),items:T.value,size:"sm",class:"w-32","aria-label":"Sort cases by"},null,8,["modelValue","items"]),l(fe,{size:"sm",variant:"outline",color:"neutral",disabled:C.value===null,icon:x.value==="asc"?"i-lucide-arrow-up-narrow-wide":"i-lucide-arrow-down-wide-narrow",title:x.value==="asc"?"Sorted ascending":"Sorted descending","aria-label":x.value==="asc"?"Sorted ascending":"Sorted descending",onClick:j[7]||(j[7]=p=>x.value=x.value==="asc"?"desc":"asc")},null,8,["disabled","icon","title","aria-label"])]))]),_:1}),e(y)&&t.testCases.length>0?(s(),k(le,{key:0,"test-cases":w.value,suites:t.suites,"has-filter":ie.value,"highlighted-case-id":re.value,"live-steps":t.liveSteps,"project-key":t.projectKey,"project-name":t.projectName,class:"flex-1 min-h-0"},null,8,["test-cases","suites","has-filter","highlighted-case-id","live-steps","project-key","project-name"])):e(y)?m("",!0):(s(),a(H,{key:1},[w.value.length>0?(s(),a("div",Fa,[n("div",{class:"flex flex-col h-full md:min-w-(--grid-min-width)",role:"table","aria-label":"Test cases","aria-rowcount":w.value.length+1,style:_e({"--grid-min-width":ee.value})},[n("div",{class:"hidden md:grid shrink-0 bg-elevated/50 border-b border-default",role:"row",style:_e({gridTemplateColumns:ne.value})},[(s(!0),a(H,null,oe(X.value,p=>(s(),a(H,{key:p.key},[p.sortable?(s(),a("button",{key:0,type:"button",role:"columnheader","aria-sort":C.value===p.key?x.value==="asc"?"ascending":"descending":"none","aria-label":p.icon?p.label:void 0,title:p.icon?p.label:void 0,class:Q(["flex items-center gap-1 min-w-0 px-3 py-2 text-sm font-semibold select-none cursor-pointer hover:text-highlighted transition-colors",p.align==="right"?"justify-end":""]),onClick:ae=>u(p.key)},[p.icon?(s(),k(N,{key:0,name:p.icon,class:"shrink-0 size-4"},null,8,["name"])):(s(),a("span",Da,o(p.label),1)),l(N,{name:d(p.key),class:Q(["shrink-0 size-3.5",C.value===p.key?"":"opacity-40"])},null,8,["name","class"])],10,Pa)):(s(),a("div",{key:1,role:"columnheader",class:Q(["px-3 py-2 text-sm font-semibold",p.align==="right"?"text-right":""])},o(p.label),3))],64))),128))],4),l(Ie,null,{fallback:i(()=>[n("div",Za,[l(N,{name:"i-lucide-loader-circle",class:"size-4 mr-2 animate-spin"}),j[8]||(j[8]=_(" Loading test cases… ",-1))])]),default:i(()=>[l(Ne,{ref_key:"scrollerRef",ref:V,items:w.value,"min-item-size":44,"key-field":"executionId",role:"rowgroup",class:"flex-1 min-h-0",onScrollPassive:U},{default:i(({item:p,index:ae,active:Be})=>[l(Re,{item:p,active:Be,"size-dependencies":[p.title,p.location,p.isNewRegression,p.isNewFlaky,p.testAnnotations,p.tags,K(p)?.title],"data-index":ae},{default:i(()=>[n("div",{class:Q(["md:hidden border-b border-default px-3 py-2.5 space-y-1.5 text-sm transition-colors",re.value===p.executionId?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),role:"row"},[n("div",Na,[l(N,{name:("getStatusIcon"in v?v.getStatusIcon:e(at))(p.status),class:Q(["size-4 shrink-0 mt-0.5",[("getStatusTextClass"in v?v.getStatusTextClass:e(nt))(p.status),("isStatusInFlight"in v?v.isStatusInFlight:e(zt))(p.status)?"animate-spin":""]]),role:"img","aria-label":`Status: ${D(p)}`,title:D(p)},null,8,["name","class","aria-label","title"]),n("a",{href:`/test-run-cases/${p.executionId}`,class:"text-highlighted hover:text-primary hover:underline font-medium flex-1 min-w-0",onClick:Le(Qe=>("navigateTo"in v?v.navigateTo:e(qe))(`/test-run-cases/${p.executionId}`),["prevent"])},o(p.title),9,Ba),l(ve,{browser:p.browser,size:"sm",class:"mt-0.5"},null,8,["browser"])]),p.location?(s(),k(ze,{key:0,location:p.location,"project-key":t.projectKey,"project-name":t.projectName,class:"block pl-6 text-xs text-gray-400 dark:text-gray-500"},null,8,["location","project-key","project-name"])):m("",!0),l(Fe,{"is-new-regression":!!p.isNewRegression,"is-new-flaky":!!p.isNewFlaky,annotations:p.testAnnotations,tags:p.tags,meta:p.testMeta,"max-tags":3,class:"pl-6"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"]),n("div",Ma,[p.status==="running"?(s(),a(H,{key:0},[K(p)?(s(),k(ye,{key:0,step:K(p),class:"max-w-full"},null,8,["step"])):(s(),a("span",Aa,"In progress..."))],64)):p.duration?(s(),k(de,{key:1,ms:p.duration},null,8,["ms"])):m("",!0),p.workerIndex!=null?(s(),k(we,{key:2,color:"neutral",variant:"soft",size:"xs",class:"font-mono",title:`Worker ${p.workerIndex}`},{default:i(()=>[_(" w"+o(p.workerIndex),1)]),_:2},1032,["title"])):m("",!0),(p.retries??0)>0?(s(),k(we,{key:3,color:"warning",variant:"soft",size:"xs"},{default:i(()=>[_(o(p.retries)+"x ",1)]),_:2},1024)):m("",!0),p.wastedTimeMs?(s(),a("span",Ua,[l(N,{name:"i-lucide-hourglass",class:"size-3 shrink-0"}),l(de,{ms:p.wastedTimeMs,"unit-class":"opacity-60","no-title":""},null,8,["ms"])])):m("",!0)])],2),n("div",{class:Q(["hidden md:grid items-center border-b border-default text-sm transition-colors hover:bg-zinc-50 dark:hover:bg-zinc-900/50",re.value===p.executionId?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),role:"row",style:_e({gridTemplateColumns:ne.value})},[n("div",La,[l(ve,{browser:p.browser},null,8,["browser"])]),n("div",Ea,[n("div",Oa,[n("a",{href:`/test-run-cases/${p.executionId}`,class:"text-highlighted hover:text-primary hover:underline font-medium truncate",title:p.title,onClick:Le(Qe=>("navigateTo"in v?v.navigateTo:e(qe))(`/test-run-cases/${p.executionId}`),["prevent"])},o(p.title),9,Ka),l(Fe,{"is-new-regression":!!p.isNewRegression,"is-new-flaky":!!p.isNewFlaky,annotations:p.testAnnotations,tags:p.tags,meta:p.testMeta,"max-tags":3,class:"shrink-0"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"])]),p.location?(s(),k(ze,{key:0,location:p.location,"project-key":t.projectKey,"project-name":t.projectName,class:"text-xs text-zinc-400 dark:text-zinc-500"},null,8,["location","project-key","project-name"])):m("",!0),K(p)?(s(),a("div",Wa,[l(ye,{step:K(p),class:"max-w-full"},null,8,["step"])])):m("",!0)]),n("div",Ha,[l(we,{color:("getStatusColor"in v?v.getStatusColor:e(ot))(p.status==="timedOut"||p.status==="timedout"?"failed":p.status),variant:"subtle",class:"capitalize",title:D(p)},{default:i(()=>[_(o(("formatStatusLabel"in v?v.formatStatusLabel:e(Ue))(p.status)),1)]),_:2},1032,["color","title"])]),n("div",Va,[p.status==="running"?(s(),a("span",Ga,"In progress...")):(s(),k(de,{key:1,ms:p.duration,fallback:""},null,8,["ms"]))]),n("div",Xa,[p.workerIndex!=null?(s(),k(we,{key:0,color:"neutral",variant:"soft",class:"font-mono text-xs"},{default:i(()=>[_(o(p.workerIndex),1)]),_:2},1024)):m("",!0)]),n("div",qa,o(p.retries&&p.retries>0?p.retries:""),1),W.value?(s(),a("div",Ya,[p.wastedTimeMs?(s(),k(de,{key:0,ms:p.wastedTimeMs,class:"text-amber-600 dark:text-amber-400","unit-class":"opacity-60"},null,8,["ms"])):(s(),a("span",Ja,"—"))])):m("",!0)],6)]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:1},8,["items"])]),_:1})],12,ja)])):t.testCases.length===0?(s(),a("div",Qa,[l(N,{name:"i-lucide-beaker",class:"size-8 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),j[9]||(j[9]=n("p",null,"No test cases recorded for this run.",-1))])):(s(),a("div",eo,[l(N,{name:"i-lucide-search-x",class:"size-8 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),j[10]||(j[10]=n("p",null,"No test cases match your filters.",-1))]))],64))])}}}),so=Object.assign(to,{__name:"TestCasesList"}),no={key:2,class:"p-4"},ao={key:3,class:"p-4"},oo={key:4,class:"p-4"},lo={key:5,class:"space-y-6 p-4","data-shot":"run-insights"},io={class:"flex items-center gap-1.5 text-sm text-muted"},ro={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},uo={class:"space-y-1","data-shot":"pass-rate"},co={class:"text-xl font-semibold"},mo={key:0},fo={key:1},po={class:"space-y-1"},go={key:1,class:"text-xl font-semibold text-muted"},xo={class:"space-y-1"},yo={class:"space-y-0.5 text-sm"},ho={key:0,class:"text-red-500"},vo={key:1,class:"text-green-600"},ko={key:2,class:"text-purple-500"},bo={key:3,class:"text-muted"},wo={class:"space-y-1"},_o={class:"font-medium text-primary hover:underline truncate"},$o={class:"text-gray-400 text-xs ml-auto shrink-0"},To={class:"space-y-1"},Co={class:"font-medium text-primary hover:underline truncate"},Ro={class:"space-y-1"},Io={class:"font-medium text-primary hover:underline truncate"},So={class:"space-y-1"},zo={class:"font-medium text-primary hover:underline truncate"},Fo={class:"text-gray-400 text-xs ml-auto shrink-0"},jo={class:"space-y-1"},Po={class:"font-medium text-primary hover:underline truncate"},Do={class:"grid grid-cols-2 gap-4"},No={key:0},Bo={class:"space-y-1"},Mo={class:"text-red-500 font-mono shrink-0"},Ao={class:"truncate text-primary hover:underline"},Uo={key:1},Lo={class:"space-y-1"},Eo={class:"text-green-500 font-mono shrink-0"},Oo={class:"truncate text-primary hover:underline"},Ko={class:"space-y-1"},Wo={class:"flex-1 truncate text-primary hover:underline"},Ho={class:"text-gray-500 font-mono text-xs shrink-0"},Vo={class:"w-24 h-2 rounded-full bg-gray-100 shrink-0"},Go={key:0,class:"flex items-center gap-1.5 text-xs text-amber-600 mb-3"},Xo={class:"flex items-end gap-2 h-20"},qo={class:"text-xs text-gray-500"},Yo={class:"text-xs text-gray-400"},Jo={class:"space-y-1"},Zo={class:"truncate"},Qo=me({__name:"RunInsights",props:{testRunId:{},runStatus:{},refreshKey:{}},setup(t){const g=t,y=F(()=>{if(!c.value)return"";const P=c.value.passRateDelta;return P>0?"text-green-600":P<0?"text-red-600":"text-muted"}),I=F(()=>{if(!c.value)return"";const P=c.value.passRateDelta;return P>0?"i-lucide-trending-up":P<0?"i-lucide-trending-down":"i-lucide-minus"}),$=F(()=>c.value?.avgDurationDelta==null?"":c.value.avgDurationDelta>0?"text-red-600":"text-green-600"),c=G(null),R=G(!1),r=G(null),h=F(()=>g.runStatus==="running"||g.runStatus==="initializing"||g.runStatus==="finalizing");async function M(){if(!g.testRunId||h.value){c.value=null;return}R.value=!0,r.value=null;try{c.value=await $fetch(`/api/test-runs/${g.testRunId}/insights`)}catch(P){console.error("[RunInsights] failed to load",P),r.value=P?.data?.message||P?.message||"Failed to load insights"}finally{R.value=!1}}ge(()=>g.testRunId,M,{immediate:!0}),ge(()=>g.refreshKey,(P,z)=>{P!==z&&P!==void 0&&M()});function A(P){return P==null?"—":P<1e3?`${P}ms`:`${(P/1e3).toFixed(1)}s`}return(P,z)=>{const D=Te,K=Ns,Y=Nt,f=Bt,C=ke,x=Se,u=Bs,d=$e,L=Ke;return e(r)?(s(),k(K,{key:0,text:e(r),padded:""},{action:i(()=>[l(D,{size:"sm",onClick:M},{default:i(()=>[...z[0]||(z[0]=[_("Retry",-1)])]),_:1})]),_:1},8,["text"])):e(R)?(s(),k(Y,{key:1,padded:""})):e(h)?(s(),a("div",no,[l(f,{icon:"i-lucide-loader-circle",text:"Run in progress"},{default:i(()=>[...z[1]||(z[1]=[n("p",{class:"text-sm text-muted max-w-sm text-center"}," Insights are computed once the run finishes. Switch back here when the run completes. ",-1)])]),_:1})])):e(c)?e(c).hasBaseline?(s(),a("div",lo,[n("div",io,[l(C,{name:"i-lucide-sparkles",class:"size-4 shrink-0 text-primary/70"}),z[3]||(z[3]=n("span",null,"Automatic highlights from this run",-1)),l(x,{topic:"run.insights"})]),l(u,{icon:"i-lucide-bar-chart-3","icon-class":"text-blue-500",title:"Run summary","data-shot":"run-summary"},{default:i(()=>[n("div",ro,[n("div",uo,[z[4]||(z[4]=n("p",{class:"text-xs text-muted"},"Pass rate",-1)),n("p",co,o(e(c).passRate)+"%",1),n("div",{class:Q(["flex items-center gap-1 text-xs",e(y)])},[l(C,{name:e(I),class:"size-3.5"},null,8,["name"]),e(c).passRateDelta!==0?(s(),a("span",mo,o(e(c).passRateDelta>0?"+":"")+o(e(c).passRateDelta)+"pp vs baseline",1)):(s(),a("span",fo,"Same as baseline"))],2)]),n("div",po,[z[5]||(z[5]=n("p",{class:"text-xs text-muted"},"Avg duration",-1)),e(c).avgDurationDelta!==null?(s(),a("p",{key:0,class:Q(["text-xl font-semibold",e($)])},o(e(c).avgDurationDelta>0?"+":"")+o(e(c).avgDurationDelta)+"% ",3)):(s(),a("p",go,"—")),z[6]||(z[6]=n("p",{class:"text-xs text-muted"},"vs baseline (passing tests)",-1))]),n("div",xo,[z[7]||(z[7]=n("p",{class:"text-xs text-muted"},"Changes",-1)),n("div",yo,[e(c).newRegressions.length>0?(s(),a("p",ho," +"+o(e(c).newRegressions.length)+" regressed ",1)):m("",!0),e(c).recovered.length>0?(s(),a("p",vo,"+"+o(e(c).recovered.length)+" fixed",1)):m("",!0),e(c).newFlaky.length>0?(s(),a("p",ko,"+"+o(e(c).newFlaky.length)+" flaky",1)):m("",!0),!e(c).newRegressions.length&&!e(c).recovered.length&&!e(c).newFlaky.length?(s(),a("p",bo," No status changes ")):m("",!0)])])])]),_:1}),e(c).newRegressions.length>0?(s(),k(u,{key:0,icon:"i-lucide-alert-circle","icon-class":"text-red-500",title:"New regressions",count:e(c).newRegressions.length,"data-shot":"new-regressions"},{default:i(()=>[n("div",wo,[(s(!0),a(H,null,oe(e(c).newRegressions,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}`,class:"flex items-center gap-2 text-sm hover:bg-red-50 dark:hover:bg-red-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(d,{color:"error",variant:"solid",size:"xs"},{default:i(()=>[...z[8]||(z[8]=[_("NEW",-1)])]),_:1}),n("span",_o,o(w.title),1),n("span",$o,o(A(w.duration)),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):m("",!0),e(c).recurrences.length>0?(s(),k(u,{key:1,icon:"i-lucide-refresh-cw","icon-class":"text-amber-500",title:"Recurring failures",count:e(c).recurrences.length},{default:i(()=>[n("div",To,[(s(!0),a(H,null,oe(e(c).recurrences,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}`,class:"flex items-center gap-2 text-sm hover:bg-amber-50 dark:hover:bg-amber-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(d,{color:"warning",variant:"solid",size:"xs"},{default:i(()=>[...z[9]||(z[9]=[_("RECURRING",-1)])]),_:1}),n("span",Co,o(w.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):m("",!0),e(c).recovered.length>0?(s(),k(u,{key:2,icon:"i-lucide-check-circle","icon-class":"text-green-500",title:"Fixed tests",count:e(c).recovered.length},{default:i(()=>[n("div",Ro,[(s(!0),a(H,null,oe(e(c).recovered,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}`,class:"flex items-center gap-2 text-sm hover:bg-green-50 dark:hover:bg-green-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(d,{color:"success",variant:"solid",size:"xs"},{default:i(()=>[...z[10]||(z[10]=[_("FIXED",-1)])]),_:1}),n("span",Io,o(w.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):m("",!0),e(c).newFlaky.length>0?(s(),k(u,{key:3,icon:"i-lucide-flask","icon-class":"text-purple-500",title:"New flaky tests",count:e(c).newFlaky.length},{default:i(()=>[n("div",So,[(s(!0),a(H,null,oe(e(c).newFlaky,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}?tab=history`,class:"flex items-center gap-2 text-sm hover:bg-purple-50 dark:hover:bg-purple-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(d,{color:"info",variant:"solid",size:"xs"},{default:i(()=>[...z[11]||(z[11]=[_("FLAKY",-1)])]),_:1}),n("span",zo,o(w.title),1),n("span",Fo,o(A(w.duration)),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):m("",!0),e(c).flakyOnRetry.length>0?(s(),k(u,{key:4,icon:"i-lucide-repeat","icon-class":"text-orange-500",title:"Passed on retry",count:e(c).flakyOnRetry.length,subtitle:"Tests that passed but needed one or more retries"},{default:i(()=>[n("div",jo,[(s(!0),a(H,null,oe(e(c).flakyOnRetry,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}?tab=history`,class:"flex items-center gap-2 text-sm hover:bg-orange-50 dark:hover:bg-orange-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(d,{color:"warning",variant:"subtle",size:"xs"},{default:i(()=>[_("×"+o(w.retries),1)]),_:2},1024),n("span",Po,o(w.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):m("",!0),e(c).mostRegressed.length>0||e(c).mostImproved.length>0?(s(),k(u,{key:5,icon:"i-lucide-trending-up","icon-class":"text-blue-500",title:"Performance changes"},{default:i(()=>[n("div",Do,[e(c).mostRegressed.length>0?(s(),a("div",No,[z[12]||(z[12]=n("p",{class:"text-xs font-medium text-red-500 mb-2"},"Most regressed",-1)),n("div",Bo,[(s(!0),a(H,null,oe(e(c).mostRegressed,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-red-50 dark:hover:bg-red-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("span",Mo,"+"+o(w.pctChange)+"%",1),n("span",Ao,o(w.title),1)]),_:2},1032,["to"]))),128))])])):m("",!0),e(c).mostImproved.length>0?(s(),a("div",Uo,[z[13]||(z[13]=n("p",{class:"text-xs font-medium text-green-500 mb-2"},"Most improved",-1)),n("div",Lo,[(s(!0),a(H,null,oe(e(c).mostImproved,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-green-50 dark:hover:bg-green-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("span",Eo,o(w.pctChange)+"%",1),n("span",Oo,o(w.title),1)]),_:2},1032,["to"]))),128))])])):m("",!0)])]),_:1})):m("",!0),e(c).slowestTests.length>0?(s(),k(u,{key:6,icon:"i-lucide-clock","icon-class":"text-amber-500",title:"Slowest tests"},{default:i(()=>[n("div",Ko,[(s(!0),a(H,null,oe(e(c).slowestTests,w=>(s(),k(L,{key:w.executionId,to:`/test-run-cases/${w.executionId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-amber-50 dark:hover:bg-amber-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("div",Wo,o(w.title),1),n("div",Ho,o(A(w.duration)),1),n("div",Vo,[n("div",{class:"h-full rounded-full bg-amber-400",style:_e({width:Math.min(100,w.duration/(e(c).slowestTests[0]?.duration||1)*100)+"%"})},null,4)])]),_:2},1032,["to"]))),128))])]),_:1})):m("",!0),e(c).workerImbalance.length>1?(s(),k(u,{key:7,icon:"i-lucide-users","icon-class":"text-gray-500",title:"Worker distribution"},{default:i(()=>[e(c).workerImbalanceWarning?(s(),a("div",Go,[l(C,{name:"i-lucide-alert-triangle",class:"size-3.5 shrink-0"}),n("span",null,o(e(c).workerImbalanceWarning),1)])):m("",!0),n("div",Xo,[(s(!0),a(H,null,oe(e(c).workerImbalance,w=>(s(),a("div",{key:w.workerIndex,class:"flex-1 flex flex-col items-center gap-1"},[n("span",qo,o(w.count),1),n("div",{class:"w-full bg-blue-400 rounded-t",style:_e({height:Math.max(4,w.count/Math.max(...e(c).workerImbalance.map(W=>W.count))*60)+"px"})},null,4),n("span",Yo,"W"+o(w.workerIndex),1)]))),128))])]),_:1})):m("",!0),e(c).clusterNew.length>0?(s(),k(u,{key:8,icon:"i-lucide-layers","icon-class":"text-purple-500",title:"New failure clusters",count:e(c).clusterNew.length},{default:i(()=>[n("div",Jo,[(s(!0),a(H,null,oe(e(c).clusterNew,w=>(s(),k(L,{key:w.clusterId,to:`/failure-clusters/${w.clusterId}`,class:"flex items-center gap-2 text-sm text-primary hover:underline"},{default:i(()=>[n("span",Zo,o(w.signature),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):m("",!0)])):(s(),a("div",oo,[l(f,{icon:"i-lucide-git-compare-arrows",text:"No baseline run found"},{default:i(()=>[...z[2]||(z[2]=[n("p",{class:"text-sm text-muted max-w-sm text-center"}," Insights compare this run against the most recent passing run in the same project. No previous passing run exists yet — once you have at least two completed runs, comparisons will appear here automatically. ",-1)])]),_:1})])):(s(),a("div",ao,[l(f,{text:"No insights yet"})]))}}}),el=Object.assign(Qo,{__name:"RunInsights"}),tl=me({__name:"ClusterDiagnosis",props:{clusterId:{}},setup(t){return(g,y)=>{const I=Ms;return s(),k(I,{"cluster-id":t.clusterId},null,8,["cluster-id"])}}}),sl=Object.assign(tl,{__name:"ClusterDiagnosis"}),nl={class:"pt-4 space-y-3"},al={key:0,class:"flex items-center justify-center py-8 text-gray-500 gap-2"},ol={class:"flex items-center justify-between gap-3"},ll={class:"text-sm text-gray-500 dark:text-gray-400 inline-flex items-center gap-1"},il={class:"min-w-0 space-y-0.5"},rl=["title"],ul={key:0,class:"text-xs text-gray-500 truncate block"},cl={class:"font-mono"},dl={key:1,class:"text-gray-400 text-xs"},ml={key:1,class:"text-gray-400 text-xs"},fl={class:"text-sm tabular-nums"},pl={key:0,class:"flex flex-wrap gap-1"},gl={key:1,class:"text-gray-400 text-xs"},xl={key:0,class:"flex items-center gap-1 text-xs text-gray-500"},yl={key:2,class:"text-gray-400 text-xs"},hl={key:0,class:"text-xs font-medium text-warning-500"},vl={key:1,class:"text-sm text-gray-500 whitespace-nowrap"},kl={key:0,class:"ml-1 text-xs text-gray-400"},bl={class:"flex justify-end gap-2"},wl={key:2,class:"flex flex-col items-center justify-center py-8 text-gray-500 gap-2"},_l=me({__name:"FailureGroups",props:{refreshKey:{}},emits:["selectCluster"],async setup(t,{emit:g}){let y,I;const $=g,c=t,r=We().params.id,{data:h,pending:M,refresh:A}=([y,I]=Ee(()=>Oe(`/api/test-runs/${r}/failure-groups`,{lazy:!0,server:!1,transform:u=>u.items},"$MjXpKokGLu")),y=await y,I(),y);ge(()=>c.refreshKey,(u,d)=>{u!==d&&u!==void 0&&A()});const P=G(null),{copy:z,copied:D}=mt(),K=F(()=>h.value?h.value.flatMap(u=>u.cases.filter(d=>!d.passedOnRetry).map(d=>({filePath:d.filePath,title:d.title,line:null,projectName:null}))):[]),Y=F(()=>Ft(K.value));function f(){const u=Y.value;u&&z(u,{toast:"Retry command copied"})}const C=[{accessorKey:"signature",header:ce("Signature")},{accessorKey:"errorType",header:ce("Type")},{accessorKey:"status",header:ce("Status")},{accessorKey:"caseCount",header:ce("Tests")},{accessorKey:"signals",header:"Signals"},{accessorKey:"diagnosis",header:"AI"},{accessorKey:"firstSeenRunId",header:ce("Known since")},{id:"actions",header:"Actions"}],x=F(()=>h.value?.reduce((u,d)=>u+d.caseCount,0)??0);return(u,d)=>{const L=ke,w=Se,W=Te,X=$e,T=Ke,J=ft,ne=Mt,ee=dt,ie=sl,V=At;return s(),a(H,null,[n("div",nl,[e(M)?(s(),a("div",al,[l(L,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),d[2]||(d[2]=n("span",null,"Grouping failures...",-1))])):e(h)&&e(h).length?(s(),a(H,{key:1},[n("div",ol,[n("p",ll,[_(o(e(x))+" failing "+o(e(x)===1?"test":"tests")+" across "+o(e(h).length)+" "+o(e(h).length===1?"group":"groups")+" ",1),l(w,{topic:"cluster.concept"})]),e(K).length>0?(s(),k(W,{key:0,size:"xs",variant:"outline",color:"neutral",icon:e(D)?"i-lucide-check":"i-lucide-play",title:e(D)?"Copied!":("copyPreview"in u?u.copyPreview:e(St))(e(Y)),onClick:d[0]||(d[0]=B=>f())},{default:i(()=>[...d[3]||(d[3]=[_(" Copy retry command ",-1)])]),_:1},8,["icon","title"])):m("",!0)]),l(ee,{ui:{body:"p-0 sm:p-0"}},{default:i(()=>[l(ne,{"min-width":"46rem",bleed:!1},{default:i(()=>[l(J,{data:e(h),columns:C},{"actions-header":i(()=>[...d[4]||(d[4]=[n("div",{class:"text-right"},"Actions",-1)])]),"signature-cell":i(({row:B})=>[n("div",il,[n("span",{class:Q(["text-sm block truncate",B.original.title?"":"font-mono"]),title:B.original.signature},o(B.original.title||B.original.signature),11,rl),B.original.selector?(s(),a("span",ul,[d[5]||(d[5]=_(" Locator: ",-1)),n("code",cl,o(B.original.selector),1)])):m("",!0)])]),"errorType-cell":i(({row:B})=>[B.original.errorType?(s(),k(X,{key:0,color:("clusterErrorTypeColor"in u?u.clusterErrorTypeColor:e(Is))(B.original.errorType),variant:"subtle",size:"sm"},{default:i(()=>[_(o(B.original.errorType),1)]),_:2},1032,["color"])):(s(),a("span",dl,"—"))]),"status-cell":i(({row:B})=>[B.original.status?(s(),k(X,{key:0,color:("clusterStatusColor"in u?u.clusterStatusColor:e(Rs))(B.original.status),variant:"subtle",size:"sm"},{default:i(()=>[_(o(B.original.status),1)]),_:2},1032,["color"])):(s(),a("span",ml,"—"))]),"caseCount-cell":i(({row:B})=>[n("span",fl,o(B.original.caseCount),1)]),"signals-cell":i(({row:B})=>[B.original.isNew||B.original.flaky||B.original.workerCorrelated||B.original.locatorHealing?(s(),a("div",pl,[B.original.isNew?(s(),k(X,{key:0,color:"warning",variant:"subtle",size:"sm"},{default:i(()=>[...d[6]||(d[6]=[_(" New ",-1)])]),_:1})):m("",!0),B.original.flaky?(s(),k(X,{key:1,color:"warning",variant:"outline",size:"sm"},{default:i(()=>[...d[7]||(d[7]=[_(" Flaky ",-1)])]),_:1})):m("",!0),B.original.workerCorrelated?(s(),k(X,{key:2,color:"info",variant:"outline",size:"sm",title:"All failures ran on the same worker"},{default:i(()=>[...d[8]||(d[8]=[_(" Same worker ",-1)])]),_:1})):m("",!0),B.original.locatorHealing?.healed?(s(),k(X,{key:3,color:"success",variant:"subtle",size:"sm",icon:"i-lucide-circle-check",title:"The recommended locator already passes at this call site in a later run"},{default:i(()=>[...d[9]||(d[9]=[_(" Healed ",-1)])]),_:1})):B.original.locatorHealing?(s(),k(X,{key:4,color:"success",variant:"outline",size:"sm",icon:"i-lucide-bandage",title:`Locator fix available: ${B.original.locatorHealing.recommended} — open the cluster to apply it`},{default:i(()=>[...d[10]||(d[10]=[_(" Locator fix ",-1)])]),_:1},8,["title"])):m("",!0)])):(s(),a("span",gl,"—"))]),"diagnosis-cell":i(({row:B})=>[B.original.diagnosis?.status==="running"?(s(),a("div",xl,[l(L,{name:"i-lucide-loader-2",class:"size-3 animate-spin"}),d[11]||(d[11]=_(" Running ",-1))])):B.original.diagnosis?.status==="completed"&&B.original.diagnosis.category?(s(),k(X,{key:1,color:"neutral",variant:"subtle",size:"sm",class:"gap-1"},{default:i(()=>[l(L,{name:"i-lucide-sparkles",class:"size-3"}),_(" "+o(B.original.diagnosis.category),1)]),_:2},1024)):(s(),a("span",yl,"—"))]),"firstSeenRunId-cell":i(({row:B})=>[B.original.isNew?(s(),a("span",hl,"New in this run")):(s(),a("div",vl,[l(T,{to:`/test-runs/${B.original.firstSeenRunId}`,class:"text-primary hover:underline"},{default:i(()=>[_(" run #"+o(B.original.firstSeenRunId),1)]),_:2},1032,["to"]),B.original.firstSeenAt?(s(),a("span",kl," ("+o(("formatRelativeTime"in u?u.formatRelativeTime:e(ct))(B.original.firstSeenAt))+") ",1)):m("",!0)]))]),"actions-cell":i(({row:B})=>[n("div",bl,[l(W,{size:"sm",color:"primary",variant:"soft",onClick:re=>$("selectCluster",B.original.clusterId)},{default:i(()=>[...d[12]||(d[12]=[_(" Filter ",-1)])]),_:1},8,["onClick"]),l(W,{size:"sm",color:"neutral",variant:"outline",icon:"i-lucide-sparkles",onClick:re=>P.value=B.original.clusterId},{default:i(()=>[...d[13]||(d[13]=[_(" Diagnose ",-1)])]),_:1},8,["onClick"]),l(W,{to:`/failure-clusters/${B.original.clusterId}`,size:"sm",variant:"outline","trailing-icon":"i-lucide-arrow-right"},{default:i(()=>[...d[14]||(d[14]=[_(" View ",-1)])]),_:1},8,["to"])])]),_:1},8,["data"])]),_:1})]),_:1})],64)):(s(),a("div",wl,[l(L,{name:"i-lucide-party-popper",class:"size-6"}),d[15]||(d[15]=n("span",null,"No failure groups — failed tests without error details are not grouped",-1))]))]),l(V,{open:e(P)!==null,title:"AI Diagnosis",ui:{content:"max-w-2xl"},"onUpdate:open":d[1]||(d[1]=B=>{B||(P.value=null)})},{body:i(()=>[e(P)!==null?(s(),k(ie,{key:0,"cluster-id":e(P)},null,8,["cluster-id"])):m("",!0)]),_:1},8,["open"])],64)}}}),$l=Object.assign(_l,{__name:"FailureGroups"}),Tl={class:"pt-4"},Cl={key:2,class:"space-y-4"},Rl={class:"flex flex-wrap items-center gap-2 text-sm"},Il={class:"text-gray-500 inline-flex items-center gap-1"},Sl={key:0,class:"text-gray-400"},zl={key:0,class:"flex flex-wrap items-center gap-2"},Fl={class:"text-sm text-gray-500"},jl={key:1,class:"flex items-center gap-2"},Pl={class:"text-sm text-gray-500"},Dl={class:"space-y-3"},Nl={class:"flex items-center gap-2 text-sm font-medium"},Bl={class:"flex flex-wrap items-center gap-2 text-sm font-mono"},Ml={key:0,class:"text-xs text-gray-400 font-sans"},Al={class:"flex flex-wrap items-center gap-2"},Ul={class:"flex items-center gap-1.5 flex-1 min-w-0"},Ll={class:"flex-1 text-xs bg-gray-100 dark:bg-gray-800 px-3 py-1.5 rounded font-mono truncate select-all"},El={key:3,class:"text-sm text-gray-500 flex items-center gap-2"},Ol={class:"px-4 py-3 text-sm font-medium flex items-center gap-2 border-b border-default"},Kl={class:"overflow-x-auto"},Wl={class:"w-full min-w-[36rem] text-sm"},Hl={class:"px-4 py-2 text-gray-500"},Vl={class:"px-4 py-2 font-mono text-xs"},Gl={key:0,class:"text-green-700 dark:text-green-400"},Xl={key:1,class:"text-gray-400"},ql={class:"px-4 py-2 font-mono text-xs"},Yl={key:0,class:"text-red-700 dark:text-red-400"},Jl={key:1,class:"text-gray-400"},Zl=me({__name:"RegressionContext",props:{refreshKey:{}},async setup(t){let g,y;const $=We().params.id,c=t,{data:R,pending:r,refresh:h}=([g,y]=Ee(()=>Oe(`/api/test-runs/${$}/regression-context`,{lazy:!0,server:!1},"$bK54nhbSza")),g=await g,y(),g);ge(()=>c.refreshKey,(z,D)=>{z!==D&&z!==void 0&&h()});const{copy:M,copied:A}=mt();function P(){M(R.value?.commitRange?.gitCommand)}return(z,D)=>{const K=Nt,Y=Bt,f=ke,C=Se,x=Ke,u=$e,d=Te,L=dt;return s(),a("div",Tl,[e(r)?(s(),k(K,{key:0,text:"Looking for last passing run…"})):e(R)?.hasGreen?(s(),a("div",Cl,[n("div",Rl,[l(f,{name:"i-lucide-circle-check",class:"size-4 text-green-500 shrink-0"}),n("span",Il,[D[0]||(D[0]=_("Last passing run: ",-1)),l(C,{topic:"run.regression"})]),l(x,{to:`/test-runs/${e(R).lastGreenRunId}`,class:"font-medium text-primary hover:underline"},{default:i(()=>[_(" Run #"+o(e(R).lastGreenRunId),1)]),_:1},8,["to"]),e(R).lastGreenRunAt?(s(),a("span",Sl," ("+o(("formatRelativeTime"in z?z.formatRelativeTime:e(ct))(e(R).lastGreenRunAt))+") ",1)):m("",!0)]),(e(R).newFailures??0)>0?(s(),a("div",zl,[l(u,{color:"error",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(R).newFailures)+" new "+o(e(R).newFailures===1?"failure":"failures"),1)]),_:1}),n("span",Fl,o(e(R).newFailures===1?"test":"tests")+" that "+o((e(R).newFailures===1,"passed"))+" in run #"+o(e(R).lastGreenRunId)+" but "+o(e(R).newFailures===1?"fails":"fail")+" here ",1)])):(s(),a("div",jl,[l(u,{color:"warning",variant:"soft",size:"lg"},{default:i(()=>[...D[1]||(D[1]=[_(" No new regressions ",-1)])]),_:1}),n("span",Pl,"All failing tests were also failing before run #"+o(e(R).lastGreenRunId),1)])),e(R).commitRange?(s(),k(L,{key:2,ui:{body:"p-4 sm:p-4"}},{default:i(()=>[n("div",Dl,[n("div",Nl,[l(f,{name:"i-lucide-git-commit-horizontal",class:"size-4"}),D[2]||(D[2]=_(" Commits introduced since last passing run ",-1))]),n("div",Bl,[l(u,{color:"success",variant:"soft",size:"sm"},{default:i(()=>[_(o(e(R).commitRange.fromShort),1)]),_:1}),l(f,{name:"i-lucide-arrow-right",class:"size-3 text-gray-400"}),l(u,{color:"error",variant:"soft",size:"sm"},{default:i(()=>[_(o(e(R).commitRange.toShort),1)]),_:1}),e(R).currentBranch||e(R).lastGreenBranch?(s(),a("span",Ml," on "+o(e(R).currentBranch||e(R).lastGreenBranch),1)):m("",!0)]),n("div",Al,[e(R).commitRange.compareUrl?(s(),k(d,{key:0,to:e(R).commitRange.compareUrl,target:"_blank",external:"",icon:"i-lucide-external-link",size:"sm",variant:"soft",color:"primary"},{default:i(()=>[...D[3]||(D[3]=[_(" View commits ",-1)])]),_:1},8,["to"])):m("",!0),n("div",Ul,[n("code",Ll,o(e(R).commitRange.gitCommand),1),l(d,{icon:e(A)?"i-lucide-check":"i-lucide-clipboard",size:"xs",color:"neutral",variant:"ghost",title:e(A)?"Copied!":"Copy git command",onClick:P},null,8,["icon","title"])])])])]),_:1})):!e(R).currentCommit||!e(R).lastGreenCommit?(s(),a("div",El,[l(f,{name:"i-lucide-git-branch",class:"size-4 shrink-0"}),D[4]||(D[4]=_(" No commit info available — enable ",-1)),D[5]||(D[5]=n("code",{class:"font-mono text-xs"},"collectScmInfo: true",-1)),D[6]||(D[6]=_(" in the reporter to see commit ranges ",-1))])):m("",!0),e(R).metadataDiff&&e(R).metadataDiff.length>0?(s(),k(L,{key:4,ui:{body:"p-0 sm:p-0"}},{default:i(()=>[n("div",Ol,[l(f,{name:"i-lucide-sliders-horizontal",class:"size-4"}),D[7]||(D[7]=_(" What changed between runs ",-1))]),n("div",Kl,[n("table",Wl,[D[8]||(D[8]=n("thead",null,[n("tr",{class:"text-xs text-gray-500 uppercase tracking-wider border-b border-default"},[n("th",{class:"text-left px-4 py-2 font-medium w-32"},"Field"),n("th",{class:"text-left px-4 py-2 font-medium"},"Last passing"),n("th",{class:"text-left px-4 py-2 font-medium"},"This run")])],-1)),n("tbody",null,[(s(!0),a(H,null,oe(e(R).metadataDiff,w=>(s(),a("tr",{key:w.key,class:"border-b last:border-b-0 border-default"},[n("td",Hl,o(w.label),1),n("td",Vl,[w.before?(s(),a("span",Gl,o(w.before),1)):(s(),a("span",Xl,"—"))]),n("td",ql,[w.after?(s(),a("span",Yl,o(w.after),1)):(s(),a("span",Jl,"—"))])]))),128))])])])]),_:1})):m("",!0)])):(s(),k(Y,{key:1,icon:"i-lucide-history",text:"No previous passing run found for this project"}))])}}}),Ql=Object.assign(Zl,{__name:"RegressionContext"}),ei={class:"flex items-center justify-between mb-2"},ti={class:"text-xs text-gray-500 inline-flex items-center gap-1"},si={class:"flex items-center gap-1"},ni={class:"p-2 flex flex-col gap-2 min-w-56"},ai=me({__name:"TimelineHeader",props:{workerCount:{},shardTotal:{},testCount:{},hookCount:{},waitCount:{},spanTypes:{},live:{type:Boolean}},emits:["reset","toggleSpan"],setup(t){return(g,y)=>{const I=Se,$=Te,c=jt,R=it;return s(),a("div",ei,[n("span",ti,[n("span",null,[_(o(t.workerCount)+" worker"+o(t.workerCount>1?"s":"")+" ",1),t.shardTotal&&t.shardTotal>1?(s(),a(H,{key:0},[_(" · "+o(t.shardTotal)+" shard"+o(t.shardTotal>1?"s":""),1)],64)):m("",!0),_(" · "+o(t.testCount)+" tests ",1),t.hookCount>0?(s(),a(H,{key:1},[_(" · "+o(t.hookCount)+" hooks ",1)],64)):m("",!0),t.waitCount>0?(s(),a(H,{key:2},[_(" · "+o(t.waitCount)+" waits ",1)],64)):m("",!0)]),l(I,{topic:"run.timeline"})]),n("div",si,[t.spanTypes.length>1?(s(),k(R,{key:0,content:{align:"end"}},{content:i(()=>[n("div",ni,[(s(!0),a(H,null,oe(t.spanTypes,r=>(s(),k(c,{key:r.key,"model-value":r.checked,label:r.label,"onUpdate:modelValue":h=>g.$emit("toggleSpan",r.key,h===!0)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])]),default:i(()=>[l($,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-list-filter","trailing-icon":"i-lucide-chevron-down",title:"Show or hide span types"},{default:i(()=>[...y[1]||(y[1]=[_(" Span types ",-1)])]),_:1})]),_:1})):m("",!0),t.live?m("",!0):(s(),k($,{key:1,size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-rotate-ccw",onClick:y[0]||(y[0]=r=>g.$emit("reset"))},{default:i(()=>[...y[2]||(y[2]=[_(" Reset view ",-1)])]),_:1}))])])}}}),oi=Object.assign(ai,{__name:"TimelineHeader"}),Ye={barHeight:24,rowGap:8,labelWidth:80,sidePadding:16,axisHeight:28,get rowHeight(){return this.barHeight+this.rowGap}},li={passed:"#16a34a",failed:"#dc2626",timedOut:"#ea580c",running:"#2563eb",initializing:"#2563eb",skipped:"#9ca3af",cancelled:"#a1a1aa",interrupted:"#ea580c",flaky:"#ca8a04"},Pe={fill:"#facc15",stroke:"#ca8a04",swatch:"#f59e0b"};function Ze(t){return li[t]||"#a1a1aa"}function Et(t){return Ze(t)+"66"}function Ot(t){return Ze(t)}function Je(t){return t<1e3?`${t}ms`:t<6e4?`${(t/1e3).toFixed(1)}s`:`${Math.floor(t/6e4)}m ${Math.floor(t%6e4/1e3)}s`}const ii=["y","width","height"],ri=["y1","x2","y2"],ui=["x1","y1","x2","y2"],ci=["x1","y1","x2","y2"],di=["x","y"],mi=["y"],fi=me({__name:"TimelineGrid",props:{workerRows:{},shardGroups:{},tickMarks:{},contentWidth:{},shardTotal:{}},setup(t){const{barHeight:g,rowGap:y,axisHeight:I,rowHeight:$}=Ye;return(c,R)=>(s(),a("g",null,[(s(!0),a(H,null,oe(t.workerRows,(r,h)=>(s(),a("rect",{key:"bg-"+h,x:0,y:h*e($)+e(I),width:t.contentWidth,height:e($),class:Q(h%2===1?"fill-black/[0.03] dark:fill-white/[0.03]":"fill-transparent")},null,10,ii))),128)),(s(!0),a(H,null,oe(t.shardGroups.slice(1),r=>(s(),a("line",{key:"shard-sep-"+r.rowRange[0],x1:0,y1:r.rowRange[0]*e($)+e(I)-e(y)/2,x2:t.contentWidth,y2:r.rowRange[0]*e($)+e(I)-e(y)/2,stroke:"currentColor","stroke-dasharray":"4,3",class:"stroke-gray-400 dark:stroke-gray-500"},null,8,ri))),128)),n("line",{x1:e(Ye).labelWidth,y1:e(I),x2:t.contentWidth,y2:e(I),stroke:"currentColor",class:"stroke-gray-300 dark:stroke-gray-600"},null,8,ui),(s(!0),a(H,null,oe(t.tickMarks,r=>(s(),a("g",{key:r.ms},[n("line",{x1:r.x,y1:e(I)-4,x2:r.x,y2:e(I),stroke:"currentColor",class:"stroke-gray-300 dark:stroke-gray-600"},null,8,ci),n("text",{x:r.x,y:e(I)-8,"text-anchor":"middle",class:"fill-gray-400 text-[10px]"},o(r.label),9,di)]))),128)),(s(!0),a(H,null,oe(t.workerRows,(r,h)=>(s(),a("text",{key:"label-"+h,x:6,y:h*e($)+e(I)+e(g)/2+4,class:"fill-gray-500 text-[11px] font-medium"},o(r.shardIndex!=null&&t.shardTotal&&t.shardTotal>1?`S${r.shardIndex} W${r.workerIndex}`:`Worker ${r.workerIndex}`),9,mi))),128))]))}}),pi=Object.assign(fi,{__name:"TimelineGrid"}),gi=["x","y","width","height","fill","stroke"],xi=["x","y"],yi=["x","y","width","height","fill","stroke"],hi=["x1","y1","x2","y2","stroke"],vi=["x1","y1","x2","y2","stroke"],ki=["x","y"],bi=["cx","cy"],wi=["cx","cy"],_i=["x","y","width","height","fill"],$i=["x","y"],Ti=me({__name:"TimelineBar",props:{item:{},x:{},y:{},width:{}},emits:["select","hover","move","leave"],setup(t,{emit:g}){const y=t,I=g,{barHeight:$}=Ye,c=F(()=>["setup","hook","fixture"].includes(y.item.kind)),R=F(()=>y.item.testCaseId!=null),r=F(()=>R.value?"cursor-pointer":"cursor-default");function h(){y.item.testCaseId!=null&&I("select",y.item.testCaseId)}return(M,A)=>(s(),a("g",{class:"timeline-bar-group",onMouseenter:A[0]||(A[0]=P=>I("hover",t.item,P)),onMousemove:A[1]||(A[1]=P=>I("move",P)),onMouseleave:A[2]||(A[2]=P=>I("leave"))},[c.value?(s(),a(H,{key:0},[n("rect",{x:t.x,y:t.y,width:t.width,height:e($),rx:3,ry:3,fill:e(Et)(t.item.status),stroke:e(Ot)(t.item.status),"stroke-width":"1","stroke-dasharray":"3,2",class:Q(["timeline-bar-shape transition-opacity duration-100 opacity-80",r.value]),onClick:h},null,10,gi),t.width>60?(s(),a("text",{key:0,x:t.x+4,y:t.y+e($)/2+4,class:"fill-gray-600 dark:fill-gray-300 text-[9px] font-medium pointer-events-none"},o(t.item.title),9,xi)):m("",!0)],64)):t.item.kind==="wait"?(s(),a(H,{key:1},[n("rect",{x:t.x,y:t.y-3,width:t.width,height:e($)+6,rx:2,ry:2,fill:e(Pe).fill,"fill-opacity":"0.28",stroke:e(Pe).stroke,"stroke-width":"1.5",class:Q(["timeline-bar-shape transition-opacity duration-100 opacity-90",r.value]),onClick:h},null,10,yi),t.width>4?(s(),a("line",{key:0,x1:t.x+1,y1:t.y-3,x2:t.x+t.width-1,y2:t.y+e($)+3,stroke:e(Pe).stroke,"stroke-width":"1","stroke-opacity":"0.25",class:"pointer-events-none"},null,8,hi)):m("",!0),t.width>4?(s(),a("line",{key:1,x1:t.x+t.width-1,y1:t.y-3,x2:t.x+1,y2:t.y+e($)+3,stroke:e(Pe).stroke,"stroke-width":"1","stroke-opacity":"0.25",class:"pointer-events-none"},null,8,vi)):m("",!0),t.width>50?(s(),a("text",{key:2,x:t.x+4,y:t.y+e($)/2+4,class:"fill-yellow-800 dark:fill-yellow-200 text-[9px] font-bold pointer-events-none"}," wasted "+o(e(Je)(t.item.duration)),9,ki)):m("",!0)],64)):t.item.status==="running"?(s(),a(H,{key:2},[n("circle",{cx:t.x+6,cy:t.y+e($)/2,r:"3",fill:"#2563eb",filter:"url(#glow)",class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:h},null,8,bi),n("circle",{cx:t.x+6,cy:t.y+e($)/2,r:"5",fill:"none",stroke:"#2563eb","stroke-width":"1.5","stroke-opacity":"0.4",filter:"url(#glow)",class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:h},null,8,wi)],64)):(s(),a(H,{key:3},[n("rect",{x:t.x,y:t.y,width:t.width,height:e($),rx:3,ry:3,fill:e(Ze)(t.item.status),class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:h},null,8,_i),t.width>40?(s(),a("text",{key:0,x:t.x+4,y:t.y+e($)/2+4,class:"fill-white text-[10px] font-medium pointer-events-none"},o(e(Je)(t.item.duration)),9,$i)):m("",!0)],64))],32))}}),Ci=Object.assign(Ti,{__name:"TimelineBar"}),Ri={class:"flex items-center gap-2 mb-1"},Ii={class:"font-medium text-gray-900 dark:text-white max-w-64 truncate"},Si={class:"flex items-center gap-3 text-gray-500"},zi={class:"capitalize"},Fi={key:0,class:"italic truncate max-w-48"},ji=340,Pi=me({__name:"TimelineTooltip",props:{item:{},pos:{}},setup(t){const g=t,y=F(()=>{const $=g.item;return $?$.kind==="test"?{backgroundColor:Ze($.status)}:$.kind==="wait"?{backgroundColor:Pe.swatch+"66",borderColor:Pe.swatch}:{backgroundColor:Et($.status),borderColor:Ot($.status)}:{}}),I=F(()=>{const{x:$,y:c}=g.pos;if(typeof window>"u")return{left:`${$+12}px`,top:`${c-10}px`};const R=$+12+ji>window.innerWidth,r=c+90>window.innerHeight;return{left:R?void 0:`${$+12}px`,right:R?`${window.innerWidth-$+12}px`:void 0,top:r?void 0:`${c-10}px`,bottom:r?`${window.innerHeight-c+10}px`:void 0}});return($,c)=>(s(),k(cs,{to:"body"},[t.item?(s(),a("div",{key:0,class:"fixed z-[9999] pointer-events-none rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 px-3 py-2 text-xs shadow-lg",style:_e(I.value)},[n("div",Ri,[n("span",{class:Q(["inline-block size-2.5 rounded-full shrink-0",{"border border-dashed":t.item.kind!=="test"}]),style:_e(y.value)},null,6),n("span",Ii,[t.item.kind!=="test"?(s(),a("span",{key:0,class:Q(["uppercase text-[10px] tracking-wider mr-1",t.item.kind==="wait"?"text-amber-500":"text-gray-500"])},o(t.item.kind),3)):m("",!0),_(" "+o(t.item.title),1)])]),n("div",Si,[n("span",zi,o(t.item.status),1),n("span",null,o(e(Je)(t.item.duration)),1),n("span",null,"Worker "+o(t.item.workerIndex),1),t.item.parentTitle?(s(),a("span",Fi," for "+o(t.item.parentTitle),1)):m("",!0)])],4)):m("",!0)]))}}),Di=Object.assign(Pi,{__name:"TimelineTooltip"}),Ni=["Wait for timeout*","*waitForTimeout*"];function Bi(t){const g=t.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${g}$`,"i")}const vt=new Map;function Mi(t){let g=vt.get(t);return g||(g=Bi(t),vt.set(t,g)),g}function Ai(t,g){if(!g||g.length===0)return!1;const y=t.title??"",I=t.location??"";for(const $ of g){const c=Mi($);if(c.test(y)||I&&c.test(I))return!0}return!1}function Ui(t){const g=new Map;for(const y of t){const I=y.workerIndex;if(I==null||I<0)continue;const $=y.shardIndex??null,c=`${$??"null"}|${I}`;let R=g.get(c);R||(R={shardIndex:$,workerIndex:I,cases:[]},g.set(c,R)),R.cases.push(y)}return[...g.values()].sort((y,I)=>{const $=y.shardIndex??1/0,c=I.shardIndex??1/0;return $!==c?$-c:y.workerIndex-I.workerIndex})}function Ge(t){if(t==null)return null;if(typeof t=="number")return Number.isFinite(t)?t:null;if(t instanceof Date)return t.getTime();const g=new Date(t).getTime();return Number.isNaN(g)?null:g}function Li(t,g){return t.category==="wait"?Ai(t,g)?"wait":null:t.category==="hook"||t.category==="fixture"?t.category:null}function Ei(t){const g=F(()=>t.wastedPatterns&&t.wastedPatterns.length>0?t.wastedPatterns:Ni),y=F(()=>Ui(t.testCases)),I=F(()=>{const r=y.value,h=g.value;let M=1/0;for(const K of r)for(const Y of K.cases){const f=Ge(Y.startedAt);f!=null&&f>0&&(M=Math.min(M,f))}const A=Number.isFinite(M),P=K=>Math.max(0,(Ge(K)??M)-M),z=[],D=new Map;if(r.forEach((K,Y)=>{const f=[],C=A?K.cases:[...K.cases].sort((u,d)=>(Ge(u.startedAt)??0)-(Ge(d.startedAt)??0));let x=0;for(const u of C){const d=u.duration??1e3,L=A?P(u.startedAt):x;f.push({key:`t${u.executionId}`,kind:"test",testCaseId:u.executionId,title:u.title,status:u.status,workerIndex:K.workerIndex,start:L,duration:d,rowIndex:Y}),x=L+d,(u.stepEvents??[]).forEach((W,X)=>{const T=Li(W,h);if(!T)return;const J=W.duration||0,ne=A?P(W.startedAt):x;f.push({key:`s${u.executionId}:${X}`,kind:T,testCaseId:u.executionId,title:W.title,status:W.status||"passed",workerIndex:K.workerIndex,start:ne,duration:J,rowIndex:Y,parentTitle:u.title}),x=ne+J})}f.sort((u,d)=>u.start-d.start),z.push(...f),D.has(K.workerIndex)||D.set(K.workerIndex,x)}),t.setupSteps&&t.setupSteps.length>0){const K=new Map;r.forEach((Y,f)=>{K.has(Y.workerIndex)||K.set(Y.workerIndex,f)}),t.setupSteps.forEach((Y,f)=>{const C=Y.workerIndex;if(C==null||C<0)return;const x=K.get(C);if(x==null)return;const u=Y.duration||0;let d;A?d=P(Y.startedAt):(d=D.get(C)??0,D.set(C,d+u)),z.push({key:`setup${C}:${f}`,kind:"setup",testCaseId:null,title:`[Setup] ${Y.title}`,status:Y.status||"passed",workerIndex:C,start:d,duration:u,rowIndex:x,parentTitle:null})})}return z}),$=F(()=>y.value.map(r=>({shardIndex:r.shardIndex,workerIndex:r.workerIndex}))),c=F(()=>{const r=[];for(let h=0;h<$.value.length;h++){const M=$.value[h],A=r[r.length-1];!A||A.shardIndex!==M.shardIndex?r.push({shardIndex:M.shardIndex,rowRange:[h,h]}):A.rowRange[1]=h}return r}),R=F(()=>{let r=0;for(const h of I.value)r=Math.max(r,h.start+h.duration);return r||6e4});return{timelineData:I,workerRows:$,shardGroups:c,maxTime:R}}const kt=1.12,Oi=10,Ki=100,st=[10,20,50,100,200,500,1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5,9e5,18e5,36e5];function Wi(t){const{containerRef:g,maxTime:y,rowCount:I,hasData:$,live:c}=t,{labelWidth:R,sidePadding:r,axisHeight:h,rowHeight:M}=Ye,A=G(1),P=G(0),z=G(!1),D=G(0),K=G(0),Y=F(()=>.5*A.value),f=F(()=>y.value*Y.value+R+r),C=F(()=>I.value*M+h);function x(b){return b.start*Y.value+R}function u(b){return Math.max(b.duration*Y.value,3)}function d(b){return b.rowIndex*M+h}function L(){const b=g.value?.clientWidth;if(!b||y.value<=0)return 1;const Z=(b-R)/y.value;return Math.min(1,Z/.5)}function w(){const b=L();b>0&&(A.value=b,P.value=0)}function W(b){if(!g.value)return b;const Z=g.value.clientWidth;return f.value<=Z?0:Math.max(Z-f.value,Math.min(0,b))}function X(b,Z){const te=Math.max(L(),Math.min(Oi,b)),se=te/A.value;A.value=te,P.value=W(Z-(Z-P.value)*se)}const T=F(()=>{const b=Ki/Y.value;let Z=st.find(se=>se>=b)??st[st.length-1];for(;y.value/Z>1e3;)Z*=2;const te=[];for(let se=0;se<=y.value;se+=Z)te.push({ms:se,x:se*Y.value+R,label:Je(se)});return te});function J(b){if(c())return;const Z=b.deltaY>0?1/kt:kt,te=g.value?.getBoundingClientRect();X(A.value*Z,te?b.clientX-te.left:0)}const ne=4,ee=new Map;let ie=null,V=0,B=1,re=0;function xe(b,Z){ie=b,D.value=Z,K.value=P.value}function U(b){if(!c()&&!(b.pointerType==="mouse"&&b.button!==0)){if(ee.set(b.pointerId,{x:b.clientX,y:b.clientY}),ee.size===1)xe(b.pointerId,b.clientX);else if(ee.size===2){ie=null,z.value=!1;for(const fe of ee.keys())g.value?.setPointerCapture?.(fe);const[Z,te]=[...ee.values()];V=Math.hypot(Z.x-te.x,Z.y-te.y)||1,B=A.value;const se=g.value?.getBoundingClientRect();re=(Z.x+te.x)/2-(se?.left??0)}b.preventDefault()}}function S(b){if(!(c()||!ee.has(b.pointerId))){if(ee.set(b.pointerId,{x:b.clientX,y:b.clientY}),ee.size>=2){const[Z,te]=[...ee.values()],se=Math.hypot(Z.x-te.x,Z.y-te.y)||1;X(B*(se/V),re);return}z.value?P.value=W(K.value+(b.clientX-D.value)):ie===b.pointerId&&Math.abs(b.clientX-D.value)>ne&&(g.value?.setPointerCapture?.(b.pointerId),z.value=!0,P.value=W(K.value+(b.clientX-D.value)))}}function v(b){if(ee.delete(b.pointerId),ie===b.pointerId&&(ie=null),g.value?.releasePointerCapture?.(b.pointerId),ee.size===1){const[Z]=[...ee.entries()];xe(Z[0],Z[1].x)}else ee.size===0&&(z.value=!1)}function j(){w()}let N=null;return wt(()=>{De(w),g.value&&(N=new ResizeObserver(()=>w()),N.observe(g.value))}),_t(()=>{N?.disconnect()}),ge(()=>[c(),$.value,y.value,I.value],([b,Z])=>{b&&Z&&De(w)}),{panX:P,isPanning:z,pxPerMs:Y,contentWidth:f,contentHeight:C,getBarX:x,getBarWidth:u,getBarTop:d,tickMarks:T,onWheel:J,onPointerDown:U,onPointerMove:S,onPointerUp:v,resetView:j}}const Hi={key:0,class:"relative select-none","data-shot":"run-timeline"},Vi=["width","height"],Gi={key:1,class:"text-center py-10 text-gray-500"},Xi=me({__name:"WorkersTimeline",props:{testCases:{},setupSteps:{},shardTotal:{},live:{type:Boolean},wastedPatterns:{}},emits:["selectTestCase"],setup(t,{emit:g}){const y=t,I=g,{timelineData:$,workerRows:c,shardGroups:R,maxTime:r}=Ei(y),h=G(null),M=F(()=>c.value.length),A=F(()=>$.value.length>0),{panX:P,isPanning:z,contentWidth:D,contentHeight:K,getBarX:Y,getBarWidth:f,getBarTop:C,tickMarks:x,onWheel:u,onPointerDown:d,onPointerMove:L,onPointerUp:w,resetView:W}=Wi({containerRef:h,maxTime:r,rowCount:M,hasData:A,live:()=>y.live}),X=F(()=>$.value.filter(N=>N.kind==="test").length),T=F(()=>$.value.filter(N=>N.kind!=="test"&&N.kind!=="wait").length),J=F(()=>$.value.filter(N=>N.kind==="wait").length),ne=["test","setup","hook","fixture","wait"],ee={test:"Tests",setup:"Setup (beforeAll/afterAll)",hook:"Hooks",fixture:"Fixtures",wait:"Wasted waits"},ie=G({}),V=F(()=>$.value.filter(N=>!ie.value[N.kind])),B=F(()=>{const N=new Set($.value.map(b=>b.kind));return ne.filter(b=>N.has(b)).map(b=>({key:b,label:ee[b],checked:!ie.value[b]}))});function re(N,b){ie.value={...ie.value,[N]:!b}}const xe=G(null),U=G({x:0,y:0});ge(V,N=>{xe.value&&(xe.value=N.find(b=>b.key===xe.value.key)??null)});function S(N,b){xe.value=N,U.value={x:b.clientX,y:b.clientY}}function v(N){U.value={x:N.clientX,y:N.clientY}}function j(){xe.value=null}return(N,b)=>{const Z=oi,te=pi,se=Ci,fe=Di,be=ke;return e($).length>0?(s(),a("div",Hi,[l(Z,{"worker-count":e(c).length,"shard-total":t.shardTotal,"test-count":X.value,"hook-count":T.value,"wait-count":J.value,"span-types":B.value,live:t.live,onToggleSpan:re,onReset:e(W)},null,8,["worker-count","shard-total","test-count","hook-count","wait-count","span-types","live","onReset"]),n("div",{ref_key:"containerRef",ref:h,class:Q(["relative overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700 touch-pan-y",{"cursor-grab":!e(z),"cursor-grabbing":e(z)}]),style:_e({height:e(K)+"px"}),onWheel:b[1]||(b[1]=Le((...le)=>e(u)&&e(u)(...le),["prevent"])),onPointerdown:b[2]||(b[2]=(...le)=>e(d)&&e(d)(...le)),onPointermove:b[3]||(b[3]=(...le)=>e(L)&&e(L)(...le)),onPointerup:b[4]||(b[4]=(...le)=>e(w)&&e(w)(...le)),onPointercancel:b[5]||(b[5]=(...le)=>e(w)&&e(w)(...le)),onPointerleave:b[6]||(b[6]=(...le)=>e(w)&&e(w)(...le))},[(s(),a("svg",{class:"overflow-visible",style:_e({transform:`translateX(${e(P)}px)`}),width:e(D),height:e(K)},[b[7]||(b[7]=n("defs",null,[n("filter",{id:"glow"},[n("feGaussianBlur",{stdDeviation:"2.5",result:"blur"}),n("feMerge",null,[n("feMergeNode",{in:"blur"}),n("feMergeNode",{in:"SourceGraphic"})])])],-1)),l(te,{"worker-rows":e(c),"shard-groups":e(R),"tick-marks":e(x),"content-width":e(D),"shard-total":t.shardTotal},null,8,["worker-rows","shard-groups","tick-marks","content-width","shard-total"]),(s(!0),a(H,null,oe(V.value,le=>(s(),k(se,{key:le.key,item:le,x:e(Y)(le),y:e(C)(le),width:e(f)(le),onSelect:b[0]||(b[0]=ve=>I("selectTestCase",ve)),onHover:S,onMove:v,onLeave:j},null,8,["item","x","y","width"]))),128))],12,Vi))],38),l(fe,{item:xe.value,pos:U.value},null,8,["item","pos"])])):(s(),a("div",Gi,[l(be,{name:"i-lucide-rows-3",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),b[8]||(b[8]=n("p",null,"No worker data available for this run.",-1))]))}}}),qi=Object.assign(Xi,{__name:"WorkersTimeline"}),Yi={key:0,class:"space-y-4"},Ji={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Zi={class:"flex items-center gap-2 py-1.5"},Qi={class:"font-medium"},er={key:0,class:"flex"},tr={key:1,class:"flex items-center justify-center py-6 text-gray-500 gap-2"},sr={class:"flex flex-wrap gap-2 mt-1"},nr={class:"flex flex-wrap gap-4 text-sm"},ar={key:3,class:"text-sm text-gray-500"},or={class:"flex flex-wrap gap-4 text-sm"},lr={key:0,class:"text-gray-400"},ir={key:0,class:"text-gray-400"},rr={key:1,class:"text-gray-400"},ur={key:1,class:"text-gray-400"},cr={key:0,class:"text-gray-400"},dr={key:0,class:"text-gray-400"},mr={key:4,class:"text-center py-8 text-gray-500"},fr={key:5,class:"text-center py-8 text-gray-500"},pr={key:1,class:"text-center py-10 text-gray-500"},gr=me({__name:"RunCompare",props:{testRun:{}},setup(t){const g=t,I=We().params.id,$=G(null),c=G([]),R=F(()=>g.testRun?.status==="running"||g.testRun?.status==="finalizing");ge(()=>g.testRun?.projectId,async x=>{if(!(!x||R.value)){try{$.value=await $fetch(`/api/projects/${x}`)}catch(u){console.error("Failed to fetch project for RunCompare",u)}try{const u=await $fetch(`/api/projects/${x}/markers`);c.value=u.items??[]}catch{}}},{immediate:!0});const r=F(()=>{if(!P.value||!g.testRun)return[];const x=new Date(P.value.startTime).getTime(),u=new Date(g.testRun.startTime).getTime(),d=Math.min(x,u),L=Math.max(x,u),w=new Set([P.value.environment,g.testRun.environment].filter(W=>W!=null));return c.value.filter(W=>{const X=new Date(W.occurredAt).getTime();return X<=d||X>=L?!1:W.environment==null||w.has(W.environment)})}),h=F(()=>$.value?.testRuns?$.value.testRuns.filter(x=>x.id!==Number(I)).slice(0,50).map(x=>({label:`Run #${x.id} — ${It(x.startTime,{dateOnly:!0})} (${x.status})`,value:x.id})):[]),M=F(()=>{if(!$.value?.testRuns)return null;const x=[...$.value.testRuns].sort((d,L)=>new Date(L.startTime).getTime()-new Date(d.startTime).getTime()),u=x.findIndex(d=>d.id===Number(I));return u>=0&&u<x.length-1?x[u+1].id:null}),A=G(void 0),P=G(null),z=G(!1);ge(A,async x=>{if(!x?.value){P.value=null;return}z.value=!0;try{P.value=await $fetch(`/api/test-runs/${x.value}`)}catch{}finally{z.value=!1}});function D(){if(M.value){const x=h.value.find(u=>u.value===M.value);x&&(A.value=x)}}const K=F(()=>g.testRun??null),{comparisonData:Y,comparisonSummary:f}=Es(P,K),C=[{accessorKey:"title",header:ce("Test case")},{accessorKey:"statusA",header:ce("Status A")},{accessorKey:"statusB",header:ce("Status B")},{accessorKey:"durationA",header:ce("Duration A")},{accessorKey:"durationB",header:ce("Duration B")},{accessorKey:"delta",header:ce("Delta")},{accessorKey:"percentChange",header:ce("Change")}];return(x,u)=>{const d=As,L=Us,w=Te,W=ke,X=Tt,T=Ls,J=$e,ne=He,ee=ft,ie=Mt;return s(),a("div",null,[t.testRun&&!R.value?(s(),a("div",Yi,[n("div",Ji,[n("div",null,[u[1]||(u[1]=n("label",{class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Run A (baseline)",-1)),l(d,{modelValue:A.value,"onUpdate:modelValue":u[0]||(u[0]=V=>A.value=V),items:h.value,placeholder:"Select a baseline run..."},null,8,["modelValue","items"])]),n("div",null,[u[2]||(u[2]=n("label",{class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Run B (this run)",-1)),n("div",Zi,[l(L,{status:t.testRun.status},null,8,["status"]),n("span",Qi,"#"+o(t.testRun.id),1)])])]),M.value?(s(),a("div",er,[l(w,{icon:"i-lucide-arrow-left-right",size:"sm",variant:"outline",label:"Compare with previous run",onClick:D})])):m("",!0),z.value?(s(),a("div",tr,[l(W,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),u[3]||(u[3]=n("span",null,"Loading baseline data...",-1))])):r.value.length>0?(s(),k(T,{key:2,color:"warning",variant:"subtle",icon:"i-lucide-milestone",title:`${r.value.length} timeline marker${r.value.length>1?"s":""} between these runs`},{description:i(()=>[n("div",sr,[(s(!0),a(H,null,oe(r.value,V=>(s(),k(X,{key:V.id,marker:V,size:"sm"},null,8,["marker"]))),128))])]),_:1},8,["title"])):P.value&&e(Y).length>0?(s(),a(H,{key:3},[n("div",nr,[u[4]||(u[4]=n("span",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wider mr-1"},"Status",-1)),e(f).newFailures>0?(s(),k(J,{key:0,color:"error",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(f).newFailures)+" new failure"+o(e(f).newFailures>1?"s":""),1)]),_:1})):m("",!0),e(f).recovered>0?(s(),k(J,{key:1,color:"success",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(f).recovered)+" recovered ",1)]),_:1})):m("",!0),e(f).stillFailing>0?(s(),k(J,{key:2,color:"warning",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(f).stillFailing)+" still failing ",1)]),_:1})):m("",!0),e(f).newFailures===0&&e(f).recovered===0&&e(f).stillFailing===0?(s(),a("span",ar,"No status changes")):m("",!0)]),n("div",or,[u[5]||(u[5]=n("span",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wider mr-1"},"Duration changes",-1)),e(f).regressed>0?(s(),k(J,{key:0,color:"error",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(f).regressed)+" regressed ",1)]),_:1})):m("",!0),e(f).improved>0?(s(),k(J,{key:1,color:"success",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(f).improved)+" improved ",1)]),_:1})):m("",!0),l(J,{color:"neutral",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(f).unchanged)+" unchanged ",1)]),_:1})]),l(ie,{"min-width":"48rem",bleed:!1},{default:i(()=>[l(ee,{data:e(Y),columns:C,ui:{base:"table-fixed border-separate border-spacing-0 min-w-[48rem]",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"statusA-cell":i(({row:V})=>[V.original.statusA?(s(),k(J,{key:1,color:("getStatusColor"in x?x.getStatusColor:e(ot))(V.original.statusA),variant:"subtle",class:"capitalize"},{default:i(()=>[_(o(V.original.statusA),1)]),_:2},1032,["color"])):(s(),a("span",lr,"—"))]),"statusB-cell":i(({row:V})=>[V.original.statusB?(s(),k(J,{key:1,color:("getStatusColor"in x?x.getStatusColor:e(ot))(V.original.statusB),variant:"subtle",class:"capitalize"},{default:i(()=>[_(o(V.original.statusB),1)]),_:2},1032,["color"])):(s(),a("span",ir,"—"))]),"durationA-cell":i(({row:V})=>[V.original.durationA!==null?(s(),k(ne,{key:0,ms:V.original.durationA},null,8,["ms"])):(s(),a("span",rr,"—"))]),"durationB-cell":i(({row:V})=>[V.original.durationB!==null?(s(),k(ne,{key:0,ms:V.original.durationB},null,8,["ms"])):(s(),a("span",ur,"—"))]),"delta-cell":i(({row:V})=>[V.original.delta===null?(s(),a("span",cr,"—")):(s(),a("span",{key:1,class:Q(V.original.delta>0?"text-red-600":V.original.delta<0?"text-green-600":"text-gray-500")},[_(o(V.original.delta>0?"+":""),1),l(ne,{ms:V.original.delta,"unit-class":"opacity-60"},null,8,["ms"])],2))]),"percentChange-cell":i(({row:V})=>[V.original.percentChange===null?(s(),a("span",dr,"—")):(s(),a("span",{key:1,class:Q(V.original.percentChange>10?"text-red-600 font-medium":V.original.percentChange<-10?"text-green-600 font-medium":"text-gray-500")},o(V.original.percentChange>0?"+":"")+o(V.original.percentChange)+"% ",3))]),_:1},8,["data"])]),_:1})],64)):A.value&&!z.value?(s(),a("div",mr,[l(W,{name:"i-lucide-git-compare-arrows",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),u[6]||(u[6]=n("p",null,"No comparison data available.",-1))])):(s(),a("div",fr,[l(W,{name:"i-lucide-arrow-left-right",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),u[7]||(u[7]=n("p",null,"Select a baseline run to compare.",-1))]))])):R.value?(s(),a("div",pr,[l(W,{name:"i-lucide-git-compare-arrows",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),u[8]||(u[8]=n("p",null,"Comparison is available after the run finishes.",-1))])):m("",!0)])}}}),xr=Object.assign(gr,{__name:"RunCompare"}),yr={class:"flex flex-col overflow-hidden"},hr={key:0,class:"flex-1 flex items-center justify-center text-gray-500 gap-2"},vr={class:"text-xs font-mono break-all"},kr={key:0,class:"text-gray-400"},br={key:1,class:"text-red-600 font-medium"},wr=me({__name:"SlowEndpoints",props:{refreshKey:{}},emits:["endpointsCount"],async setup(t,{emit:g}){let y,I;const c=We().params.id,R=t,r=g,{data:h,pending:M,refresh:A}=([y,I]=Ee(()=>Oe(`/api/test-runs/${c}/network-requests`,{lazy:!0,server:!1,transform:z=>z.items},"$QlrRz6EqI4")),y=await y,I(),y);ge(h,z=>{r("endpointsCount",z?.length??0)}),ge(()=>R.refreshKey,(z,D)=>{z!==D&&z!==void 0&&A()});const P=[{accessorKey:"method",header:ce("Method")},{accessorKey:"route",header:ce("Route")},{accessorKey:"count",header:ce("Calls")},{accessorKey:"avgDuration",header:ce("Avg")},{accessorKey:"p90Duration",header:ce("P90")},{accessorKey:"maxDuration",header:ce("Max")},{accessorKey:"errorRate",header:ce("Errors")}];return(z,D)=>{const K=ke,Y=$e,f=He,C=ft,x=Os;return s(),a("div",yr,[e(M)?(s(),a("div",hr,[l(K,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),D[0]||(D[0]=n("span",null,"Loading network data...",-1))])):e(h)&&e(h).length>0?(s(),k(C,{key:1,sticky:"",data:e(h),columns:P,class:"flex-1 min-h-0",ui:{base:"table-fixed border-separate border-spacing-0 min-w-[44rem]",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0 [&>tr]:hover:bg-gray-50 dark:[&>tr]:hover:bg-gray-900/50",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"method-cell":i(({row:u})=>[l(Y,{color:u.original.method==="GET"?"info":u.original.method==="POST"?"success":u.original.method==="PUT"||u.original.method==="PATCH"?"warning":u.original.method==="DELETE"?"error":"neutral",variant:"soft",class:"font-mono text-xs"},{default:i(()=>[_(o(u.original.method),1)]),_:2},1032,["color"])]),"route-cell":i(({row:u})=>[n("code",vr,o(u.original.route),1)]),"avgDuration-cell":i(({row:u})=>[n("span",{class:Q(u.original.avgDuration>1e3?"text-red-600 font-medium":u.original.avgDuration>500?"text-orange-500 font-medium":"")},[l(f,{ms:u.original.avgDuration,"unit-class":"opacity-60"},null,8,["ms"])],2)]),"p90Duration-cell":i(({row:u})=>[n("span",{class:Q(u.original.p90Duration>2e3?"text-red-600 font-medium":u.original.p90Duration>1e3?"text-orange-500":"")},[l(f,{ms:u.original.p90Duration,"unit-class":"opacity-60"},null,8,["ms"])],2)]),"errorRate-cell":i(({row:u})=>[u.original.errorRate===0?(s(),a("span",kr,"0%")):(s(),a("span",br,o(u.original.errorRate)+"%",1))]),_:1},8,["data"])):(s(),k(x,{key:2,class:"flex-1",icon:"i-lucide-wifi-off",title:"No network requests captured",text:"Slow endpoints need the Piwi capture fixtures — extend your Playwright test with piwiFixtures and request timing rides along with every run.",doc:"capture-fixtures"}))])}}}),_r=Object.assign(wr,{__name:"SlowEndpoints"}),$r={class:"inline-flex items-center justify-center w-5 h-5 rounded-full bg-blue-500/10 hover:bg-blue-500/20 transition-colors ml-1"},Tr={key:0,class:"flex items-center gap-2 mb-3 shrink-0"},ju=me({__name:"[id]",async setup(t){let g,y;const I=We(),$=ds(),c=I.params.id,R=!!rt().public.demoMode,{data:r,refresh:h}=([g,y]=Ee(()=>Oe(`/api/test-runs/${c}`,"$JCybzNzO0T")),g=await g,y(),g),M=r.value?.projectId,{data:A,refresh:P}=M?([g,y]=Ee(()=>Oe(`/api/projects/${M}/latest-run`,{key:`latest-run-${M}`},"$26uPrJhWGK")),g=await g,y(),g):{data:G(null),refresh:async()=>{}};Ks(P);const z=F(()=>A.value?.id??r.value?.project?.latestRunId??null),D=F(()=>A.value?.status??r.value?.project?.latestRunStatus??null),K=F(()=>D.value==="running"||D.value==="finalizing");ms(F(()=>({title:`Test run #${c}${r.value?.project?` — ${r.value.project.name}`:""} — Piwi Dashboard`})));const Y=bt(),f=G(!1),C=G(!1),x=F(()=>r.value?.status==="running"||r.value?.status==="finalizing"),u=G(!1),d=G([]),L=new Map,w=G(null),W=G({});let X=null;const T=G([]);ge([x,r],()=>{x.value&&d.value.length>0?T.value=[...d.value]:r.value?.testCases?T.value=r.value.testCases:T.value=[]},{immediate:!0});function J(E){for(const q of E){const ue=`${q.title}@@${q.location}@@${JSON.stringify(q.browser)}`;L.has(ue)||(L.set(ue,!0),d.value=[...d.value,q])}T.value=[...d.value]}let ne=[],ee=null;function ie(){if(ne.length===0)return;const E=ne;ne=[];for(const q of E){const ue=q.data;if(q.type==="init")w.value={totalTests:ue.totalTests,passedTests:ue.passedTests,failedTests:ue.failedTests,skippedTests:ue.skippedTests};else if(q.type==="test-begin"){const O=ue;if(O.stepCategory)continue;const Ce=`${O.title}@@${O.location}@@${JSON.stringify(O.browser)}`;L.has(Ce)||(L.set(Ce,!0),d.value=[...d.value,{executionId:d.value.length+1,testCaseId:0,title:O.title,filePath:O.filePath,suitePath:O.suitePath??void 0,status:"running",location:O.location,workerIndex:O.workerIndex??null,startedAt:O.startedAt??Date.now(),browser:O.browser??null}],T.value=[...d.value])}else if(q.type==="test-completed"){const O=ue;if(O.stepCategory)continue;const Ce=`${O.title}@@${O.location}@@${JSON.stringify(O.browser)}`;if(L.has(Ce)){const Me=d.value.findIndex(he=>`${he.title}@@${he.location}@@${JSON.stringify(he.browser)}`===Ce);if(Me>=0){const he=d.value[Me],Ae=[...d.value];Ae[Me]={...he,filePath:O.filePath??he.filePath,suitePath:O.suitePath??he.suitePath,status:O.status,duration:O.duration,error:O.error,stepEvents:O.stepEvents??he.stepEvents,wastedTimeMs:O.wastedTimeMs??he.wastedTimeMs,workerIndex:O.workerIndex??he.workerIndex,startedAt:O.startedAt?O.startedAt:he.startedAt,browser:O.browser??he.browser},d.value=Ae,T.value=[...Ae]}}else L.set(Ce,!0),d.value=[...d.value,{executionId:d.value.length+1,testCaseId:0,title:O.title,filePath:O.filePath,suitePath:O.suitePath??void 0,status:O.status,duration:O.duration,location:O.location,error:O.error,stepEvents:O.stepEvents??null,wastedTimeMs:O.wastedTimeMs??null,workerIndex:O.workerIndex??null,startedAt:O.startedAt??void 0,browser:O.browser??null}],T.value=[...d.value]}else if(q.type==="step-begin"){const O=q.data;if(O.workerIndex==null)continue;W.value={...W.value,[O.workerIndex]:{title:O.title,category:O.stepCategory??null,status:void 0,parentTitle:O.parentTitle??null}}}else if(q.type==="step-end"){const O=q.data;if(O.workerIndex==null)continue;W.value={...W.value,[O.workerIndex]:{title:O.title,category:O.stepCategory??null,status:O.status??"passed",parentTitle:O.parentTitle??null}}}else q.type==="run-progress"?w.value=ue:q.type==="run-finalizing"?(u.value=!0,w.value=ue):q.type==="run-finished"&&(u.value=!1,W.value={},S(),h(),we.value++,V())}}function V(E=0){R||E>=5||setTimeout(async()=>{await h(),V(E+1)},1500*(E+1))}function B(E){ne.push(E),ee&&clearTimeout(ee),ee=setTimeout(ie,200)}let re=null;function xe(){re||(r.value?.testCases?.length&&J(r.value.testCases),re=Ws(E=>{E.scope==="run"&&E.runId===Number(c)?B(E.event):E.scope==="global"&&E.event.runId===Number(c)&&E.event.type==="run-started"&&h()}))}function U(){if(R){xe();return}X||x.value&&(r.value?.testCases?.length&&J(r.value.testCases),X=new EventSource(`/api/test-runs/${c}/stream`),X.onmessage=E=>{try{B(JSON.parse(E.data))}catch{}},X.onerror=()=>{})}function S(){X&&(X.close(),X=null),re&&(re(),re=null)}const v=F(()=>x.value||R&&r.value?.status==="initializing");ge(v,E=>{E?U():S()},{immediate:!0}),_t(()=>{S()});let j=null;const N=G([]);ge(T,E=>{j===null&&(j=requestAnimationFrame(()=>{N.value=E,j=null}))},{immediate:!0});const b=F(()=>x.value&&w.value?w.value:r.value?{totalTests:r.value.totalTests,passedTests:r.value.passedTests,failedTests:r.value.failedTests,skippedTests:r.value.skippedTests}:null);async function Z(){f.value=!1,C.value=!0;try{await $fetch(`/api/test-runs/${c}`,{method:"DELETE"}),Y.add({title:"Test run deleted",color:"success"}),await qe(`/projects/${r.value?.project?.id}`)}catch(E){const q=E&&typeof E=="object"&&"data"in E?E.data?.message:void 0;Y.add({title:"Delete failed",description:q||"An error occurred",color:"error"})}finally{C.value=!1}}const te=G(!1),se=G(""),fe=G([]),be=G("all"),le=F(()=>fe.value.length===1?fe.value[0]:"all");function ve(E){fe.value=!E||E==="all"?[]:[E]}const ze=F(()=>r.value?.reports||[]),Fe=F(()=>{const E=T.value;return E?E.reduce((q,ue)=>q+(ue.wastedTimeMs??0),0):0}),ye=G("test-cases"),de=G(null),we=G(0),Re=G(0);function Ne(){de.value=null}const Ie=F(()=>r.value&&r.value.failedTests>0),p=F(()=>{if(!r.value?.testCases)return 0;const E=new Set;for(const q of r.value.testCases)q.failureClusterId!=null&&E.add(q.failureClusterId);return E.size}),ae=F(()=>{const E=x.value?T.value:r.value?.testCases;if(!E||E.length===0)return 0;const q=new Set;for(const ue of E)ue.workerIndex!=null&&ue.workerIndex>=0&&q.add(ue.workerIndex);return q.size}),Be=F(()=>[{label:`Test cases (${T.value.length})`,icon:"i-lucide-beaker",value:"test-cases",slot:"test-cases"},{label:"Insights",icon:"i-lucide-sparkles",value:"insights",slot:"insights"},{label:Ie.value?`Failure groups (${p.value})`:"Failure groups",icon:"i-lucide-layers",value:"failure-groups",slot:"failure-groups",disabled:!Ie.value},{label:"Regression",icon:"i-lucide-git-pull-request-arrow",value:"regression",slot:"regression",disabled:!Ie.value},{label:`Timeline${ae.value>0?` (${ae.value})`:""}`,icon:"i-lucide-timeline",value:"workers",slot:"workers"},{label:"Compare",icon:"i-lucide-git-compare-arrows",value:"compare",slot:"compare"},{label:`Slow endpoints${Re.value>0?` (${Re.value})`:""}`,icon:"i-lucide-network",value:"endpoints",slot:"endpoints"}]),Qe={"test-cases":"overflow-hidden flex flex-col",endpoints:"overflow-hidden flex flex-col"},pt=F(()=>Be.value.filter(E=>!E.disabled).map(E=>E.value));typeof I.query.tab=="string"&&pt.value.includes(I.query.tab)&&(ye.value=I.query.tab),ge(pt,E=>{E.includes(ye.value)||(ye.value="test-cases")}),ge(ye,E=>{I.query.tab!==E&&$.replace({query:{...I.query,tab:E}})});const gt=G(null);function Kt(E){ye.value="test-cases",De(()=>{gt.value?.scrollToCase(E)})}function Wt(E){de.value=E,ye.value="test-cases"}return(E,q)=>{const ue=os,O=Ke,Ce=ke,Me=$t,he=fs,Ae=ps,Ht=xs,Vt=ta,Gt=$e,et=Te,Xt=so,qt=el,Yt=$l,Jt=Ql,Zt=qi,Qt=xr,es=_r,ts=ks,ss=gs,ns=At,as=ut;return s(),a(H,null,[l(ss,{id:"test-run-detail"},{header:i(()=>[l(Ht,null,{leading:i(()=>[l(ue),l(he,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},...e(r)?.project?.id?[{label:e(r).project.label||e(r).project.name||"Project",to:`/projects/${e(r).project.id}`,slot:"project"}]:[{label:"Project"}],{label:`Run #${e(c)}`+(e(r)?.label?` — ${e(r).label}`:"")}]},{project:i(({item:pe})=>[l(O,{to:pe?.to,class:"text-sm font-medium text-[var(--ui-text-muted)] hover:text-[var(--ui-text)] transition-colors"},{default:i(()=>[_(o(pe?.label),1)]),_:2},1032,["to"]),z.value&&z.value!==Number(e(c))?(s(),k(Me,{key:0,text:K.value?"Go to running run":"Go to latest run"},{default:i(()=>[l(O,{to:`/test-runs/${z.value}`},{default:i(()=>[n("span",$r,[l(Ce,{name:"i-lucide-circle-play",class:Q(["w-3.5 h-3.5 text-blue-500",{"animate-pulse":K.value}])},null,8,["class"])])]),_:1},8,["to"])]),_:1},8,["text"])):m("",!0)]),_:1},8,["items"])]),right:i(()=>[l(Ae,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>e(h)()},{label:"Delete",icon:"i-lucide-trash-2",color:"error",variant:"soft",loading:e(C),onClick:()=>f.value=!0}]},null,8,["actions"])]),_:1})]),body:i(()=>[l(ts,{modelValue:e(ye),"onUpdate:modelValue":q[5]||(q[5]=pe=>je(ye)?ye.value=pe:null),"tab-items":Be.value,"tab-panel-class":Qe},{summary:i(()=>[e(r)?(s(),k(Vt,{key:0,"test-run":e(r),"display-progress":b.value,"all-reports":ze.value,"show-custom-data":e(te),finalizing:e(u),"active-filter":le.value,"total-wasted-time":Fe.value,"onUpdate:showCustomData":q[0]||(q[0]=pe=>te.value=pe),onFilterStatus:ve,onLabelUpdated:e(h)},null,8,["test-run","display-progress","all-reports","show-custom-data","finalizing","active-filter","total-wasted-time","onLabelUpdated"])):m("",!0)]),"tab-test-cases":i(()=>[e(de)!=null?(s(),a("div",Tr,[l(Gt,{color:"info",variant:"subtle",size:"sm"},{default:i(()=>[...q[8]||(q[8]=[_(" Filtered by failure group ",-1)])]),_:1}),l(et,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-x",label:"Clear filter",onClick:Ne})])):m("",!0),l(Xt,{ref_key:"testCasesListRef",ref:gt,search:e(se),"onUpdate:search":q[1]||(q[1]=pe=>je(se)?se.value=pe:null),"active-statuses":e(fe),"onUpdate:activeStatuses":q[2]||(q[2]=pe=>je(fe)?fe.value=pe:null),"browser-filter":e(be),"onUpdate:browserFilter":q[3]||(q[3]=pe=>je(be)?be.value=pe:null),"test-cases":e(T),suites:e(r)?.suites??[],"is-live":x.value,"live-steps":e(W),"failure-cluster-filter":e(de),"project-key":e(r)?.projectId,"project-name":e(r)?.project?.name,class:"flex-1 min-h-0"},null,8,["search","active-statuses","browser-filter","test-cases","suites","is-live","live-steps","failure-cluster-filter","project-key","project-name"])]),"tab-insights":i(()=>[l(qt,{"test-run-id":Number(e(c)),"run-status":e(r)?.status??"","refresh-key":e(we),class:"flex-1 min-h-0 p-4"},null,8,["test-run-id","run-status","refresh-key"])]),"tab-failure-groups":i(()=>[l(Yt,{"refresh-key":e(we),onSelectCluster:Wt},null,8,["refresh-key"])]),"tab-regression":i(()=>[l(Jt,{"refresh-key":e(we)},null,8,["refresh-key"])]),"tab-workers":i(()=>[l(Zt,{"test-cases":e(N),"setup-steps":e(r)?.setupSteps??null,"shard-total":e(r)?.shardTotal??null,live:x.value,"wasted-patterns":e(r)?.wastedWaitPatterns??null,onSelectTestCase:Kt},null,8,["test-cases","setup-steps","shard-total","live","wasted-patterns"])]),"tab-compare":i(()=>[l(Qt,{"test-run":e(r)},null,8,["test-run"])]),"tab-endpoints":i(()=>[l(es,{"refresh-key":e(we),class:"flex-1 min-h-0",onEndpointsCount:q[4]||(q[4]=pe=>Re.value=pe)},null,8,["refresh-key"])]),_:1},8,["modelValue","tab-items"])]),_:1}),l(as,null,{default:i(()=>[l(ns,{open:e(f),title:"Delete test run","onUpdate:open":q[7]||(q[7]=pe=>f.value=pe)},{body:i(()=>[n("p",null,[q[9]||(q[9]=_(" Are you sure you want to delete ",-1)),n("strong",null,"Test Run #"+o(e(r)?.id),1),q[10]||(q[10]=_("? This will also remove all associated test results, reports, and traces. This action cannot be undone. ",-1))])]),footer:i(()=>[l(et,{color:"neutral",variant:"ghost",label:"Cancel",onClick:q[6]||(q[6]=pe=>f.value=!1)}),l(et,{color:"error",label:"Delete",icon:"i-lucide-trash-2",loading:e(C),onClick:Z},null,8,["loading"])]),_:1},8,["open"])]),_:1})],64)}}});export{ju as default};
|