<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ankur Shrestha</title>
    <description>The latest articles on DEV Community by Ankur Shrestha (@ankur_shrestha_c97f7c0b9c).</description>
    <link>https://dev.to/ankur_shrestha_c97f7c0b9c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263602%2Faa2ffaf0-936e-4969-98f4-915b475ae997.png</url>
      <title>DEV Community: Ankur Shrestha</title>
      <link>https://dev.to/ankur_shrestha_c97f7c0b9c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ankur_shrestha_c97f7c0b9c"/>
    <language>en</language>
    <item>
      <title>Treat the screen picker as its own step</title>
      <dc:creator>Ankur Shrestha</dc:creator>
      <pubDate>Wed, 25 Nov 2026 01:36:25 +0000</pubDate>
      <link>https://dev.to/ankur_shrestha_c97f7c0b9c/treat-the-screen-picker-as-its-own-step-bcp</link>
      <guid>https://dev.to/ankur_shrestha_c97f7c0b9c/treat-the-screen-picker-as-its-own-step-bcp</guid>
      <description>&lt;p&gt;A recorder has two moments that look like one in a happy-path demo. The browser gives your app a screen stream, then your app starts writing a video. Give those moments separate states and test what happens in between.&lt;/p&gt;

&lt;p&gt;I work on Vertov, a browser screen recorder. Our &lt;a href="https://vertov.app/screen-recorder" rel="noopener noreferrer"&gt;recorder&lt;/a&gt; gives you a preview after you pick a source. Start recording is a separate action. That gap gives people a chance to spot the wrong tab or fix their mic before a take begins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep cancellation cheap
&lt;/h2&gt;

&lt;p&gt;Call &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia" rel="noopener noreferrer"&gt;getDisplayMedia()&lt;/a&gt; from a button press. A browser asks the user to choose a source each time. If they close the picker, leave them at the source selection step, with their other settings intact. The same error can cover permission and policy problems, so offer a clear retry and avoid claiming you know exactly why access failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test a source going away
&lt;/h2&gt;

&lt;p&gt;Open the picker, choose a scratch tab, then stop sharing from the browser before you press Record. The preview should clear and Record should become unavailable. Repeat while a short recording is running. This time the recording should finish cleanly, with its ending intact. Play the saved result to verify it. A status badge alone can’t tell you whether the final media data made it into the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the audio you actually received
&lt;/h2&gt;

&lt;p&gt;A screen stream may have no audio track. Browser support and the chosen capture source affect what the picker offers. Check the tracks you received and show microphone status separately from shared audio. For a useful test, record a second of tab audio with your mic off, then a second of narration with shared audio off. Play both clips back.&lt;/p&gt;

&lt;p&gt;The order I’d test is cancel, pick again, lose the source before recording, lose it during recording, then check the audio. You can try the flow in &lt;a href="https://vertov.app/" rel="noopener noreferrer"&gt;Vertov&lt;/a&gt; to see how a source preview and the record action work together.&lt;/p&gt;

</description>
      <category>browser</category>
      <category>javascript</category>
      <category>testing</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Give an AI agent a bug video it can verify</title>
      <dc:creator>Ankur Shrestha</dc:creator>
      <pubDate>Wed, 25 Nov 2026 00:46:19 +0000</pubDate>
      <link>https://dev.to/ankur_shrestha_c97f7c0b9c/give-an-ai-agent-a-bug-video-it-can-verify-449j</link>
      <guid>https://dev.to/ankur_shrestha_c97f7c0b9c/give-an-ai-agent-a-bug-video-it-can-verify-449j</guid>
      <description>

&lt;p&gt;&lt;a href="https://vertov.app/#agent-recording" rel="noopener noreferrer"&gt;Watch the checkout demo on Vertov&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A shipping form can look fine in a screenshot and still be impossible to finish. In our mobile checkout demo, the address field brings up the keyboard and the &lt;strong&gt;Continue&lt;/strong&gt; button disappears underneath it. The bug is the sequence. You need to see the screen before the keyboard opens and what happens after.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://vertov.app/" rel="noopener noreferrer"&gt;Vertov&lt;/a&gt;. Here’s the handoff I’d use, with the acceptance criteria written so I can check a returned recording myself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Record the behavior
&lt;/h2&gt;

&lt;p&gt;Set the browser to the mobile viewport where you see the bug. Start on Shipping address with the keyboard closed. Focus the address field, let the keyboard settle, and show exactly where Continue ends up. Keep the recording on that state for a beat. Use test data and a demo checkout. For an example ticket with timestamps, see &lt;a href="https://vertov.app/blog/how-to-record-a-bug" rel="noopener noreferrer"&gt;how to record a bug someone else can reproduce&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Send a short brief
&lt;/h2&gt;

&lt;p&gt;Give your agent the recording and the smallest set of details it needs.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Starting state&lt;/strong&gt; Open Shipping address in the mobile checkout.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reproduce&lt;/strong&gt; Focus the street address field. The keyboard covers Continue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expected&lt;/strong&gt; With the keyboard still up, Continue remains visible and usable. Tapping Continue opens Review order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Return&lt;/strong&gt; Record the same flow after the change. Show the keyboard, the tap, and the screen that opens.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Vertov’s &lt;strong&gt;Copy for an AI agent&lt;/strong&gt; gives you a recording brief you can paste into an agent that takes text. To let a compatible agent fetch context from your Vertov workspace, connect the remote MCP server through OAuth and follow the documented tool permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify from the returned recording
&lt;/h2&gt;

&lt;p&gt;Replay the last few seconds. Look for the open keyboard, the actual tap on Continue, and the Review order screen. A clip that starts after the keyboard closes leaves the bug untested.&lt;/p&gt;

&lt;p&gt;If your agent has a supported browser recording or upload workflow, ask it for a link to the returned video. Otherwise, run the same reproduction yourself and add the resulting clip to the PR. Either way, the acceptance test is the same.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://vertov.app/docs/mcp" rel="noopener noreferrer"&gt;Vertov MCP setup and permissions&lt;/a&gt; · &lt;a href="https://vertov.app/for/builders" rel="noopener noreferrer"&gt;Vertov’s builder workflow&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
