Today I started working on the update tests for Micropub.rocks. There is a bit more involved with these tests than tests for simpler things like creating posts, since the site has to create a dummy post that can be edited.
When you first visit the update test page, it will create a post and store it internally.
![](https://aaronparecki.com/2017/03/08/12/image-1.png)
Your client can (but doesn't have to in order to pass the test) query the Micropub endpoint to request the source properties.
![](https://aaronparecki.com/2017/03/08/12/image-2.png)
Your client then sends the request to add the "foo" property:
![](https://aaronparecki.com/2017/03/08/12/image-3.png)
And watch as the test page updates with the new post!
![](https://aaronparecki.com/2017/03/08/12/image-4.png)
Now that I have this infrastructure in place for caching the post internally, and responding to source queries, the rest of the update tests should go quickly!