summaryrefslogtreecommitdiffstats
path: root/frontend/__tests__/__snapshots__/CreateItem.test.js.snap
blob: 5c51c2d54967f9f8e41ae88b6cee858a18e25157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Jest Snapshot v1, https://goo.gl/fbAQLP

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}
  >
    <label>
      Image
      <input
        accept=".png, .jpg, .jpeg"
        onChange={[Function]}
        required={true}
        type="file"
      />
    </label>
    <label>
      Title
      <input
        id="title"
        name="title"
        onChange={[Function]}
        placeholder="Title"
        required={true}
        type="text"
        value=""
      />
    </label>
    <label>
      Price 
      0
      <input
        id="price"
        min="0"
        name="price"
        onChange={[Function]}
        required={true}
        type="number"
        value={0}
      />
    </label>
    <textarea
      id="description"
      name="description"
      onChange={[Function]}
      placeholder="The desc for this item"
      required={true}
      value=""
    />
    <button
      type="submit"
    >
      Submit
    </button>
  </fieldset>
</form>
`;