-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
@jkleinsc Should I create additional capabilities for |
@baoqchau I took a look and you are correct that Prices and Price Profile should use a different capability. Looking at the current capabilities, there is one called |
@baoqchau I'm not sure where you are with this feature work, but I did want to ask that you add an acceptance test for the new functionality. You may have already been planning on this, but I just thought I would ask. Having the acceptance tests from the beginning of a feature is really helpful. |
Hi @jkleinsc. Thanks for reminding me about the acceptance test. What I plan to do in this PR is adding new "cashier" roles and create a basic cashier screen with a "Cashier" sub-navigation on the left navigation bar. The acceptance test will test that a user with "cashier" roles will have access only to appointments and 3 sub-nav in the "invoices" tab, like in this picture. I will do other parts in upcoming PR. Is this plan good to you? |
@baoqchau sounds good to me! |
@jkleinsc should I create additional roles(i.e "cashier" role) in |
In addition, should the cashier have access to |
@baoqchau as far as testing is concerned, you can pass in the role to authenticateUser, eg: authenticateUser({
name: '[email protected]',
roles: ['Cashier', 'user'],
role: 'Cashier',
prefix: 'p1'
}); As far as paid invoices, the cashier should not have access to them. |
Ok so what I found out is that after my |
@baoqchau I'm not sure why this happening. I pulled down your code and see the same issue. You shouldn't need to call invalidateSession() though. |
@baoqchau I looked a little further into this, and when I ran the tests in the browser (eg run |
Resolves issue encountered in #1027 during testing.
@baoqchau I just updated master with a fix for the error you were encountering in your testing, so if you get the latest it should resolve the issue. |
…rontend into cashier-role update navigation components to fix bugs in CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for sticking with this PR @baoqchau!
Fixes #303
Changes proposed in this pull request:
cc @HospitalRun/core-maintainers