-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
UI/pki key workflow tests #18496
UI/pki key workflow tests #18496
Conversation
hellobontempo
commented
Dec 20, 2022
•
edited
Loading
edited
- Adds tests to the pki key workflow
- fixes capabilities check in the pki/key model
- moves policy generators into a helper file
This reverts commit aed9bb9.
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.
Great work! A couple minor suggestions, nothing is a blocker though
@@ -70,6 +63,41 @@ module('Acceptance | pki workflow', function (hooks) { | |||
await logout.visit(); | |||
}); | |||
|
|||
test('empty state messages are correct when PKI not configured', async function (assert) { |
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.
👏
*/ | ||
await fillIn(SELECTORS.keyNameInput, 'new-name'); | ||
await click(SELECTORS.keyCancelButton); | ||
assert.strictEqual(this.model.keyName, 'test-key', 'Model attributes rolled back on cancel'); |
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.
We should assert that the keyName updated on input before we cancel, to verify it does change the model as expected
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.
It actually doesn't do this right now...which I discovered writing this test a couple weeks ago - I have a PR to fix.
* wip tests * fix links * Revert "wip tests" This reverts commit aed9bb9. * wip tests * add policy generator * add workflow tests for key * change apostrophe -___- * fix workflow tests * add update to key form tests * fix capability check for read * finish tests * fix flash messages; * rename policy generator file, update tests
* wip tests * fix links * Revert "wip tests" This reverts commit aed9bb9. * wip tests * add policy generator * add workflow tests for key * change apostrophe -___- * fix workflow tests * add update to key form tests * fix capability check for read * finish tests * fix flash messages; * rename policy generator file, update tests