copilot/packages/cp-frontend/test/unit/components/service/__snapshots__/scale.js.snap

433 lines
8.5 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders <Scale /> without throwing 1`] = `
.c13 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
min-width: 7.5rem;
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin: 0;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
line-height: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border-radius: 0.25rem;
border: solid 0.0625rem;
}
.c13::-moz-focus-inner,
.c13[type='button']::-moz-focus-inner,
.c13[type='reset']::-moz-focus-inner,
.c13[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c13:-moz-focusring,
.c13[type='button']:-moz-focusring,
.c13[type='reset']:-moz-focusring,
.c13[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c13:focus {
outline: 0;
text-decoration: none;
}
.c13:hover {
border: solid 0.0625rem;
}
.c13:active,
.c13:active:hover,
.c13:active:focus {
background-image: none;
outline: 0;
}
.c13[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c13 + button {
margin-left: 1.25rem;
}
.c14 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
min-width: 7.5rem;
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin: 0;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
line-height: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border-radius: 0.25rem;
border: solid 0.0625rem;
box-shadow: 0 0.125rem 0 0 rgba(0,0,0,0.05);
}
.c14::-moz-focus-inner,
.c14[type='button']::-moz-focus-inner,
.c14[type='reset']::-moz-focus-inner,
.c14[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c14:-moz-focusring,
.c14[type='button']:-moz-focusring,
.c14[type='reset']:-moz-focusring,
.c14[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c14:focus {
outline: 0;
text-decoration: none;
}
.c14:hover {
border: solid 0.0625rem;
}
.c14:active,
.c14:active:hover,
.c14:active:focus {
background-image: none;
outline: 0;
}
.c14[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c14 + button {
margin-left: 1.25rem;
}
.c1 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 500;
font-size: 1.5rem;
}
.c3 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
line-height: 1.5rem;
font-size: 0.9375rem;
}
.c12 {
vertical-align: middle;
}
.c10 {
vertical-align: middle;
}
.c0 {
line-height: 1.25;
margin: 0 0 0.75rem 0;
}
.c2 {
margin: 0.75rem 0 1.875rem 0;
}
.c9 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
border-radius: 0.25rem;
border: solid 0.0625rem;
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 0.9375rem 1.125rem;
position: relative;
text-align: center;
line-height: normal;
vertical-align: middle;
touch-action: manipulation;
min-width: 0;
cursor: pointer;
}
.c9::-moz-focus-inner,
.c9[type='button']::-moz-focus-inner,
.c9[type='reset']::-moz-focus-inner,
.c9[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c9:-moz-focusring,
.c9[type='button']:-moz-focusring,
.c9[type='reset']:-moz-focusring,
.c9[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c9:focus {
outline: 0;
}
.c9:active,
.c9:active:hover,
.c9:active:focus {
outline: 0;
}
.c9[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c11 {
margin-left: 0.375rem;
}
.c4 {
padding: 0.35em 0.75em 0.625em;
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
width: 100%;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c5 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
float: right;
}
.c6 {
margin-bottom: 1.5rem;
}
.c8 {
box-sizing: border-box;
width: 100%;
height: 3rem;
margin-bottom: 0.5rem;
margin-top: 0.5rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
border: 0.0625rem solid;
font-size: 0.9375rem;
line-height: normal !important;
font-weight: 400;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c8:focus {
outline: 0;
}
.c7 {
width: 7.5rem;
margin: 0 0.75rem 0 0;
vertical-align: middle;
}
<form
onSubmit={[Function]}
>
<h2
className="c0 c1"
>
Scaling a service:
<br />
Nginx
</h2>
<p
className="c2 c3"
>
Choose how many instances of a service you want to have running.
</p>
<fieldset
className="c4"
style={undefined}
>
<div>
<label
className="c5"
form="testScaleForm"
/>
<div
className="c6"
>
<input
className="c7 c8"
id="cwNinu"
name="replicas"
onBlur={[Function]}
onChange={[Function]}
onDragStart={[Function]}
onDrop={[Function]}
onFocus={[Function]}
value=""
/>
<button
className="c9"
onClick={[Function]}
>
<svg
className="c10"
height="2"
verticalAlign="middle"
viewBox="0 0 8 2"
width="8"
xmlns="http://www.w3.org/2000/svg"
>
<title>
icon: plus
</title>
<path
d="M0 0h8v2H0z"
fill="#494949"
fillRule="evenodd"
/>
</svg>
</button>
<button
className="c11 c9"
onClick={[Function]}
>
<svg
className="c12"
height="8"
verticalAlign="middle"
viewBox="0 0 8 8"
width="8"
xmlns="http://www.w3.org/2000/svg"
>
<title>
icon: plus
</title>
<path
d="M3 3H0v2h3v3h2V5h3V3H5V0H3v3z"
fill="#494949"
fillRule="evenodd"
/>
</svg>
</button>
</div>
</div>
</fieldset>
<button
className="c13"
onClick={[Function]}
type="button"
>
Cancel
</button>
<button
className="c14"
disabled={true}
type="submit"
>
Scale
</button>
</form>
`;