community-content icon indicating copy to clipboard operation
community-content copied to clipboard

[SUBMIT] How to create automated tests for Strapi API using PactumJS

Open a7medayman6 opened this issue 2 years ago • 4 comments

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!

a7medayman6 avatar Sep 25 '22 18:09 a7medayman6

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.

a7medayman6 avatar Sep 25 '22 18:09 a7medayman6

Hello @PaulBratslavsky @Mcastres ,

Can I start working on the draft?

a7medayman6 avatar Sep 27 '22 13:09 a7medayman6

@a7medayman6 yes you can start working on this. Thank you.

PaulBratslavsky avatar Oct 11 '22 09:10 PaulBratslavsky

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 avatar Oct 11 '22 21:10 a7medayman6

@a7medayman6 I will mark it as on hold but it will still be assigned to you.

PaulBratslavsky avatar Oct 19 '22 12:10 PaulBratslavsky

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.

a7medayman6 avatar Dec 20 '22 15:12 a7medayman6

Hello @PaulBratslavsky, @Mcastres, Here is my Draft. Let me know when you get the chance to review it.

Thanks.

a7medayman6 avatar Dec 28 '22 09:12 a7medayman6

@dessireugarte, @PaulBratslavsky, @Mcastres, Is there any updates?

a7medayman6 avatar Jan 04 '23 10:01 a7medayman6

@a7medayman6 we added to the review cue will let you know when it is complete.

PaulBratslavsky avatar Jan 13 '23 20:01 PaulBratslavsky

@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 avatar Feb 16 '23 19:02 PaulBratslavsky

@PaulBratslavsky Thank you.

a7medayman6 avatar Feb 18 '23 00:02 a7medayman6

@PaulBratslavsky @dessireugarte Are there any updates?

a7medayman6 avatar Feb 22 '23 13:02 a7medayman6

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 avatar Mar 30 '23 13:03 dessireugarte

@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.

a7medayman6 avatar May 18 '23 11:05 a7medayman6

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.

dessireugarte avatar May 24 '23 14:05 dessireugarte

Thank you @dessireugarte, I submitted both forms.

a7medayman6 avatar May 31 '23 10:05 a7medayman6

Thank you @a7medayman6! I submitted your invoice to the Finance team, you should be getting your payment in the next two weeks.

dessireugarte avatar May 31 '23 12:05 dessireugarte