Skip to content

Commit

Permalink
chore: #1033 update app header, update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
An Duong committed May 22, 2020
1 parent a2b3243 commit aca8c06
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 279 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,36 +96,6 @@ exports[`ClientAppDetailManage should match a snapshot 1`] = `
src="https://bulma.io/images/placeholders/48x48.png"
/>
</div>
<Component>
<div
className="column "
>
<Component>
<h6
className="title is-6 "
id=""
>
Settings
</h6>
</Component>
<Component
fullWidth={true}
onClick={[Function]}
type="button"
variant="primary"
>
<button
className="button is-primary is-fullwidth "
data-test=""
disabled={false}
onClick={[Function]}
type="button"
>
Configuration
</button>
</Component>
</div>
</Component>
</div>
</Component>
<Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,42 +184,15 @@ exports[`ClientAppDetail should not render loader when client.appDetail.data is
<div
data-test=""
>
<div>
<img
className="image"
src="https://bulma.io/images/placeholders/48x48.png"
/>
</div>
<Component>
<div
className="column "
<h5
className="title is-5 "
id=""
>
<Component>
<h6
className="title is-6 "
id=""
>
Settings
</h6>
</Component>
<Component
fullWidth={true}
onClick={[Function]}
type="button"
variant="primary"
>
<button
className="button is-primary is-fullwidth "
data-test=""
disabled={false}
onClick={[Function]}
type="button"
>
Configuration
</button>
</Component>
</div>
Developer
</h5>
</Component>
TBC
</div>
</Component>
</Component>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,176 +78,12 @@ exports[`DeveloperAppDetail should match a snapshot 1`] = `
className="loader-spinner body"
data-test=""
>
<Component
className="is-vcentered "
>
<div
className="columns is-vcentered "
>
<Component
className="is-4"
>
<div
className="column is-4"
>
<div>
<img
className="image"
src="https://bulma.io/images/placeholders/48x48.png"
/>
</div>
<Component>
<div
className="column "
>
<Component>
<h6
className="title is-6 "
id=""
>
Settings
</h6>
</Component>
<Component
fullWidth={true}
onClick={[Function]}
type="button"
variant="primary"
>
<button
className="button is-primary is-fullwidth "
data-test=""
disabled={false}
onClick={[Function]}
type="button"
>
Configuration
</button>
</Component>
</div>
</Component>
</div>
</Component>
<Component
className="is-8"
>
<div
className="column is-8"
>
<Component>
<h3
className="title is-3 "
id=""
/>
</Component>
</div>
</Component>
</div>
</Component>
</AppHeader>
<AppContent
appDetailData={Object {}}
loginType="DEVELOPER"
>
<Component>
<div
className="columns "
>
<Component
className="is-4"
>
<div
className="column is-4"
>
<div
key="app-developer"
>
<p>
Developer:
</p>
<p />
</div>
<div
key="app-id"
>
<p>
Client ID:
</p>
<p />
</div>
<div
key="app-listed"
>
<p>
Status:
</p>
<p>
Not listed
</p>
<FaTimes>
<IconBase
attr={
Object {
"viewBox": "0 0 352 512",
}
}
>
<svg
fill="currentColor"
height="1em"
stroke="currentColor"
strokeWidth="0"
style={
Object {
"color": undefined,
}
}
viewBox="0 0 352 512"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
key="0"
/>
</svg>
</IconBase>
</FaTimes>
</div>
</div>
</Component>
<Component
className="is-8"
>
<div
className="column is-8"
>
<Component
html=""
>
<Component
className="html-render"
>
<div
className="content html-render"
/>
</Component>
</Component>
<br />
<br />
<Component
isMultiLine={true}
>
<div
className="columns is-multiline "
/>
</Component>
</div>
</Component>
</div>
</Component>
</AppContent>
</div>
<div />
<div />
<div />
<div />
</div>
</Component>
</DeveloperAppDetail>
</Router>
</MemoryRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,47 +79,6 @@ exports[`AppContent should match a snapshot 1`] = `
src="https://reapit-app-store-app-media.s3.eu-west-2.amazonaws.com/7d88729f-2366-4561-9d5c-282615f3946b.jpeg"
/>
</div>
<Component>
<div
className="column "
>
<Component>
<h6
className="title is-6 "
id=""
>
Settings
</h6>
</Component>
<Component
fullWidth={true}
onClick={[Function]}
type="button"
variant="primary"
>
<button
className="button is-primary is-fullwidth "
data-test=""
disabled={false}
onClick={[Function]}
type="button"
>
Configuration
</button>
</Component>
</div>
</Component>
<Component
afterClose={[Function]}
closeModal={[Function]}
type="BOOK_VIEWING"
>
<Component
afterClose={[Function]}
renderChildren={true}
visible={true}
/>
</Component>
</div>
</Component>
<Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const AppHeader: React.FC<AppHeaderProps> = ({ appDetailData, buttonGroup }) =>
alt={name}
/>
</div>
{!isWebComponent && (
{isWebComponent && (
<>
<GridItem>
<H6>Settings</H6>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ describe('Config-modal-inner', () => {
isShowModal: true,
},
},
auth: {
loginSession: {
loginIdentity: {
clientId: 'DXX',
},
},
},
} as ReduxState
const mockStore = configureStore()
const store = mockStore(mockState)
Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aca8c06

Please sign in to comment.