Blogposts, discussions, eventsTest automation tipWhen doing API testing, there are many things we might want to test. For example, in this test, we're making sure that the name returns unaltered from the server. But what about the other keys? We need to take a look at the response and take a look at the response body. This is not really a problem, but it may become one when we are dealing with hundreds of tests. And this is where TypeScript becomes incredibly useful. We can create an interface that will define the board body response. What we can do is we can tell the request function to expect board to be a return type. When we now start typing expect function, the board body will start auto-completing types from our board. 1 interface Board { 2 name: string 3 user: number 4 starred: boolean 5 created: string 6 id: number 7 } 1 cy.request<Board>('/api/boards').then(board => { 2 expect(board.body.name).to.eq('new board') 3 }) Meme of the week
|
|
Sign up for weekly tips on testing, development, and everything related. Unsubscribe anytime you feel like you had enough 😊
“Too dangerous to release” has become its own genre of AI announcement. Project Glasswing is the latest entry: not quite a product launch, but a claim about a threshold, dressed up with enough corporate coalition to signal this one is serious. Anthropic says their new security-focused model, Claude Mythos Preview, can find software vulnerabilities better than all but the most skilled human experts. George Hotz challenged the “too dangerous to release” narrative by pointing at the obvious:...
Anthropic had a rough week. And the part that stings isn’t just that something went wrong - it’s how they handled it. A map file, a DMCA frenzy, and a Python loophole On March 31st, Anthropic accidentally shipped Claude Code’s TypeScript source code via a map file left in their npm package. The leak was spotted almost immediately, and GitHub repositories mirroring the code started receiving DMCA takedowns shortly after. What followed was a fairly aggressive takedown campaign by Anthropic. One...
Hello Reader, If you’ve been reading this newsletter for a while, you know that quality engineering is the hill I’ll always choose to stand on. And this week, I get to share something personal that ties directly into that. I’m joining Qodo I’ve been following Qodo for almost a year now, and I’ve been getting more and more impressed every day. So I’m thrilled to share that I’m joining Qodo as a DevRel engineer. Qodo is an enterprise multi-agent platform for AI-driven code reviews. As AI...