pokemon-world
pokemon-world copied to clipboard
test: add more ui test using POM
halo @afiiif salam kenal đđģ
saya coba nambahin Playwright E2E Test nya sama pake Page-Object-Model
mohon review nya đ
test result
Someone is attempting to deploy a commit to a Personal Account owned by @afiiif on Vercel.
@afiiif first needs to authorize it.
Halo Mas @depapp, thank you PRnya. Aku udah cek changesnya..
Ada bbrp feedback dr aku,
1ī¸âŖ Kalo yg mas bikin itu independen ya antara ngetes filter sendiri, ngetes search sendiri, & ngetes compare sendiri. Kalo yg sebelumnya (https://github.com/afiiif/pokemon-world/blob/main/e2e/index.spec.ts), di situ aku berkesinambungan.
- Ngecek milih generasi,
http://localhost:3000/?gen=1
. - Ngecek search by name (nah di sini URL param yg dari milih generasi
gen=1
itu dicek expected buat tetep ada,http://localhost:3000/?q=pika&gen=1
).
Nah menurutku bagusnya ada mengcover case yg saling dependen jg.
2ī¸âŖ Yg sebelumnya mengcover lebih byk case:
- Filter generation
- Search by name
- Dari hasil filter itu diklik cardnya (ke halaman detail pokemon)
- Dari halaman detail pokemon itu ke bagian compare with, masukin pokemon lain & redirect ke compare pokemon.
- Nambahin pokemon lagi buat dicompare (skrg compare pikachu-squirtle-charmander)
- Remove Squirtle dr comparison
- Dari halaman compare, bagian Charmander, klik detail & masuk ke halaman detail Charmander
Yg di PR baru mencakup poin 1,2,5
âšī¸ Btw aku sebelumnya langsung pake Playwright Test Generator:
npx playwright codegen http://localhost:3000/
terima kasih mas @afiiif untuk review nya, next nya akan saya update sesuai dengan concern nya đđģ
@depapp tadi aku ada nambahin bbrp test case lagi. Cek branch main terbaru ya...