Skip to content

Commit

Permalink
Test json schema (#2861)
Browse files Browse the repository at this point in the history
* Add unit test for service form build

* Add tests for submit
  • Loading branch information
jamakase committed Apr 15, 2021
1 parent 4f20ac7 commit e0c7609
Show file tree
Hide file tree
Showing 12 changed files with 670 additions and 193 deletions.
386 changes: 199 additions & 187 deletions airbyte-webapp/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions airbyte-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"yup": "^0.28.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/flat": "^5.0.1",
"@types/jest": "^24.0.0",
"@types/json-schema": "^7.0.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ const ArrayOfObjectsEditor: React.FC<ArrayOfObjectsEditorProps> = ({
<SmallButton onClick={onCancelEdit} type="button" secondary>
<FormattedMessage id="form.cancel" />
</SmallButton>
<SmallButton onClick={onDone} type="button">
<SmallButton
onClick={onDone}
type="button"
data-test-id="done-button"
>
<FormattedMessage id="form.done" />
</SmallButton>
</ButtonContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ const EditorHeader: React.FC<EditorHeaderProps> = ({
return (
<Content>
<FormattedMessage id="form.items" values={{ count: itemsCount }} />
<Button secondary type="button" onClick={onAddItem}>
<Button
secondary
type="button"
onClick={onAddItem}
data-test-id="addItemButton"
>
<FormattedMessage id="form.addItems" />
</Button>
</Content>
Expand Down
1 change: 1 addition & 0 deletions airbyte-webapp/src/components/Multiselect/Multiselect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { MultiselectProps as WidgetMultiselectProps } from "react-widgets/lib/Mu
type MultiselectProps = {
disabled?: boolean;
error?: boolean;
name?: string;
} & WidgetMultiselectProps;

const Multiselect = styled(ReactMultiselect)<MultiselectProps>`
Expand Down
Loading

0 comments on commit e0c7609

Please sign in to comment.