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

NgxPermissionsTestingModule #163

Open
DenzelCode opened this issue Mar 10, 2021 · 8 comments
Open

NgxPermissionsTestingModule #163

DenzelCode opened this issue Mar 10, 2021 · 8 comments

Comments

@DenzelCode
Copy link

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
@AlexKhymenko
Copy link
Owner

AlexKhymenko commented Mar 15, 2021

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

@DenzelCode
Copy link
Author

There is just a declaration for directives but not a module

@DenzelCode
Copy link
Author

And it doesn't includes the service

@AlexKhymenko
Copy link
Owner

@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
Copy link
Author

@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

@CappfinityMia
Copy link

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

@intezzz
Copy link

intezzz commented Sep 16, 2022

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

@CappfinityMia
Copy link

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

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

No branches or pull requests

4 participants