Skip to content

Commit

Permalink
restored checks on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCimini90 committed Feb 24, 2025
1 parent 7ca0da4 commit 4c08561
Show file tree
Hide file tree
Showing 2 changed files with 403 additions and 401 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ describe('NotificationPaymentRecipient Component', () => {
expect(pagoPABox).toHaveLength(pageLength > 5 ? 5 : pageLength);
expect(downloadPagoPANotice).not.toBeInTheDocument();
expect(payButton).toBeInTheDocument();
expect(payButton).toBeEnabled();
expect(f24OnlyBox).toBeInTheDocument();
expect(paginationBox).toBeInTheDocument();
});
Expand Down Expand Up @@ -99,13 +100,14 @@ describe('NotificationPaymentRecipient Component', () => {
// wait...
downloadPagoPANotice = getByTestId('download-pagoPA-notice-button');
expect(downloadPagoPANotice).toBeInTheDocument();
expect(payButton).not.toBeDisabled();
expect(payButton).toBeEnabled();

// check f24
const f24Download = getByTestId('f24-download');
expect(f24Download).toBeInTheDocument();
// unselect payment
fireEvent.click(radioButton!);
expect(payButton).toBeEnabled();
expect(downloadPagoPANotice).not.toBeInTheDocument();
expect(f24Download).not.toBeInTheDocument();
});
Expand Down
Loading

0 comments on commit 4c08561

Please sign in to comment.