uprm-inso4117-2023-2024-s2 / semester-project-uprmarketplace

semester-project-uprmarketplace created by GitHub Classroom
0 stars 1 forks source link

[Lecture Topic Task] Perform BDD testing for the login/Page with password #143

Closed JuanJRivera closed 6 months ago

JuanJRivera commented 7 months ago

This pull request introduces a comprehensive suite of BDD tests for the LogIn component using Jest and the React Testing Library. The tests are structured to follow the behavior-driven development principles, providing clear scenario-based validations for the login process.

Added BDD tests for scenarios including invalid email input, successful login navigation, and error handling for incorrect credentials. Utilized the Gherkin syntax for test descriptions to enhance readability and maintainability. Mocked necessary dependencies like expo-router and Alert from react-native to ensure our tests are focused on the component behavior.

Urgency: 1 Difficulty: 5