ngx-permissions
ngx-permissions copied to clipboard
NgxPermissionsTestingModule
The community NEEDS a NgxPermissionsTestingModule :(
https://github.com/AlexKhymenko/ngx-permissions/blob/master/projects/ngx-permissions/src/lib/testing/permissions-testing.module.ts
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior
No test module.
Expected behavior
Minimal reproduction of the problem with instructions
Environment
Angular version: X.Y.Z
ngx-permissions version: X.Y.Z
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
Hi @DenzelCode You have testing module how to use it is here - https://github.com/AlexKhymenko/ngx-permissions/wiki/Testing
There is just a declaration for directives but not a module
And it doesn't includes the service
@DenzelCode Thank You. Will implement it the problem is im quite busy right now. Will do when have time. But think till the next monday will be ready
@DenzelCode Thank You. Will implement it the problem is im quite busy right now. Will do when have time. But think till the next monday will be ready
Thank you! Have a nice day
I'm also interested in this, as I need to test the UI for different sets of permissions
@CappfinitySimon sorry for digging up an old comment, were you able to test the UI for different sets of permissions?
@intezzz Unfortunately no. In the end we used e2e tests with Playwright to test for permissions