cd /workspace/wp-calypso && mkdir -p client/jetpack-onboarding/test && cat > client/jetpack-onboarding/test/contact-form.jsx <<'EOF'
/** @format */
/**
 * External dependencies
 */
import React from 'react';
import { shallow } from 'enzyme';
/**
 * Internal dependencies
 */
import ConnectSuccess from 'jetpack-onboarding/connect-success';
import ContactFormStepComponent from 'jetpack-onboarding/steps/contact-form';
import Tile from 'components/tile-grid/tile';
const translate = text => text;
const unwrapComponent = component => {
let unwrapped = component;
while ( unwrapped.WrappedComponent || unwrapped._composedComponent ) {

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
unwrapped = unwrapped.WrappedComponent || unwrapped._composedComponent;
}
return unwrapped;
};
const ContactFormStep = unwrapComponent( ContactFormStepComponent );
const defaultProps = {
basePath: '/jetpack/start',
getForwardUrl: () => '/jetpack/start/stats/example.com',
isConnected: false,
recordJpoEvent: jest.fn(),
saveJpoSettings: jest.fn(),
settings: {},
siteId: 12345678,
siteUrl: 'https://example.com',
translate,
};
const render = props => shallow( <ContactFormStep { ...defaultProps } { ...props } /> );
describe( 'JetpackOnboardingContactFormStep', () => {
beforeEach( () => {

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
defaultProps.recordJpoEvent.mockClear();

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
defaultProps.saveJpoSettings.mockClear();
} );
test( 'renders the contact form tile when the form has not been inserted', () => {

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
const wrapper = render();

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
const tile = wrapper.find( Tile );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( wrapper.find( ConnectSuccess ) ).toHaveLength( 0 );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( tile ).toHaveLength( 1 );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( tile.prop( 'buttonLabel' ) ).toBe( 'Add a contact form' );
} );
test( 'links the tile to Jetpack Connect without inserting a form when disconnected', () => {

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
const wrapper = render( { isConnected: false } );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
const tile = wrapper.find( Tile );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( tile.prop( 'href' ) ).toBe( '/jetpack/connect?url=https%3A%2F%2Fexample.com' );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
tile.prop( 'onClick' )();

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     clie<response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>                webpack.config.js
expect( success.prop( 'title' ) ).toBe(

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
'Success! Jetpack has added a “Contact Us” page to your site.'

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
);
} );
test( 'does not show success for an inserted form until the site is connected', () => {

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
const wrapper = render( {

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
isConnected: false,

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
settings: { addContactForm: true },

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
} );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
const tile = wrapper.find( Tile );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( wrapper.find( ConnectSuccess ) ).toHaveLength( 0 );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( tile ).toHaveLength( 1 );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( tile.prop( 'buttonLabel' ) ).toBe( 'Add a contact form' );

.babelrc                 .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     circle.yml               config/                  env-config.sh            inline-imports.js        node_modules/            package.json             public/                  test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      server/                  webpack.config.js
expect( tile.prop( 'href' ) ).toBe( '/jetpack/connect?url=https%3A%2F%2Fexample.com' );
} );
} );
EOF


npm run -s test-client -- client/jetpack-onboarding/test/contact-form.jsx --runInBand
[The command completed with exit code 0.]
[Current working directory: /workspace/wp-calypso]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 0]