Convert old tests to use "react-testing-library"

This commit is contained in:
Justin
2022-04-04 11:53:47 -04:00
parent 9a099b3fa7
commit ed47cf5f09
71 changed files with 411 additions and 1515 deletions

View File

@ -183,7 +183,7 @@ class CreateApp extends ImmutablePureComponent {
return (
<Column label={intl.formatMessage(messages.heading)} backHref='/developers'>
<Form onSubmit={this.handleSubmit} disabled={isLoading}>
<Form onSubmit={this.handleSubmit}>
<FormGroup labelText={<FormattedMessage id='app_create.name_label' defaultMessage='App name' />}>
<Input
placeholder={intl.formatMessage(messages.namePlaceholder)}
@ -220,7 +220,7 @@ class CreateApp extends ImmutablePureComponent {
</FormGroup>
<FormActions>
<Button theme='primary' type='submit'>
<Button theme='primary' type='submit' disabled={isLoading}>
<FormattedMessage id='app_create.submit' defaultMessage='Create app' />
</Button>
</FormActions>

View File

@ -90,7 +90,7 @@ class SettingsStore extends ImmutablePureComponent {
return (
<Column label={intl.formatMessage(messages.heading)} backHref='/developers'>
<Form onSubmit={this.handleSubmit} disabled={!jsonValid || isLoading}>
<Form onSubmit={this.handleSubmit}>
<FormGroup
hintText={intl.formatMessage(messages.hint)}
errors={jsonValid ? [] : ['is invalid']}