test: add tests for git connection (#1289)

* chore: add data-test attributes

* test: add github connection test, add applications modal

* chore: embed test GITHUB_CLIENT_* environment values

---------

Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
This commit is contained in:
QAComet
2023-10-23 10:48:23 -06:00
committed by GitHub
parent a82d34cbce
commit 4cedbdbc60
11 changed files with 316 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ export default function AppConnections(
<NoResultFound
to={URLS.APP_ADD_CONNECTION(appKey)}
text={formatMessage('app.noConnections')}
data-test="connections-no-results"
/>
);
}

View File

@@ -45,6 +45,7 @@ export default function AppFlows(props: AppFlowsProps): React.ReactElement {
<NoResultFound
to={URLS.CREATE_FLOW_WITH_APP_AND_CONNECTION(appKey, connectionId)}
text={formatMessage('app.noFlows')}
data-test="flows-no-results"
/>
);
}

View File

@@ -190,6 +190,7 @@ export default function InputCreator(
onChange={onChange}
onBlur={onBlur}
name={computedName}
data-test={`${computedName}-text`}
label={label}
fullWidth
helperText={description}