community-content
community-content copied to clipboard
[SUBMIT] How to create automated tests for Strapi API using PactumJS
A beginner’s guide on how to create and run automated tests for Strapi API using PactumJS.
Outline
- Introduction
- What is Strapi?
- What is PactumJS?
- Setting up Strapi locally
- Create a demo To-do List back-end app using Strapi
- Setting up PactumJS
- Making requests
- GET request with parameters
- POST request
- DELETE request
- More request types
- Response validation
- Basic assertions
- Basic matching techniques
- Conclusion
My content is
- [x] A Strapi Tutorial / Guide / How to article
- [ ] About Headless, CMS, javascript, open source, or jamstack
- [ ] Other, specify
What do you all think? ❤️ I love it! 🚀 I can help you!
Hello!
I'm very excited to start working on my first article for Strapi, please let me know when can I start working on the draft.
Hello @PaulBratslavsky @Mcastres ,
Can I start working on the draft?
@a7medayman6 yes you can start working on this. Thank you.
Hello @PaulBratslavsky ,
Unfortunately I won't be available for the next couple of weeks, but I will work on it as soon as I can, keep it assigned to me please.
Thank you.
@a7medayman6 I will mark it as on hold but it will still be assigned to you.
Hello @PaulBratslavsky, sorry for the late reply, I had something going on. I started working on the draft, I will finish it as soon as I can and share it with you.
Thank you.
Hello @PaulBratslavsky, @Mcastres, Here is my Draft. Let me know when you get the chance to review it.
Thanks.
@dessireugarte, @PaulBratslavsky, @Mcastres, Is there any updates?
@a7medayman6 we added to the review cue will let you know when it is complete.
@a7medayman6 one small tiny change otherwise the article looks good. Great job. I added the message in the drop box doc you shared. Thanks.
@PaulBratslavsky Thank you.
@PaulBratslavsky @dessireugarte Are there any updates?
Hello @a7medayman6! I'm very sorry for the delay. Your article is live! 🎉
You should register yourself once as an "Individual Vendor," please fill out this form. If you have any questions about the form, please do not hesitate to ask. Please note that in the W-8BEN form, section 5 is not mandatory, and sections 6a & 6b are only required if you have a tax number in your country.
You should submit your invoice to receive payment for your work here. Please feel free to reach out to us if you have any further questions.
@dessireugarte Hello, Sorry for being late, I was very busy. I have a question about the invoice, what is the verfication link? I don't think my bank provides this.
Hello @a7medayman6! You just need to provide an image or anything as proof that your account is a real bank account. Let me know if you have any other questions.
Thank you @dessireugarte, I submitted both forms.
Thank you @a7medayman6! I submitted your invoice to the Finance team, you should be getting your payment in the next two weeks.