test: Update tests after adding SaveAndBuild modal

This updates tests with a `openAndDismissSaveAndBuildModal` function that handles closing the SaveAndBuild modal after clicking on Create blueprint for the first time.
This commit is contained in:
regexowl 2024-05-08 17:23:59 +02:00 committed by Klara Simickova
parent b8f45ff883
commit a23cc9321b
16 changed files with 83 additions and 16 deletions

View file

@ -82,7 +82,12 @@ export const CreateSaveButton = ({
onClose={handleClose}
width="50%"
actions={[
<Button key="back" variant="primary" onClick={handleClose}>
<Button
key="back"
variant="primary"
data-testid="close-button-saveandbuild-modal"
onClick={handleClose}
>
Close
</Button>,
]}