-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TD-2946 Scene Freezes On Deleting Scenario #1012
base: release/v10.1.0
Are you sure you want to change the base?
TD-2946 Scene Freezes On Deleting Scenario #1012
Conversation
@@ -152,7 +152,7 @@ describe("useConfirm", () => { | |||
fireEvent.click(getByText("Delete")); | |||
expect(queryByText("Remove this item?")).toBeTruthy(); | |||
fireEvent.click(getByText("Yes")); | |||
expect(queryByText("Remove this item?")).toBeTruthy(); | |||
expect(queryByText("Remove this item?")).toBeFalsy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this test is valid any more. Suggest removing it. It is checking that the dialog is still in the DOM even when the dialog is closed which is no longer the case.
…s://github.com/IPG-Automotive-UK/react-ui into bug/TD-2946-scene-freezes-on-deleting-scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Contributes to TD-2946
Changes
ConfirmationDialog.tsx
is now conditionally rendered based on the open prop.Preview
Testing notes
Author checklist
Before I request a review:
I have included appropriate tests.I have populated the deploy-preview with relevant test data.I have tagged a UI/UX designer for review if this PR includes UI/UX changes.