diff --git a/.circleci/config.yml b/.circleci/config.yml index 74ed1356ae..b8ec13cdea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -261,7 +261,7 @@ workflows: filters: branches: only: - - develop + - feature-contentful # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration diff --git a/__tests__/shared/components/GUIKit/Checkbox/__snapshots__/index.jsx.snap b/__tests__/shared/components/GUIKit/Checkbox/__snapshots__/index.jsx.snap new file mode 100644 index 0000000000..94a5da518a --- /dev/null +++ b/__tests__/shared/components/GUIKit/Checkbox/__snapshots__/index.jsx.snap @@ -0,0 +1,25 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Default render 1`] = ` + +`; diff --git a/__tests__/shared/components/GUIKit/Checkbox/index.jsx b/__tests__/shared/components/GUIKit/Checkbox/index.jsx new file mode 100644 index 0000000000..e693ad4989 --- /dev/null +++ b/__tests__/shared/components/GUIKit/Checkbox/index.jsx @@ -0,0 +1,12 @@ +import React from 'react'; +import Renderer from 'react-test-renderer/shallow'; + +import Checkbox from 'components/GUIKit/Checkbox'; + + +const rnd = new Renderer(); + +it('Default render', () => { + rnd.render(()); + expect(rnd.getRenderOutput()).toMatchSnapshot(); +}); diff --git a/__tests__/shared/components/GUIKit/Datepicker/__snapshots__/index.jsx.snap b/__tests__/shared/components/GUIKit/Datepicker/__snapshots__/index.jsx.snap new file mode 100644 index 0000000000..6bf8ad76cf --- /dev/null +++ b/__tests__/shared/components/GUIKit/Datepicker/__snapshots__/index.jsx.snap @@ -0,0 +1,118 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Default render 1`] = ` +
+ + } + date={null} + daySize={53} + disableScroll={false} + disabled={false} + displayFormat="MMM DD, YYYY" + enableOutsideDays={true} + firstDayOfWeek={1} + focused={false} + hideKeyboardShortcutsPanel={true} + horizontalMargin={0} + horizontalMonthPadding={13} + id="null----false" + initialVisibleMonth={null} + inputIconPosition="after" + isDayBlocked={[Function]} + isDayHighlighted={[Function]} + isOutsideRange={[Function]} + isRTL={false} + keepFocusOnInput={false} + keepOpenOnDateSelect={false} + monthFormat="MMMM YYYY" + navNext={ + + } + navPrev={ + + } + noBorder={false} + numberOfMonths={1} + onClose={[Function]} + onDateChange={[Function]} + onFocusChange={[Function]} + onNextMonthClick={[Function]} + onPrevMonthClick={[Function]} + openDirection="down" + orientation="horizontal" + phrases={ + Object { + "calendarLabel": "Calendar", + "chooseAvailableDate": [Function], + "clearDate": "Clear Date", + "closeDatePicker": "Close", + "dateIsSelected": [Function], + "dateIsUnavailable": [Function], + "enterKey": "Enter key", + "escape": "Escape key", + "hideKeyboardShortcutsPanel": "Close the shortcuts panel.", + "homeEnd": "Home and end keys", + "jumpToNextMonth": "Move forward to switch to the next month.", + "jumpToPrevMonth": "Move backward to switch to the previous month.", + "keyboardNavigationInstructions": "Press the down arrow key to interact with the calendar and + select a date. Press the question mark key to get the keyboard shortcuts for changing dates.", + "keyboardShortcuts": "Keyboard Shortcuts", + "leftArrowRightArrow": "Right and left arrow keys", + "moveFocusByOneDay": "Move backward (left) and forward (right) by one day.", + "moveFocusByOneMonth": "Switch months.", + "moveFocusByOneWeek": "Move backward (up) and forward (down) by one week.", + "moveFocustoStartAndEndOfWeek": "Go to the first or last day of a week.", + "openThisPanel": "Open this panel.", + "pageUpPageDown": "page up and page down keys", + "questionMark": "Question mark", + "returnFocusToInput": "Return to the date input field.", + "selectFocusedDate": "Select the date in focus.", + "showKeyboardShortcutsPanel": "Open the keyboard shortcuts panel.", + "upArrowDownArrow": "up and down arrow keys", + } + } + placeholder="" + readOnly={false} + regular={false} + renderCalendarInfo={null} + renderDayContents={[Function]} + renderMonthElement={null} + renderMonthText={null} + reopenPickerOnClearDate={false} + required={false} + screenReaderInputMessage="" + showClearDate={false} + showDefaultInputIcon={false} + small={false} + verticalHeight={null} + verticalSpacing={22} + weekDayFormat="ddd" + withFullScreenPortal={false} + withPortal={false} + /> +
+`; diff --git a/__tests__/shared/components/GUIKit/Datepicker/index.jsx b/__tests__/shared/components/GUIKit/Datepicker/index.jsx new file mode 100644 index 0000000000..c0001cce99 --- /dev/null +++ b/__tests__/shared/components/GUIKit/Datepicker/index.jsx @@ -0,0 +1,12 @@ +import React from 'react'; +import Renderer from 'react-test-renderer/shallow'; + +import Datepicker from 'components/GUIKit/Datepicker'; + + +const rnd = new Renderer(); + +it('Default render', () => { + rnd.render(()); + expect(rnd.getRenderOutput()).toMatchSnapshot(); +}); diff --git a/__tests__/shared/components/GUIKit/Dropdown/__snapshots__/index.jsx.snap b/__tests__/shared/components/GUIKit/Dropdown/__snapshots__/index.jsx.snap new file mode 100644 index 0000000000..1108c3a813 --- /dev/null +++ b/__tests__/shared/components/GUIKit/Dropdown/__snapshots__/index.jsx.snap @@ -0,0 +1,77 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Default render 1`] = ` +
+
+ + + + + radio + +
+
+`; diff --git a/__tests__/shared/components/GUIKit/RadioButton/index.jsx b/__tests__/shared/components/GUIKit/RadioButton/index.jsx new file mode 100644 index 0000000000..f386d2bbbd --- /dev/null +++ b/__tests__/shared/components/GUIKit/RadioButton/index.jsx @@ -0,0 +1,12 @@ +import React from 'react'; +import Renderer from 'react-test-renderer/shallow'; + +import RadioButton from 'components/GUIKit/RadioButton'; + + +const rnd = new Renderer(); + +it('Default render', () => { + rnd.render(()); + expect(rnd.getRenderOutput()).toMatchSnapshot(); +}); diff --git a/__tests__/shared/components/GUIKit/TextInput/__snapshots__/index.jsx.snap b/__tests__/shared/components/GUIKit/TextInput/__snapshots__/index.jsx.snap new file mode 100644 index 0000000000..f85a42e507 --- /dev/null +++ b/__tests__/shared/components/GUIKit/TextInput/__snapshots__/index.jsx.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Default render 1`] = ` +
+ +
+`; diff --git a/__tests__/shared/components/GUIKit/TextInput/index.jsx b/__tests__/shared/components/GUIKit/TextInput/index.jsx new file mode 100644 index 0000000000..fb49292a71 --- /dev/null +++ b/__tests__/shared/components/GUIKit/TextInput/index.jsx @@ -0,0 +1,12 @@ +import React from 'react'; +import Renderer from 'react-test-renderer/shallow'; + +import TextInput from 'components/GUIKit/TextInput'; + + +const rnd = new Renderer(); + +it('Default render', () => { + rnd.render(()); + expect(rnd.getRenderOutput()).toMatchSnapshot(); +}); diff --git a/__tests__/shared/components/GUIKit/Textarea/__snapshots__/index.jsx.snap b/__tests__/shared/components/GUIKit/Textarea/__snapshots__/index.jsx.snap new file mode 100644 index 0000000000..c1aa4a9108 --- /dev/null +++ b/__tests__/shared/components/GUIKit/Textarea/__snapshots__/index.jsx.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Default render 1`] = ` +
+