Pass encodeBase64 param to transit-key-actions (#19429)

* fix and test coverage

* changelog
This commit is contained in:
Angel Garbarino
2023-03-06 11:28:49 -07:00
committed by GitHub
parent 9f7f8d5bfa
commit 5299707a3e
3 changed files with 12 additions and 1 deletions

View File

@@ -322,6 +322,8 @@ module('Integration | Component | transit key actions', function (hooks) {
`);
await fillIn('#algorithm', 'sha2-384');
await blur('#algorithm');
await fillIn('[data-test-component="code-mirror-modifier"] textarea', 'plaintext');
await click('input[data-test-transit-input="encodedBase64"]');
await click('button[type="submit"]');
assert.deepEqual(
this.storeService.callArgs,
@@ -331,6 +333,7 @@ module('Integration | Component | transit key actions', function (hooks) {
id: 'akey',
payload: {
algorithm: 'sha2-384',
input: 'plaintext',
},
},
'passes expected args to the adapter'