# Pair-GPT-Programming ---- :thinking_face: What is this talk about? :writing_hand: Generate BDD Playwright tests with ChatGPT :brain: Thoughts: Where can AI step in? --- ## What is this talk about? ***"Hey** _Favorite-LLM-Of-Choice,_ **write this function for me."*** :sleeping: ***"My workflow partner:** _Favorite-LLM-Of-Choice_ **"*** :sunglasses: --- ## Generate BDD Playwright tests with ChatGPT ---- ### Step 1: Make a plan ```sequence Note left of Lars: Lars prepares user story Lars->GPT: Check out this user story! GPT->Lars: This user story is about xy right? Note left of Lars: Lars checks & responds Lars->GPT: Generate step definitions as per schema GPT->Lars: Check out this cucumber steps! Note left of Lars: Lars implements steps Lars->GPT: Generate scenarios with given steps GPT->Lars: Check out those scenarios Note left of Lars: Lars runs tests ``` ---- ### Step 2: Check user story ![image.png](https://hackmd.io/_uploads/r1Fu-r8mp.png) ---- ### Step 2: Check user story ![image.png](https://hackmd.io/_uploads/Bk8lWHLQT.png) ---- ### Step 3: Generate step definitions ![image.png](https://hackmd.io/_uploads/BkXh7r87a.png) ---- ### Step 3: Generate step definitions ![image.png](https://hackmd.io/_uploads/HyUIVHImT.png) ---- ### Step 4: Implement steps - Implement, adjust and add missing steps ---- ### Step 5: Generate scenarios ![image.png](https://hackmd.io/_uploads/S1qQ4H87T.png) ---- ### Step 5: Generate scenarios ![image.png](https://hackmd.io/_uploads/r1JSEH87p.png) ---- ### Step 5: Run ![](https://media.tenor.com/9sVaAvtxvDsAAAAC/stonks-meme.gif) ---- ### Step X: Improve plan ```sequence Lars->GPT: Check out this mock/screenshot! Lars->GPT: How would you achieve user story xy? GPT->Lars: This is how I would expect UI to react. Note right of GPT: Passiv usability test Lars-->GPT: ... Note over Lars: Continue with previous plan ``` --- # Side effects: - Highlight the unconventional - Fail fast (e.g. problems in steps) - "User" without pre existing knowledge - Usability - If AI can't handle your product, can your customer? --- ## Where can AI step in? - How do you use it? - What did work well, what didn't?
{"title":"Pair-GPT-Programming","description":"This note is yours, feel free to play around. Type on the left and see the rendered result on the right. ","slideOptions":"{\"theme\":\"white\"}","contributors":"[{\"id\":\"b80add1e-0191-425d-8054-268fb322c0c2\",\"add\":5943,\"del\":3713}]"}
    81 views