uprm-inso4117-2023-2024-s2 / semester-project-study-pet

semester-project-study-pet created by GitHub Classroom
1 stars 3 forks source link

`eat` tests #310

Closed CaribbeanCool closed 2 months ago

CaribbeanCool commented 3 months ago

Description

This is a test file for the Eat page and minigame

close #305

PinkSylvie commented 3 months ago

Hello! I'd like to run the tests, can you explain how are they supposed to turn out? Tho in previous experience my computer couldn't handle well BDD tests

CaribbeanCool commented 3 months ago

@PinkSylvie There are 4 tests:

  1. The test navigates to the eat page properly -> should run perfectly
  2. The test makes sure that the page displays you are full! -> should run when the hunger is above 10
  3. The test for making sure that the minigame is playable -> should run normally; depends on the pet's hunger being above 10
  4. the test for getting 0/5 in the minigame -> also should run normally; depends on the pet's hunger being above 10
CaribbeanCool commented 3 months ago

@gabrielpadilla7 in eatPage.test.js, there is a variable called port where you can change it to the port expo gives you for web image

gabrielpadilla7 commented 3 months ago

It still doesn't work on my end. Can someone else test this and let me know if it's just on my end or if it's an issue on some computers?

@irsaris @joel-alvarado @PinkSylvie @Fabian-J @JorgeC08

FrHend-Raul commented 3 months ago

A mi al menos me corrio

image

En este run, corrio con el hunger full, so no pudo jugar el minigame (eso son los fails que son de esperar).

image

En este run, corrio con el hunger a 30, en ese el unico fail fue que no vio el Hunger full! screen lo cual era de esperar y se vio que en la anterior corrida trabajo como se supone.

CaribbeanCool commented 2 months ago

@PinkSylvie Can i merge?

PinkSylvie commented 2 months ago

Sorry for taking a bit, how do I run the tests?

PinkSylvie commented 2 months ago

Got these errors when running. The 5000 could an issue my laptop has with the tests. image But these are new that I didnt get when I ran similar tests for others tasks: image image

CaribbeanCool commented 2 months ago

@PinkSylvie I only made eatPage.test.js. The other tests are from different people. If I'm not wrong, studypet.test.js was made during the beginning of Milestone 2, meaning that the person hasn't updated the tests. When the 5000 appears, run the test again.

PinkSylvie commented 2 months ago

I've ran several recent tests made for this milestone and the past one and have had the same 5000 error appear for any that have pop ups

CaribbeanCool commented 2 months ago

@PinkSylvie I added more time to the timeout if that works. With that to the side, I think it's ready to merge

PinkSylvie commented 2 months ago

image It should be since others were able to run it and it seems to be an issue with my device not with the code except with this, which concerns me since it is also related to the eat tests.

CaribbeanCool commented 2 months ago

That error is very weird