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

(PC-32111) feat(XPCine): add a button anchor to access to screenings #7251

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

xlecunff-pass
Copy link
Contributor

@xlecunff-pass xlecunff-pass commented Nov 20, 2024

Link to JIRA ticket: https://passculture.atlassian.net/browse/PC-32111

Checklist

I have:

  • Made sure my feature is working on web.
  • Made sure my feature is working on mobile (depending on relevance : real or virtual devices)
  • Written unit tests native (and web when implementation is different) for my feature.
  • Added a screenshot for UI tickets or deleted the screenshot section if no UI change
PC-32111-android.mov

Copy link

sonarcloud bot commented Nov 25, 2024

Copy link

sonarcloud bot commented Nov 25, 2024


await userEvent.press(button)

expect(useScrollToAnchorSpy).toHaveBeenCalledWith()
Copy link
Contributor

Choose a reason for hiding this comment

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

pourquoi le 'with' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

car on ne peut pas appeler toHaveBeenCalled() sans avoir d'erreur à cause de notre linter, le but est simplement de voir si la fonction a été appelée dans ce test sans se soucier des paramètres passée à la fonction

@xlecunff-pass xlecunff-pass merged commit d1488fc into master Nov 28, 2024
53 checks passed
@xlecunff-pass xlecunff-pass deleted the PC-32111 branch November 28, 2024 11:22
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.

3 participants