PageSourceSearch

https://app.testmap.ai/_next/static/chunks/4878.ec1295be122ea410.js

js testmap.ai collected 2026-10-02 01:13:15 UTC 2,885 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4878],{64878:(e,s,t)=>{t.r(s),t.d(s,{TestStepStatusUpdate:()=>o});var a=t(91246),n=t(38494),r=t(43698),i=t(26983),d=t(85921),l=t(61362),c=t(78874),p=t(62332);function o(e){let{projectId:s,testRunId:t,testCaseId:o,stepIndex:x,currentStatus:u,onStatusChange:h,organizationId:g}=e,[j,m]=(0,n.useState)(!1),f={pending:(0,a.jsx)(i.A,{className:"h-4 w-4 text-muted-foreground"}),"in-progress":(0,a.jsx)(d.A,{className:"h-4 w-4 text-blue-500"}),passed:(0,a.jsx)(l.A,{className:"h-4 w-4 text-green-500"}),failed:(0,a.jsx)(c.A,{className:"h-4 w-4 text-red-500"}),skipped:(0,a.jsx)(p.A,{className:"h-4 w-4 text-yellow-500"})},N={pending:"text-muted-foreground","in-progress":"text-blue-500",passed:"text-green-500",failed:"text-red-500",skipped:"text-yellow-500"},v=async e=>{let a=e.replace("_","-");if(a!==(u||"pending").replace("_","-")){if(!g)return void console.error("[ERROR] TestStepStatusUpdate - organizationId is required");m(!0);try{let e="/api/projects/".concat(s,"/test-runs/").concat(t,"/test-cases/").concat(o,"/steps/").concat(x,"/status?organizationId=").concat(encodeURIComponent(g)),n=await fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({status:a})});if(!n.ok)throw Error("Error updating status: ".concat(n.statusText));let r=await n.json();h(a),r.testCaseStatus}catch(e){console.error("Failed to update step status:",e)}finally{m(!1)}}},w=(u||"pending").replace("_","-"),b=(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsxs)(r.l6,{value:w,onValueChange:v,disabled:j,children:[(0,a.jsx)(r.bq,{className:"w-32 ".concat(N[w]||N.pending),children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[f[w]||f.pending,(0,a.jsx)("span",{className:"capitalize",children:w.replace("-"," ")})]})}),(0,a.jsxs)(r.gC,{children:[(0,a.jsx)(r.eb,{value:"pending",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[f.pending,(0,a.jsx)("span",{children:"Pending"})]})}),(0,a.jsx)(r.eb,{value:"in-progress",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[f["in-progress"],(0,a.jsx)("span",{children:"In Progress"})]})}),(0,a.jsx)(r.eb,{value:"passed",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[f.passed,(0,a.jsx)("span",{children:"Passed"})]})}),(0,a.jsx)(r.eb,{value:"failed",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[f.failed,(0,a.jsx)("span",{children:"Failed"})]})}),(0,a.jsx)(r.eb,{value:"skipped",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[f.skipped,(0,a.jsx)("span",{children:"Skipped"})]})})]})]})});return b||(console.error("[DEBUG] ❌ TestStepStatusUpdate - Component returned undefined!"),(0,a.jsx)("div",{className:"text-red-500 text-xs",children:"Error rendering step status"}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.