[{"data":1,"prerenderedAt":246,"buildId":247},["ShallowReactive",2],{"\u002Fautomations\u002Ftesting":3,"\u002Fautomations\u002Ftesting-surround":160,"navigation":173},{"id":4,"title":5,"body":6,"description":151,"extension":152,"meta":153,"navigation":154,"path":156,"seo":157,"stem":158,"__hash__":159},"docs\u002F2.automations\u002F06.testing.md","Testing",{"type":7,"value":8,"toc":143},"minimark",[9,17,22,46,68,75,79,82,100,103,109,113],[10,11,12,16],"p",{},[13,14,15],"strong",{},"Test"," runs your current draft, as it is right now, on a file you choose. You don't need to publish first, and the workflow doesn't need to be active.",[18,19,21],"h2",{"id":20},"running-a-test","Running a test",[23,24,25,32,40],"ol",{},[26,27,28,29,31],"li",{},"Click ",[13,30,15],{}," in the editor's header.",[26,33,34,35,39],{},"Choose a file. For a ",[36,37,38],"em",{},"Tag added"," trigger, also choose the tag that was \"added\".",[26,41,28,42,45],{},[13,43,44],{},"Start test",".",[10,47,48,49,52,53,52,56,59,60,63,64,67],{},"The editor shows the test's progress on the canvas and in the outline: each step gets its result (",[36,50,51],{},"Succeeded",", ",[36,54,55],{},"Skipped",[36,57,58],{},"Failed","), and selecting a step shows what it received and produced in the settings panel. ",[13,61,62],{},"Details"," opens the full test run, and ",[13,65,66],{},"Clear test results"," removes the results from the editor.",[10,69,70,71,74],{},"For an ",[13,72,73],{},"intake"," workflow, the file you choose stands in for an upload: its content becomes the trigger's content, as if it had just been received. Nothing is reserved and no links are made.",[18,76,78],{"id":77},"what-a-test-changes","What a test changes",[10,80,81],{},"Nothing in your library. A test runs against a private copy of the files it touches:",[83,84,85,88,91,94,97],"ul",{},[26,86,87],{},"Renames, moves and tags change the copy, and later steps in the test see those changes.",[26,89,90],{},"Tags and folders the test would create exist only in the test.",[26,92,93],{},"Save file creates a file only in the test.",[26,95,96],{},"A share link is a placeholder that doesn't work.",[26,98,99],{},"Moving to Trash only hides the file from later steps.",[10,101,102],{},"No events are recorded, so a test never starts other workflows. The copy is thrown away when the test ends.",[10,104,105,108],{},[13,106,107],{},"Content steps run for real."," Strip metadata, Resize, Compress and the other image steps process the actual bytes in the test, so their results (sizes, dimensions) are real. Those working copies are deleted when the test ends.",[18,110,112],{"id":111},"things-to-know","Things to know",[83,114,115,118,126,136],{},[26,116,117],{},"The test uses a snapshot of the draft taken when it starts. Editing the draft while a test runs doesn't affect that test.",[26,119,120,121,125],{},"If the trigger's filters wouldn't accept the chosen file (say, a PDF for a workflow limited to ",[122,123,124],"code",{},"image\u002F*","), the test is refused instead of skipping every step.",[26,127,128,129,132,133,135],{},"Test runs show in the workflow's ",[13,130,131],{},"Runs"," tab marked ",[13,134,15],{},". They don't count as the workflow's last run or its failures, and they can't be retried.",[26,137,138,139,142],{},"A draft with errors in the Problems list can't be tested. Steps that only ",[36,140,141],{},"need setup"," must be filled in first too.",{"title":144,"searchDepth":145,"depth":146,"links":147},"",2,3,[148,149,150],{"id":20,"depth":145,"text":21},{"id":77,"depth":145,"text":78},{"id":111,"depth":145,"text":112},"Run a draft on a real file and see what every step would do, without changing your library.","md",{},{"icon":155},"i-lucide-flask-conical","\u002Fautomations\u002Ftesting",{"title":5,"description":151},"2.automations\u002F06.testing","UT0VB4TlVmLTYbIw8_S7qVOAsYVfoS4qLQZMvBK10h8",[161,167],{"title":162,"path":163,"stem":164,"description":165,"icon":166,"children":-1},"Conditions and branching","\u002Fautomations\u002Fbranching","2.automations\u002F05.branching","Send files down different paths with Condition and Switch, and understand how branches skip and join.","i-lucide-split",{"title":168,"path":169,"stem":170,"description":171,"icon":172,"children":-1},"Upload intake","\u002Fautomations\u002Fintake","2.automations\u002F07.intake","Process uploads before they reach your library, and choose which uploads go through which workflow.","i-lucide-inbox",[174,183],{"title":175,"path":176,"stem":177,"children":178,"icon":182},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[179],{"title":180,"path":176,"stem":177,"icon":181},"Introduction","i-lucide-house",false,{"title":184,"path":185,"stem":186,"children":187,"icon":182},"Automations","\u002Fautomations","2.automations\u002F01.index",[188,191,196,201,206,207,208,209,214,219,230],{"title":189,"path":185,"stem":186,"icon":190},"Overview","i-lucide-workflow",{"title":192,"path":193,"stem":194,"icon":195},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","2.automations\u002F02.first-workflow","i-lucide-rocket",{"title":197,"path":198,"stem":199,"icon":200},"The editor","\u002Fautomations\u002Feditor","2.automations\u002F03.editor","i-lucide-mouse-pointer-2",{"title":202,"path":203,"stem":204,"icon":205},"Values and templates","\u002Fautomations\u002Fvalues","2.automations\u002F04.values","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":166},{"title":5,"path":156,"stem":158,"icon":155},{"title":168,"path":169,"stem":170,"icon":172},{"title":210,"path":211,"stem":212,"icon":213},"Quarantine and failures","\u002Fautomations\u002Fquarantine","2.automations\u002F08.quarantine","i-lucide-shield-alert",{"title":215,"path":216,"stem":217,"icon":218},"Runs and history","\u002Fautomations\u002Fruns","2.automations\u002F09.runs","i-lucide-history",{"title":220,"icon":221,"path":222,"stem":223,"children":224,"page":182},"Guides","i-lucide-book-open","\u002Fautomations\u002Fguides","2.automations\u002F10.guides",[225],{"title":226,"path":227,"stem":228,"icon":229},"Compress and resize uploads","\u002Fautomations\u002Fguides\u002Fcompress-uploads","2.automations\u002F10.guides\u002F1.compress-uploads","i-lucide-file-image",{"title":231,"icon":232,"path":233,"stem":234,"children":235,"page":182},"Reference","i-lucide-library","\u002Fautomations\u002Freference","2.automations\u002F11.reference",[236,241],{"title":237,"path":238,"stem":239,"icon":240},"Step reference","\u002Fautomations\u002Freference\u002Fsteps","2.automations\u002F11.reference\u002F1.steps","i-lucide-blocks",{"title":242,"path":243,"stem":244,"icon":245},"Limits and errors","\u002Fautomations\u002Freference\u002Flimits","2.automations\u002F11.reference\u002F2.limits","i-lucide-gauge",1796146074619,"7701d6d7-f1dc-48af-abe7-a8319dcc587e"]