Hello everyone, this adds the integration test. As we continue to flesh out our app, we can add more of these. For now, this one tests:
Login with moodle invalid username and password fails and throws error
Login as Guest correctly pulls a saved assessment
Teacher Dashboard looks correct
Create Assessment Form works as expected when not logged into moodle
Add Questions form works as expected when there is no API key
Cancel and back buttons work as expected.
Overall this doesn't test the following situations as these things are harder to mock:
Logging in with moodle
Correct call to Perplexity
Error when parsing the data that comes back from perplexity
However, these have all been tested extensively by me manually.
I have also added this to GitHub Actions to run after the test function. I will be testing that on this pull request as well, it should bring our "Checks" up from 2 checks to 3.
Let me know if you have any questions. Thanks for the review.
Hello everyone, this adds the integration test. As we continue to flesh out our app, we can add more of these. For now, this one tests:
Overall this doesn't test the following situations as these things are harder to mock:
However, these have all been tested extensively by me manually.
I have also added this to GitHub Actions to run after the test function. I will be testing that on this pull request as well, it should bring our "Checks" up from 2 checks to 3.
Let me know if you have any questions. Thanks for the review.