Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Issue #227 #230

Merged
merged 3 commits into from
Feb 9, 2025
Merged

Fix: Issue #227 #230

merged 3 commits into from
Feb 9, 2025

Conversation

teamomiamigo
Copy link
Collaborator

What was changed
Updated the MorePage Tests:
they have been updated to align with the redesigned UI and the new functionalities that have been added. In particular, the tests now properly await async operations and verify the presence of all the main menu items and any modal behaviors that are present in the MoreScreen. The test for the logout button was failing because it wasn’t being properly tracked, and that has been fixed as well, as well as figuring out which are async and await to guarantee that the UI updates completely before anything is done.

Why it was changed:
the MoreScreen was changed, and because of this various test cases were failing and not in correlation with the new MoreScreen. These changes in the test file were necessary to ensure that all aspects of the MorePage component-from rendering to functionality-are all reliably tested.

How it was changed
test functions were updated in relation to the UI structure and the structure of the code of the new MoreScreen.

  • Test functions updated (properly using await and async)
  • tests assert rendering all of the expected text in all of the categories in the MoreScreen and all the modal behaviors present
  • fixing anything for mocking and logging and fetching network calls, logging, and anything else that might interfere with the tests.

all the previous commits before mine are made from the updateTabBar branch that Karthik had been previously working on and where he updated the morepage.

@teamomiamigo teamomiamigo self-assigned this Feb 3, 2025
@teamomiamigo teamomiamigo linked an issue Feb 3, 2025 that may be closed by this pull request
9 tasks
@teamomiamigo teamomiamigo changed the base branch from main to updateBottomTabBar February 3, 2025 22:40
Copy link
Collaborator

@rcAsironman rcAsironman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teamomiamigo Good effort! I like the way you mentioned the comments—good job. However, all checks have failed, and one test case is failing.
Take a look at this one:
'MorePage - Main View › should call logout when the Logout menu item is pressed.'
Also, write test cases for all the functionalities present in MorePage.

Note:

  • Pull the latest code from the updateBottomTabBar branch and start working on it. This will help you resolve the 'All checks have failed' issue.
  • Run the tests before committing the code.

@teamomiamigo
Copy link
Collaborator Author

@teamomiamigo Good effort! I like the way you mentioned the comments—good job. However, all checks have failed, and one test case is failing. Take a look at this one: 'MorePage - Main View › should call logout when the Logout menu item is pressed.' Also, write test cases for all the functionalities present in MorePage.

Note:

  • Pull the latest code from the updateBottomTabBar branch and start working on it. This will help you resolve the 'All checks have failed' issue.
  • Run the tests before committing the code.

the extra test cases are added and the morescreen.test.tsx runs and passes when doing yarn test -u.

Copy link
Collaborator

@rcAsironman rcAsironman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teamomiamigo Fantastic job! Also, please add test cases for the carousel, as well as for the dark mode and light mode components.

Copy link
Collaborator

@rcAsironman rcAsironman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rcAsironman rcAsironman merged commit da179d2 into updateBottomTabBar Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update and Write Test Cases for More Page Functionalities
2 participants