Skip to content

Commit aa9fb26

Browse files
committed
Assert functional rename of KMS provider
1 parent 9250c6e commit aa9fb26

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/connection-form/src/components/advanced-options-tabs/csfle-tab/csfle-tab.spec.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,19 @@ describe('In-Use Encryption', function () {
385385
);
386386
}
387387

388-
const selector = within(card).getByTestId('csfle-kms-card-name');
388+
const selector = within(card).getByTestId<HTMLInputElement>(
389+
'csfle-kms-card-name'
390+
);
389391
userEvent.clear(selector);
390392
if (value !== '') {
391393
userEvent.type(selector, value);
392394
}
393395
userEvent.keyboard('{enter}');
396+
397+
expect(selector.value).equals(
398+
value,
399+
'Expected the input to have the updated value'
400+
);
394401
}
395402

396403
it('allows to have multiple KMS providers from same type', async function () {

0 commit comments

Comments
 (0)