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

[RFR] Permission unit testing (doc + example) #2728

Merged
merged 2 commits into from
Jan 9, 2019
Merged

Conversation

Kmaschta
Copy link
Contributor

@Kmaschta Kmaschta commented Jan 4, 2019

I saw a really good question on SO: How to mock RA in order to unit test permission-based views?

So, instead of answer it directly, I wrote some doc.

EDIT: Aaaaaaaaaaand.. I broke the tests. It should be fixed.

@Kmaschta Kmaschta force-pushed the testing-documentation branch 3 times, most recently from 1640ba1 to 85b27ad Compare January 4, 2019 18:46
@Kmaschta
Copy link
Contributor Author

Kmaschta commented Jan 7, 2019

Rebased + Fixed the broken page:

image

@djhi
Copy link
Contributor

djhi commented Jan 8, 2019

It looks like you have a formatting issue in your screenshot. Can you check and update it ?

@Kmaschta
Copy link
Contributor Author

Kmaschta commented Jan 9, 2019

@djhi This screenshot is actually deployed: https://marmelab.com/react-admin/UnitTesting.html#enabling-reducers-to-ensure-actions-are-dispatched
My commit fix it.

@djhi djhi merged commit 8decbed into master Jan 9, 2019
@djhi djhi added this to the 2.6.1 milestone Jan 9, 2019
@djhi djhi deleted the testing-documentation branch January 9, 2019 08:36
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