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

UI/pki key workflow tests #18496

Merged
merged 17 commits into from
Jan 4, 2023
Merged

UI/pki key workflow tests #18496

merged 17 commits into from
Jan 4, 2023

Conversation

hellobontempo
Copy link
Contributor

@hellobontempo hellobontempo commented Dec 20, 2022

  • Adds tests to the pki key workflow
  • fixes capabilities check in the pki/key model
  • moves policy generators into a helper file

@hellobontempo hellobontempo added this to the 1.13.0-rc1 milestone Dec 21, 2022
@hellobontempo hellobontempo marked this pull request as ready for review December 21, 2022 05:55
Copy link
Contributor

@hashishaw hashishaw left a 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) {
Copy link
Contributor

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');
Copy link
Contributor

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

Copy link
Contributor Author

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.

@hellobontempo hellobontempo merged commit dcc4c03 into main Jan 4, 2023
@hellobontempo hellobontempo deleted the ui/pki-key-workflow-tests branch January 4, 2023 02:00
AnPucel pushed a commit that referenced this pull request Jan 14, 2023
* 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
AnPucel pushed a commit that referenced this pull request Feb 3, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants