Skip to content

Commit

Permalink
Update about unit test code
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunmoAhn committed Nov 25, 2018
1 parent 896d0f7 commit b62282d
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@ exports[`<AddressBar /> should match to snapshot when props.isLoading is true 1`
>
<img
alt=""
className="AddressBar__home-icon"
src={Object {}}
/>
<span
className="AddressBar__home-url"
/>
</button>
</div>
<button
className="AddressBar__button AddressBar__more-btn AddressBar__more-btn--active"
className="AddressBar__button AddressBar__more-btn"
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -139,12 +143,16 @@ exports[`<AddressBar /> should match to snapshot when render default 1`] = `
>
<img
alt=""
className="AddressBar__home-icon"
src={Object {}}
/>
<span
className="AddressBar__home-url"
/>
</button>
</div>
<button
className="AddressBar__button AddressBar__more-btn AddressBar__more-btn--active"
className="AddressBar__button AddressBar__more-btn"
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -223,8 +231,12 @@ exports[`<AddressBar /> should match to snapshot when state.isMenuOpen is true 1
>
<img
alt=""
className="AddressBar__home-icon"
src={Object {}}
/>
<span
className="AddressBar__home-url"
/>
</button>
</div>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@ exports[`<ConfigMenu /> should match to snapshot when isReloadMenu === true 1`]
className="ConfigMenu"
>
<li
className="ConfigMenu__list"
className="ConfigMenu__list ConfigMenu__bottom-line"
>
<button
className="ConfigMenu__btn"
onClick={[Function]}
type="button"
>
New
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
New
</span>
</button>
</li>
<li
Expand All @@ -23,48 +32,84 @@ exports[`<ConfigMenu /> should match to snapshot when isReloadMenu === true 1`]
onClick={[Function]}
type="button"
>
Edit widget
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Edit widget
</span>
</button>
</li>
<li
className="ConfigMenu__list"
>
<button
className="ConfigMenu__btn"
className="ConfigMenu__btn ConfigMenu__arrow ConfigMenu__arrow-up"
onClick={[Function]}
type="button"
>
Refresh every
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Refresh every
</span>
</button>
</li>
<li
className="ConfigMenu__list"
key="never-menu"
>
<button
className="ConfigMenu__btn"
className="ConfigMenu__btn ConfigMenu__dropdown-btn"
data-name="interval-zero-btn"
disabled={true}
onClick={[Function]}
type="button"
>
Never
<img
alt=""
className="ConfigMenu__check-icon ConfigMenu__check-icon--active"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Never
</span>
</button>
</li>
<li
className="ConfigMenu__list"
key="reload-every-menu"
>
<button
className="ConfigMenu__btn"
className="ConfigMenu__btn ConfigMenu__dropdown-btn"
data-name="set-interval-btn"
disabled={false}
onClick={[Function]}
type="button"
>
<p>
<img
alt=""
className="ConfigMenu__check-icon"
src={Object {}}
/>
<p
className="ConfigMenu__select-container"
>
Reload Every
<select
className="ConfigMenu__select"
key="select"
onChange={[Function]}
value={5}
>
Expand All @@ -89,18 +134,31 @@ exports[`<ConfigMenu /> should match to snapshot when isReloadMenu === true 1`]
60s
</option>
</select>
<span
className="ConfigMenu__select-arrow"
key="arrow"
/>
</p>
</button>
</li>
<li
className="ConfigMenu__list"
className="ConfigMenu__list ConfigMenu__bottom-line"
>
<button
className="ConfigMenu__btn"
onClick={[Function]}
type="button"
>
Open with browser
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Open with browser
</span>
</button>
</li>
<li
Expand All @@ -111,7 +169,16 @@ exports[`<ConfigMenu /> should match to snapshot when isReloadMenu === true 1`]
onClick={[Function]}
type="button"
>
Delete this widget
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Delete this widget
</span>
</button>
</li>
</ul>
Expand All @@ -122,14 +189,23 @@ exports[`<ConfigMenu /> should match to snapshot when render default 1`] = `
className="ConfigMenu"
>
<li
className="ConfigMenu__list"
className="ConfigMenu__list ConfigMenu__bottom-line"
>
<button
className="ConfigMenu__btn"
onClick={[Function]}
type="button"
>
New
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
New
</span>
</button>
</li>
<li
Expand All @@ -140,29 +216,56 @@ exports[`<ConfigMenu /> should match to snapshot when render default 1`] = `
onClick={[Function]}
type="button"
>
Edit widget
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Edit widget
</span>
</button>
</li>
<li
className="ConfigMenu__list"
>
<button
className="ConfigMenu__btn"
className="ConfigMenu__btn ConfigMenu__arrow ConfigMenu__arrow-down"
onClick={[Function]}
type="button"
>
Refresh every
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Refresh every
</span>
</button>
</li>
<li
className="ConfigMenu__list"
className="ConfigMenu__list ConfigMenu__bottom-line"
>
<button
className="ConfigMenu__btn"
onClick={[Function]}
type="button"
>
Open with browser
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Open with browser
</span>
</button>
</li>
<li
Expand All @@ -173,7 +276,16 @@ exports[`<ConfigMenu /> should match to snapshot when render default 1`] = `
onClick={[Function]}
type="button"
>
Delete this widget
<img
alt=""
className="ConfigMenu__icon"
src={Object {}}
/>
<span
className="ConfigMenu__text"
>
Delete this widget
</span>
</button>
</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<DeleteWidgetConfirm /> should match to snapshot when render default 1`] = `
<div>
<h3>
<div
className="DeleteWidgetConfirm__container"
>
<h5>
Delete this widget
</h3>
<p>
</h5>
<p
className="DeleteWidgetConfirm__content"
>
This widget will be deleted. Would you like to go on?
</p>
<button
onClick={[Function]}
type="button"
>
Cancel
</button>
<button
onClick={[Function]}
type="button"
<div
className="DeleteWidgetConfirm__btn-set"
>
Ok
</button>
<button
className="Btn Btn--sm Btn--gray"
onClick={[Function]}
type="button"
>
Cancel
</button>
<button
className="Btn Btn--sm Btn--primary"
onClick={[Function]}
type="button"
>
Ok
</button>
</div>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`<MenuNewWindow /> should match to snapshot when render default 1`] = `
</button>
</li>
<li
className="MenuNewWindow__list"
className="MenuNewWindow__list MenuNewWindow__list--bottom"
>
<button
className="MenuNewWindow__btn"
Expand Down
Loading

0 comments on commit b62282d

Please sign in to comment.