diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-04 15:29:17 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-04 15:29:17 -0400 |
| commit | dbd39fcc3861facecdd4413c90ae85cebd5db67f (patch) | |
| tree | f7bb110b52adf3c3328cdb649b0f0a9543fb6a68 /frontend/__tests__/__snapshots__ | |
| parent | 952c37536aeb69fb9edac15a9d260890d4b1c50c (diff) | |
Create Item mutation testing
Diffstat (limited to 'frontend/__tests__/__snapshots__')
| -rw-r--r-- | frontend/__tests__/__snapshots__/CreateItem.test.js.snap | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/frontend/__tests__/__snapshots__/CreateItem.test.js.snap b/frontend/__tests__/__snapshots__/CreateItem.test.js.snap index 66b7965..5c51c2d 100644 --- a/frontend/__tests__/__snapshots__/CreateItem.test.js.snap +++ b/frontend/__tests__/__snapshots__/CreateItem.test.js.snap @@ -1,44 +1,51 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`<Createitem/> renders the form out 1`] = ` -<div> - <Form - onSubmit={[Function]} +exports[`<Createitem/> renders and matches snapshot 1`] = ` +<form + className="sc-bwzfXH ikCwBB" + data-test={true} + onSubmit={[Function]} +> + <h2> + Sell an Item. + </h2> + <DisplayError /> + <fieldset + aria-busy={false} + disabled={false} > - <DisplayError - error={ - Object { - "message": null, - } - } - onButtonClick={[Function]} - /> - <p> + <label> Image <input accept=".png, .jpg, .jpeg" onChange={[Function]} + required={true} type="file" /> - </p> - <p> + </label> + <label> Title <input id="title" name="title" onChange={[Function]} placeholder="Title" + required={true} type="text" + value="" /> - </p> + </label> <label> - Price + Price + 0 <input id="price" min="0" name="price" onChange={[Function]} + required={true} type="number" + value={0} /> </label> <textarea @@ -46,13 +53,14 @@ exports[`<Createitem/> renders the form out 1`] = ` name="description" onChange={[Function]} placeholder="The desc for this item" + required={true} + value="" /> <button - disabled={false} type="submit" > Submit </button> - </Form> -</div> + </fieldset> +</form> `; |
