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

[ReviewEntriesActions] Fix flag not saving; Add tests for note and flag #2668

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Oct 3, 2023

Resolves "3rd of October, 2023 - Test Observations and Notes" no. 3
Resolves #2677


This change is Reviewable

@imnasnainaec imnasnainaec self-assigned this Oct 3, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
...viewEntriesComponent/Redux/ReviewEntriesActions.ts 63.23% <100.00%> (+0.54%) ⬆️

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)


src/goals/ReviewEntries/ReviewEntriesComponent/tests/ReviewEntriesActions.test.tsx line 260 at r1 (raw file):

        oldRevWord.flag = newFlag(oldFlagText);
        const oldFrontierWord = mockFrontierWord();
        oldRevWord.flag = newFlag(oldFlagText);

This doesn't seem right to me. I don't see how this tests removing the flag, what am I missing?

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)


src/goals/ReviewEntries/ReviewEntriesComponent/tests/ReviewEntriesActions.test.tsx line 260 at r1 (raw file):

Previously, jasonleenaylor (Jason Naylor) wrote…

This doesn't seem right to me. I don't see how this tests removing the flag, what am I missing?

Line 263 below, await makeDispatch(mockReviewEntriesWord(), oldRevWord);, has as its first argument a word without a flag added to replace the OldRevWord which has a flag.

@imnasnainaec imnasnainaec enabled auto-merge (squash) October 9, 2023 15:39
@imnasnainaec imnasnainaec disabled auto-merge October 9, 2023 19:01
@imnasnainaec imnasnainaec merged commit c0b2bcf into master Oct 9, 2023
16 checks passed
@imnasnainaec imnasnainaec deleted the review-entries-flag branch October 9, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Added Flag in Review Entries not reflecting after refreshing the page
3 participants