diff --git a/frontend/src/Editor/ManageAppUsers.jsx b/frontend/src/Editor/ManageAppUsers.jsx index 4fdd965aca..6cd2deff0f 100644 --- a/frontend/src/Editor/ManageAppUsers.jsx +++ b/frontend/src/Editor/ManageAppUsers.jsx @@ -148,6 +148,7 @@ class ManageAppUsersComponent extends React.Component { viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg" + data-cy="share-button-link" > - {this.props.t('editor.share', 'Share')} + {this.props.t('editor.share', 'Share')} @@ -187,20 +188,23 @@ class ManageAppUsersComponent extends React.Component { onClick={this.toggleAppVisibility} checked={this.state.app.is_public} disabled={this.state.ischangingVisibility} + data-cy="make-public-app-toggle" /> - + {this.props.t('editor.shareModal.makeApplicationPublic', 'Make application public?')} - + {this.props.t('editor.shareModal.shareableLink', 'Get shareable link for this application')} - {appLink} + + {appLink} + {isSlugVerificationInProgress && ( @@ -220,7 +225,7 @@ class ManageAppUsersComponent extends React.Component { toast.success('Link copied to clipboard')}> - + {this.props.t('editor.shareModal.copy', 'copy')} @@ -230,7 +235,7 @@ class ManageAppUsersComponent extends React.Component { - + {this.props.t('editor.shareModal.embeddableLink', 'Get embeddable link for this application')} @@ -241,13 +246,14 @@ class ManageAppUsersComponent extends React.Component { className={`input-with-icon ${this.props.darkMode && 'text-light'}`} rows={5} value={embeddableLink} + data-cy="iframe-link" /> toast.success('Embeddable link copied to clipboard')} > - + {this.props.t('editor.shareModal.copy', 'copy')} @@ -260,7 +266,12 @@ class ManageAppUsersComponent extends React.Component { {this.isUserAdmin && ( - + Manage users )}