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

Add FXIOS-21299 TabTrayStateTests #24235

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yusuphjoluwasen
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

💡 Description

Added Test for TabTrayState
Added unit tests for TabTrayAction with TabTrayActionType:

  • didLoadTabTray
  • changePanel
  • dismissTabTray
  • firefoxAccountChanged

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@yusuphjoluwasen yusuphjoluwasen requested a review from a team as a code owner January 19, 2025 23:23
@FilippoZazzeroni FilippoZazzeroni self-requested a review January 20, 2025 09:09
Copy link
Collaborator

@FilippoZazzeroni FilippoZazzeroni left a comment

Choose a reason for hiding this comment

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

@yusuphjoluwasen thanks a lot for the contribution you did great job 🎉 , only one side thing i see that some test cases are missing since TabTrayState is handling more cases, could you please add them. here is a list:

  • didChangePanel
  • refreshTabs
  • showToast
  • closeAllTabs
  • defaultState

@FilippoZazzeroni FilippoZazzeroni removed the request for review from mdotb-moz January 20, 2025 09:21
Copy link
Collaborator

@FilippoZazzeroni FilippoZazzeroni left a comment

Choose a reason for hiding this comment

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

This is great Thanks so much 🎉 i see only that defaultState is missing, i know you added testInitialState and it s great but default state it is a different method.

@testable import Client

final class TabTrayStateTests: XCTestCase {

Copy link
Collaborator

Choose a reason for hiding this comment

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

Super neat: we can delete this line.

@FilippoZazzeroni FilippoZazzeroni self-requested a review January 21, 2025 15:42
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.

2 participants