Skip to content

Commit

Permalink
🪟 🔧 Add test-ids to publish submit and download yaml buttons (#6526)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmossman committed May 11, 2023
1 parent ca2b685 commit 7a5ed60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const DownloadYamlButton: React.FC<DownloadYamlButtonProps> = ({ classNam
onClick={handleClick}
disabled={buttonDisabled}
icon={showWarningIcon ? <FontAwesomeIcon icon={faWarning} /> : undefined}
data-testid="download-yaml-button"
>
<FormattedMessage id="connectorBuilder.downloadYaml" />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ export const PublishModal: React.FC<{ onClose: () => void }> = ({ onClose }) =>
<Button variant="secondary" type="reset" onClick={onClose}>
<FormattedMessage id="form.cancel" />
</Button>
<Button type="submit" disabled={!isValid} isLoading={isSubmitting}>
<Button
type="submit"
disabled={!isValid}
isLoading={isSubmitting}
data-testid="publish-submit-button"
>
<FormattedMessage
id={
currentProject.sourceDefinitionId
Expand Down

0 comments on commit 7a5ed60

Please sign in to comment.