mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Refactor modal tests for improved clarity and consistency in content and actions
This commit is contained in:
@@ -49,13 +49,13 @@ const CreateFileModal: React.FC<CreateFileModalProps> = ({ onCreateFile }) => {
|
||||
<Button
|
||||
variant="default"
|
||||
onClick={() => setNewFileModalVisible(false)}
|
||||
data-testid="cancel-create-button"
|
||||
data-testid="cancel-create-file-button"
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => void handleSubmit()}
|
||||
data-testid="confirm-create-button"
|
||||
data-testid="confirm-create-file-button"
|
||||
disabled={!fileName.trim()}
|
||||
>
|
||||
Create
|
||||
|
||||
Reference in New Issue
Block a user