', () => {
- expect.addSnapshotSerializer(createSerializer({mode: 'deep'}));
-
it('renders correctly', () => {
- const component = mount(
+ snapshot(
);
- expect(component).toMatchSnapshot();
});
it('renders correctly for admin', () => {
- const component = mount(
+ snapshot(
);
- expect(component).toMatchSnapshot();
});
it('renders correctly for pdl', () => {
- const component = mount(
+ snapshot(
);
- expect(component).toMatchSnapshot();
});
});
diff --git a/web-ui/src/components/menu/__snapshots__/Menu.test.js.snap b/web-ui/src/components/menu/__snapshots__/Menu.test.js.snap
index 51a797dd0a..c4528c529d 100644
--- a/web-ui/src/components/menu/__snapshots__/Menu.test.js.snap
+++ b/web-ui/src/components/menu/__snapshots__/Menu.test.js.snap
@@ -1,9 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`
renders correctly 1`] = `
-Array [
- "",
- .emotion-0.Menu-root {
+.emotion-0.Menu-root {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -125,9 +123,11 @@ Array [
}
}
-@media (min-width:0px) and (orientation: landscape) {
- .emotion-2 {
- min-height: 48px;
+@media (min-width:0px) {
+ @media (orientation: landscape) {
+ .emotion-2 {
+ min-height: 48px;
+ }
}
}
@@ -298,258 +298,51 @@ Array [
.emotion-9 {
position: fixed;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
+ z-index: 1300;
right: 0;
bottom: 0;
top: 0;
left: 0;
- background-color: transparent;
- -webkit-tap-highlight-color: transparent;
- z-index: -1;
-}
-
-.emotion-10 {
- background-color: #fff;
- color: rgba(0, 0, 0, 0.87);
- -webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- border-radius: 4px;
- box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);
- max-height: calc(100% - 96px);
- -webkit-overflow-scrolling: touch;
- background-color: #fff;
- color: rgba(0, 0, 0, 0.87);
- -webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- border-radius: 4px;
- box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12);
- position: absolute;
- overflow-y: auto;
- overflow-x: hidden;
- min-width: 16px;
- min-height: 16px;
- max-width: calc(100% - 32px);
- max-height: calc(100% - 32px);
- outline: 0;
-}
-
-.emotion-11 {
- list-style: none;
- margin: 0;
- padding: 0;
- position: relative;
- padding-top: 8px;
- padding-bottom: 8px;
- outline: 0;
-}
-
-.emotion-12 {
- display: -webkit-inline-box;
- display: -webkit-inline-flex;
- display: -ms-inline-flexbox;
- display: inline-flex;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- position: relative;
- box-sizing: border-box;
- -webkit-tap-highlight-color: transparent;
- background-color: transparent;
- outline: 0;
- border: 0;
- margin: 0;
- border-radius: 0;
- padding: 0;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- vertical-align: middle;
- -moz-appearance: none;
- -webkit-appearance: none;
- -webkit-text-decoration: none;
- text-decoration: none;
- color: inherit;
- font-family: "Roboto","Helvetica","Arial",sans-serif;
- font-weight: 400;
- font-size: 1rem;
- line-height: 1.5;
- letter-spacing: 0.00938em;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-pack: start;
- -ms-flex-pack: start;
- -webkit-justify-content: flex-start;
- justify-content: flex-start;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- position: relative;
- -webkit-text-decoration: none;
- text-decoration: none;
- min-height: 48px;
- padding-top: 6px;
- padding-bottom: 6px;
- box-sizing: border-box;
- white-space: nowrap;
- padding-left: 16px;
- padding-right: 16px;
-}
-
-.emotion-12::-moz-focus-inner {
- border-style: none;
-}
-
-.emotion-12.Mui-disabled {
- pointer-events: none;
- cursor: default;
-}
-
-@media print {
- .emotion-12 {
- -webkit-print-color-adjust: exact;
- color-adjust: exact;
- }
-}
-
-.emotion-12:hover {
- -webkit-text-decoration: none;
- text-decoration: none;
- background-color: rgba(0, 0, 0, 0.04);
-}
-
-@media (hover: none) {
- .emotion-12:hover {
- background-color: transparent;
- }
-}
-
-.emotion-12.Mui-selected {
- background-color: rgba(25, 118, 210, 0.08);
-}
-
-.emotion-12.Mui-selected.Mui-focusVisible {
- background-color: rgba(25, 118, 210, 0.2);
-}
-
-.emotion-12.Mui-selected:hover {
- background-color: rgba(25, 118, 210, 0.12);
+ visibility: hidden;
+ z-index: 1200;
}
-@media (hover: none) {
- .emotion-12.Mui-selected:hover {
- background-color: rgba(25, 118, 210, 0.08);
+@media (min-width:0px) {
+ .emotion-9 {
+ display: block;
}
}
-.emotion-12.Mui-focusVisible {
- background-color: rgba(0, 0, 0, 0.12);
-}
-
-.emotion-12.Mui-disabled {
- opacity: 0.38;
-}
-
-.emotion-12+.MuiDivider-root {
- margin-top: 8px;
- margin-bottom: 8px;
-}
-
-.emotion-12+.MuiDivider-inset {
- margin-left: 52px;
-}
-
-.emotion-12 .MuiListItemText-root {
- margin-top: 0;
- margin-bottom: 0;
-}
-
-.emotion-12 .MuiListItemText-inset {
- padding-left: 36px;
-}
-
-.emotion-12 .MuiListItemIcon-root {
- min-width: 36px;
-}
-
@media (min-width:600px) {
- .emotion-12 {
- min-height: auto;
+ .emotion-9 {
+ display: none;
}
}
-.emotion-14 {
- position: fixed;
- z-index: 1300;
- right: 0;
- bottom: 0;
- top: 0;
- left: 0;
- visibility: hidden;
- z-index: 1200;
+.emotion-10 {
+ -webkit-flex: 0 0 auto;
+ -ms-flex: 0 0 auto;
+ flex: 0 0 auto;
}
@media (min-width:0px) {
- .emotion-14 {
- display: block;
+ .emotion-10 {
+ display: none;
}
}
@media (min-width:600px) {
- .emotion-14 {
- display: none;
+ .emotion-10 {
+ display: block;
}
}
-.emotion-15 {
- position: fixed;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- right: 0;
- bottom: 0;
- top: 0;
- left: 0;
- background-color: rgba(0, 0, 0, 0.5);
- -webkit-tap-highlight-color: transparent;
- z-index: -1;
-}
-
-.emotion-16 {
+.emotion-11 {
background-color: #fff;
color: rgba(0, 0, 0, 0.87);
-webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- box-shadow: 0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12);
+ box-shadow: none;
overflow-y: auto;
display: -webkit-box;
display: -webkit-flex;
@@ -568,9 +361,10 @@ Array [
top: 0;
outline: 0;
left: 0;
+ border-right: 1px solid rgba(0, 0, 0, 0.12);
}
-.emotion-17 {
+.emotion-12 {
list-style: none;
margin: 0;
padding: 0;
@@ -579,7 +373,7 @@ Array [
padding-bottom: 8px;
}
-.emotion-18 {
+.emotion-13 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
@@ -638,61 +432,61 @@ Array [
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
-.emotion-18::-moz-focus-inner {
+.emotion-13::-moz-focus-inner {
border-style: none;
}
-.emotion-18.Mui-disabled {
+.emotion-13.Mui-disabled {
pointer-events: none;
cursor: default;
}
@media print {
- .emotion-18 {
+ .emotion-13 {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
}
-.emotion-18.Mui-focusVisible {
+.emotion-13.Mui-focusVisible {
background-color: rgba(0, 0, 0, 0.12);
}
-.emotion-18.Mui-selected {
+.emotion-13.Mui-selected {
background-color: rgba(25, 118, 210, 0.08);
}
-.emotion-18.Mui-selected.Mui-focusVisible {
+.emotion-13.Mui-selected.Mui-focusVisible {
background-color: rgba(25, 118, 210, 0.2);
}
-.emotion-18.Mui-disabled {
+.emotion-13.Mui-disabled {
opacity: 0.38;
}
-.emotion-18:hover {
+.emotion-13:hover {
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgba(0, 0, 0, 0.04);
}
@media (hover: none) {
- .emotion-18:hover {
+ .emotion-13:hover {
background-color: transparent;
}
}
-.emotion-18.Mui-selected:hover {
+.emotion-13.Mui-selected:hover {
background-color: rgba(25, 118, 210, 0.12);
}
@media (hover: none) {
- .emotion-18.Mui-selected:hover {
+ .emotion-13.Mui-selected:hover {
background-color: rgba(25, 118, 210, 0.08);
}
}
-.emotion-19 {
+.emotion-14 {
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
@@ -701,7 +495,7 @@ Array [
margin-bottom: 4px;
}
-.emotion-20 {
+.emotion-15 {
margin: 0;
font-family: "Roboto","Helvetica","Arial",sans-serif;
font-weight: 400;
@@ -711,90 +505,242 @@ Array [
display: block;
}
-.emotion-30 {
- height: auto;
- overflow: visible;
- -webkit-transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
-}
-
-.emotion-31 {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- width: 100%;
-}
-
-.emotion-32 {
- width: 100%;
-}
-
-.emotion-49 {
- -webkit-flex: 0 0 auto;
- -ms-flex: 0 0 auto;
- flex: 0 0 auto;
-}
-
-@media (min-width:0px) {
- .emotion-49 {
- display: none;
- }
-}
-
-@media (min-width:600px) {
- .emotion-49 {
- display: block;
- }
-}
-
-.emotion-50 {
- background-color: #fff;
- color: rgba(0, 0, 0, 0.87);
- -webkit-transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- box-shadow: none;
- overflow-y: auto;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- height: 100%;
- -webkit-flex: 1 0 auto;
- -ms-flex: 1 0 auto;
- flex: 1 0 auto;
- z-index: 1200;
- -webkit-overflow-scrolling: touch;
- position: fixed;
- top: 0;
- outline: 0;
- left: 0;
- border-right: 1px solid rgba(0, 0, 0, 0.12);
-}
-
+
-
- Array [
- "",
-
+
- ,
- ]
-
-
-
-
-
,
-]
-`;
-
-exports[`