housekeeping: fixes wallet tests (#1669)

This commit is contained in:
Art 2022-10-06 15:24:02 +02:00 committed by GitHub
parent 38454a7e33
commit 329d073b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -184,11 +184,11 @@ describe('VegaConnectDialog', () => {
const fillInForm = () => {
const walletValue = 'test-wallet';
fireEvent.change(screen.getByLabelText('Wallet'), {
fireEvent.change(screen.getByTestId('rest-wallet'), {
target: { value: walletValue },
});
const passphraseValue = 'test-passphrase';
fireEvent.change(screen.getByLabelText('Passphrase'), {
fireEvent.change(screen.getByTestId('rest-passphrase'), {
target: { value: passphraseValue },
});
return { wallet: walletValue, passphrase: passphraseValue };

View File

@ -59,6 +59,7 @@ export function RestConnectorForm({
<Input
{...register('wallet', { required: t('Required') })}
id="wallet"
data-testid="rest-wallet"
type="text"
/>
{errors.wallet?.message && (
@ -69,6 +70,7 @@ export function RestConnectorForm({
<Input
{...register('passphrase', { required: t('Required') })}
id="passphrase"
data-testid="rest-passphrase"
type="password"
/>
{errors.passphrase?.message && (