ngx-permissions icon indicating copy to clipboard operation
ngx-permissions copied to clipboard

NgxPermissionsTestingModule

Open DenzelCode opened this issue 4 years ago • 8 comments

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

DenzelCode avatar Mar 10 '21 16:03 DenzelCode

Hi @DenzelCode You have testing module how to use it is here - https://github.com/AlexKhymenko/ngx-permissions/wiki/Testing

AlexKhymenko avatar Mar 15 '21 06:03 AlexKhymenko

There is just a declaration for directives but not a module

DenzelCode avatar Mar 15 '21 11:03 DenzelCode

And it doesn't includes the service

DenzelCode avatar Mar 15 '21 11:03 DenzelCode

@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

AlexKhymenko avatar Mar 16 '21 07:03 AlexKhymenko

@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

DenzelCode avatar Mar 16 '21 13:03 DenzelCode

I'm also interested in this, as I need to test the UI for different sets of permissions

CappfinityMia avatar Sep 30 '21 11:09 CappfinityMia

@CappfinitySimon sorry for digging up an old comment, were you able to test the UI for different sets of permissions?

intezzz avatar Sep 16 '22 21:09 intezzz

@intezzz Unfortunately no. In the end we used e2e tests with Playwright to test for permissions

CappfinityMia avatar Sep 20 '22 09:09 CappfinityMia