housekeeping: fixes wallet tests (#1669)
This commit is contained in:
parent
38454a7e33
commit
329d073b34
@ -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 };
|
||||
|
@ -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 && (
|
||||
|
Loading…
Reference in New Issue
Block a user