-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix: fix enable for entities and add it for OAuth #964
fix: fix enable for entities and add it for OAuth #964
Conversation
@@ -87,26 +150,72 @@ describe('EntityModal - Oauth oauth', () => { | |||
renderModalWithProps(props); | |||
const oauthTextBox = getDisabledOauthField(); | |||
expect(oauthTextBox).toBeInTheDocument(); | |||
expect(oauthTextBox?.getAttribute('disabled')).toBeNull(); | |||
expect(oauthTextBox?.getAttribute('disabled')).toBe(''); |
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.
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.
fixed
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.
but it is not...?
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.
yea sorry, somehow i missed 2 out of 8 lines, should be done now
renderModalWithProps(props); | ||
|
||
const oauthTextBox = getDisabledOauthField(); | ||
expect(oauthTextBox).toBeInTheDocument(); | ||
expect(oauthTextBox?.getAttribute('disabled')).toBe(''); |
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.
expect(oauthTextBox?.getAttribute('disabled')).toBe(''); | |
expect(oauthTextBox).not.toHaveAttribute('disabled'); |
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.
fixed
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.
but it is not ..?
90f37f5
to
bd35d3c
Compare
@@ -87,26 +150,72 @@ describe('EntityModal - Oauth oauth', () => { | |||
renderModalWithProps(props); | |||
const oauthTextBox = getDisabledOauthField(); | |||
expect(oauthTextBox).toBeInTheDocument(); | |||
expect(oauthTextBox?.getAttribute('disabled')).toBeNull(); | |||
expect(oauthTextBox?.getAttribute('disabled')).toBe(''); |
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.
but it is not...?
renderModalWithProps(props); | ||
|
||
const oauthTextBox = getDisabledOauthField(); | ||
expect(oauthTextBox).toBeInTheDocument(); | ||
expect(oauthTextBox?.getAttribute('disabled')).toBe(''); |
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.
but it is not ..?
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.
@soleksy-splunk please merge when you are ready :)
As a replacement for account_hook.js for repo https://github.com/splunk/splunk-add-on-for-okta-identity-cloud
parent ticket https://splunk.atlassian.net/browse/ADDON-65747
fix for enable property for every entity/field and adding support of it for oauth fields
https://splunk.github.io/addonfactory-ucc-generator/entity/
Adding tests for default value in oauth fields, logic existed there it was just not permitted in schema.