From 3c8bc3358e57ce1553c45bd6c549954b9083ae6f Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Thu, 19 Dec 2019 09:30:50 +0200 Subject: [PATCH 1/2] Update missing props to tests related to EditListingWizard --- .../EditListingAvailabilityForm.test.js | 2 ++ .../__snapshots__/EditListingAvailabilityForm.test.js.snap | 2 ++ .../EditListingDescriptionForm.test.js | 2 ++ .../EditListingLocationForm/EditListingLocationForm.test.js | 2 ++ .../__snapshots__/EditListingLocationForm.test.js.snap | 2 ++ src/forms/EditListingPhotosForm/EditListingPhotosForm.test.js | 2 ++ .../__snapshots__/EditListingPhotosForm.test.js.snap | 1 + .../EditListingPoliciesForm/EditListingPoliciesForm.test.js | 2 ++ .../__snapshots__/EditListingPoliciesForm.test.js.snap | 2 ++ 9 files changed, 17 insertions(+) diff --git a/src/forms/EditListingAvailabilityForm/EditListingAvailabilityForm.test.js b/src/forms/EditListingAvailabilityForm/EditListingAvailabilityForm.test.js index bb8388e98b..ede226f543 100644 --- a/src/forms/EditListingAvailabilityForm/EditListingAvailabilityForm.test.js +++ b/src/forms/EditListingAvailabilityForm/EditListingAvailabilityForm.test.js @@ -16,6 +16,8 @@ describe('EditListingAvailabilityForm', () => { saveActionMsg="Save rules" updated={false} updateInProgress={false} + disabled={false} + ready={false} availability={{ calendar: { // '2018-12': { diff --git a/src/forms/EditListingAvailabilityForm/__snapshots__/EditListingAvailabilityForm.test.js.snap b/src/forms/EditListingAvailabilityForm/__snapshots__/EditListingAvailabilityForm.test.js.snap index c420ea4810..28bf91e230 100644 --- a/src/forms/EditListingAvailabilityForm/__snapshots__/EditListingAvailabilityForm.test.js.snap +++ b/src/forms/EditListingAvailabilityForm/__snapshots__/EditListingAvailabilityForm.test.js.snap @@ -46,6 +46,7 @@ exports[`EditListingAvailabilityForm matches snapshot 1`] = ` "type": "availability-plan/day", } } + disabled={false} dispatch={[Function]} intl={ Object { @@ -60,6 +61,7 @@ exports[`EditListingAvailabilityForm matches snapshot 1`] = ` } } onSubmit={[Function]} + ready={false} render={[Function]} saveActionMsg="Save rules" updateError={null} diff --git a/src/forms/EditListingDescriptionForm/EditListingDescriptionForm.test.js b/src/forms/EditListingDescriptionForm/EditListingDescriptionForm.test.js index 30ade1377f..8ed278aefb 100644 --- a/src/forms/EditListingDescriptionForm/EditListingDescriptionForm.test.js +++ b/src/forms/EditListingDescriptionForm/EditListingDescriptionForm.test.js @@ -15,6 +15,8 @@ describe('EditListingDescriptionForm', () => { saveActionMsg="Save description" updated={false} updateInProgress={false} + disabled={false} + ready={false} categories={[{ key: 'cat1', label: 'Cat 1' }, { key: 'cat2', label: 'Cat 2' }]} /> ); diff --git a/src/forms/EditListingLocationForm/EditListingLocationForm.test.js b/src/forms/EditListingLocationForm/EditListingLocationForm.test.js index a97b5e0b3e..28832ad9fa 100644 --- a/src/forms/EditListingLocationForm/EditListingLocationForm.test.js +++ b/src/forms/EditListingLocationForm/EditListingLocationForm.test.js @@ -16,6 +16,8 @@ describe('EditListingLocationForm', () => { saveActionMsg="Save location" updated={false} updateInProgress={false} + disabled={false} + ready={false} /> ); expect(tree).toMatchSnapshot(); diff --git a/src/forms/EditListingLocationForm/__snapshots__/EditListingLocationForm.test.js.snap b/src/forms/EditListingLocationForm/__snapshots__/EditListingLocationForm.test.js.snap index 042fcfb627..0554526447 100644 --- a/src/forms/EditListingLocationForm/__snapshots__/EditListingLocationForm.test.js.snap +++ b/src/forms/EditListingLocationForm/__snapshots__/EditListingLocationForm.test.js.snap @@ -2,6 +2,7 @@ exports[`EditListingLocationForm matches snapshot 1`] = ` { updated={false} ready={false} updateInProgress={false} + disabled={false} + ready={false} onRemoveImage={noop} /> ); diff --git a/src/forms/EditListingPhotosForm/__snapshots__/EditListingPhotosForm.test.js.snap b/src/forms/EditListingPhotosForm/__snapshots__/EditListingPhotosForm.test.js.snap index 029cb95e79..b5edb5e47e 100644 --- a/src/forms/EditListingPhotosForm/__snapshots__/EditListingPhotosForm.test.js.snap +++ b/src/forms/EditListingPhotosForm/__snapshots__/EditListingPhotosForm.test.js.snap @@ -2,6 +2,7 @@ exports[`EditListingPhotosForm matches snapshot 1`] = ` { saveActionMsg="Save rules" updated={false} updateInProgress={false} + disabled={false} + ready={false} /> ); expect(tree).toMatchSnapshot(); diff --git a/src/forms/EditListingPoliciesForm/__snapshots__/EditListingPoliciesForm.test.js.snap b/src/forms/EditListingPoliciesForm/__snapshots__/EditListingPoliciesForm.test.js.snap index 6b703bb3ca..0a0bbd7142 100644 --- a/src/forms/EditListingPoliciesForm/__snapshots__/EditListingPoliciesForm.test.js.snap +++ b/src/forms/EditListingPoliciesForm/__snapshots__/EditListingPoliciesForm.test.js.snap @@ -2,6 +2,7 @@ exports[`EditListingPoliciesForm matches snapshot 1`] = ` Date: Thu, 19 Dec 2019 09:32:02 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4332d33d9..c8380a3a9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,10 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2019-XX-XX -- [fix] Update links to API Reference docs. [#1231](https://github.com/sharetribe/ftw-daily/pull/1231) +- [fix] Add missing props to tests related to EditListingWizard + [#1246](https://github.com/sharetribe/ftw-daily/pull/1246) +- [fix] Update links to API Reference docs. + [#1231](https://github.com/sharetribe/ftw-daily/pull/1231) ## [v3.7.0] 2019-12-09