Skip to content

Commit

Permalink
test: update cbc pending change
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasdc committed Jul 26, 2024
1 parent 7deb20b commit 7742f2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/tests/components/Analyst/PendingChangeRequest.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ describe('The Pending Change Request component', () => {
const checkBox = screen.getByTestId('pending-change-request-checkbox');

expect(checkBox).toBeChecked();
expect(checkBox).toBeDisabled();
expect(checkBox).toBeEnabled();
});

it('load edit comment modal read only mode when clicked comment icon when not editable', async () => {
it('load edit comment modal when clicked comment icon when editable', async () => {
componentTestingHelperReadOnly.loadQuery();
componentTestingHelperReadOnly.renderComponent();

Expand All @@ -487,14 +487,14 @@ describe('The Pending Change Request component', () => {
expect(screen.getByText('test comment for CBC')).toBeVisible();
const textArea = screen.getByTestId('root_comment');

expect(textArea).toBeDisabled();
expect(textArea).toBeEnabled();

const saveButton = screen.queryByTestId('pending-request-change-save-btn');
expect(saveButton).not.toBeInTheDocument();
expect(saveButton).toBeInTheDocument();

const cancelButton = screen.queryByTestId(
'pending-request-change-cancel-btn'
);
expect(cancelButton).not.toBeInTheDocument();
expect(cancelButton).toBeInTheDocument();
});
});

0 comments on commit 7742f2f

Please sign in to comment.