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 integration tests on expandable calendar #2081

Merged
merged 4 commits into from Nov 28, 2022

Conversation

yuvalsho
Copy link
Contributor

@yuvalsho yuvalsho commented Nov 7, 2022

No description provided.

@Inbal-Tish
Copy link
Collaborator

@yuvalsho expandableCalendar tests faild

expect(onDateChanged).toHaveBeenCalledWith(toMarkingFormat(expectedDate), UpdateSources.PAGE_SCROLL);
});

it(`should call onDateChanged for first day of current week when changing to current week`, () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I understand this test... you pressing the right arrow, then the left arrow, and expect the date returned to be the first day of the current week, when the initial date was not the first day of the week. Right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, when I initially wrote the test I remembered we returned to today when we scrolled to this week, but after we talked I understood this was not the expected behavior and changed to the correct behavior

@Inbal-Tish Inbal-Tish self-assigned this Nov 16, 2022
@Inbal-Tish Inbal-Tish merged commit 9ccaf67 into master Nov 28, 2022
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.

None yet

2 participants