wargabantuwarga.com icon indicating copy to clipboard operation
wargabantuwarga.com copied to clipboard

Write some e2e tests for `Contact` page to avoid regressions

Open zainfathoni opened this issue 3 years ago • 8 comments

zainfathoni avatar Jul 25 '21 14:07 zainfathoni

Hello, I have a little experience in writing e2e testing by using Cypress. Is there any consideration on using some particular library to do the e2e?

fauzialz avatar Aug 11 '21 16:08 fauzialz

Hello, I have a little experience in writing e2e testing by using Cypress. Is there any consideration on using some particular library to do the e2e?

The only considerations are:

  1. It should work well with Cypress
  2. It should comply with this testing guiding principles defined by the Testing Library community

According to our contributing guidelines, please create a draft pull request when you start working on it.

zainfathoni avatar Aug 13 '21 05:08 zainfathoni

Hi, @fauzialz do you wanna take this ticket?

iamyuu avatar Oct 05 '21 05:10 iamyuu

Hi, @fauzialz do you wanna take this ticket?

Hello. Sorry for late response. You can take it if you want 👍

fauzialz avatar Oct 05 '21 14:10 fauzialz

Hi @zainfathoni , I can write a few e2e tests for the Contact page. Is /kontak-darurat the contact page? And what sort of tests are you expecting? Thanks.

shyambh avatar Oct 07 '22 07:10 shyambh

Hi @zainfathoni , I can write a few e2e tests for the Contact page. Is /kontak-darurat the contact page? And what sort of tests are you expecting? Thanks.

No, Contact page is the details page for each entry in a given province. e.g., https://www.wargabantuwarga.com/provinces/dki-jakarta/bantuan-kebutuhan-pokok-layanan-antar-pangan-gratis-banten-act-humanity-care-line-08001165228

You can refer to the unit testing scenarios for the page and come up with your own end-to-end testing scenarios.

zainfathoni avatar Oct 07 '22 11:10 zainfathoni

Btw, this project is considered dormant. If you want to contribute to a recent project that I am actively maintaining at the moment, you can look at this project instead: https://github.com/zainfathoni/senar.ai.

zainfathoni avatar Oct 07 '22 11:10 zainfathoni

Ok. I will look into that project instead.

shyambh avatar Oct 07 '22 11:10 shyambh