Skip to content

Commit

Permalink
fix old test
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Nov 26, 2024
1 parent 40a886b commit 570e7f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('OrganizationBankingInfoForm', () => {
await user.click(screen.getAllByText('stripes-components.selection.controlLabel')[1]);

bankingAccountTypes.forEach(({ name }) => {
expect(screen.getByText(name)).toBeInTheDocument();
expect(screen.getAllByText(name)[0]).toBeInTheDocument();
});
});

Expand All @@ -101,10 +101,10 @@ describe('OrganizationBankingInfoForm', () => {
renderOrganizationBankingInfoForm();

await addField();
await user.click(screen.getAllByText('stripes-components.selection.controlLabel')[0]);
await user.click(screen.getByRole('button', { name: 'ui-organizations.data.bankingInformation.addressCategory' }));

categories.forEach(({ value }) => {
expect(within(screen.getByTestId('banking-information-card')).getByText(value)).toBeInTheDocument();
expect(screen.getAllByText(value)[0]).toBeInTheDocument();
});
});

Expand Down

0 comments on commit 570e7f4

Please sign in to comment.