Skip to content

Commit

Permalink
(launch) fix: remove agent ids required test
Browse files Browse the repository at this point in the history
  • Loading branch information
Atatakai authored and Atatakai committed Aug 28, 2024
1 parent 77ff2d9 commit c8336ed
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions apps/launch/components/MyStakingContracts/Create/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,22 +203,6 @@ describe('<CreateStakingContract />', () => {
expect(numAgentInstancesInput).toHaveValue('1'); // default value
});

// Agent IDs
it('should display `Agent IDs` field as required and able to fill the field', async () => {
render(<CreateStakingContract />);

const agentIdsInput = screen.getByLabelText('Agent IDs');
expect(agentIdsInput).toBeRequired();

await userEvent.clear(agentIdsInput);
await userEvent.type(agentIdsInput, '1,2, ');

await clickCreateContractButton();
expect(
screen.getByText('Please input a valid list of numbers separated by commas.'),
).toBeInTheDocument();
});

// Multisig threshold
it('should display `Multisig threshold` field as required and able to fill the field', async () => {
render(<CreateStakingContract />);
Expand Down

0 comments on commit c8336ed

Please sign in to comment.