Skip to content

Commit cfbe539

Browse files
Update snapshots
1 parent 1943659 commit cfbe539

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

src/connection/pvws.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ function pvwsToDType(data: any): DType {
109109
let dtime = undefined;
110110
if (data.seconds) dtime = new DTime(new Date(data.seconds * 1000));
111111

112-
113112
let stringVal = undefined;
114113
if (data.text !== undefined) {
115114
stringVal = data.text;

src/ui/widgets/DynamicPage/dynamicPage.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ import {
1818
BorderPropOpt,
1919
BoolPropOpt
2020
} from "../propTypes";
21-
import { EmbeddedDisplay, EmbeddedDisplayPropsExtra } from "../EmbeddedDisplay/embeddedDisplay";
21+
import {
22+
EmbeddedDisplay,
23+
EmbeddedDisplayPropsExtra
24+
} from "../EmbeddedDisplay/embeddedDisplay";
2225
import { Color } from "../../../types/color";
2326
import { RelativePosition } from "../../../types/position";
2427
import { ExitFileContext, FileContext } from "../../../misc/fileContext";
@@ -28,13 +31,12 @@ const DynamicPageProps = {
2831
location: StringProp,
2932
border: BorderPropOpt,
3033
showCloseButton: BoolPropOpt,
31-
scroll: BoolPropOpt,
34+
scroll: BoolPropOpt
3235
};
3336

3437
// Generic display widget to put other things inside
3538
export const DynamicPageComponent = (
36-
props: InferWidgetProps<typeof DynamicPageProps> &
37-
EmbeddedDisplayPropsExtra
39+
props: InferWidgetProps<typeof DynamicPageProps> & EmbeddedDisplayPropsExtra
3840
): JSX.Element => {
3941
const theme = props.theme || phoebusTheme;
4042
const style = commonCss(props);

src/ui/widgets/Readback/__snapshots__/readback.test.tsx.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`<Readback /> > alarm-sensitive foreground colour 1`] = `
44
<DocumentFragment>
55
<div
6-
class="MuiFormControl-root MuiTextField-root css-1ahahy7-MuiFormControl-root-MuiTextField-root"
6+
class="MuiFormControl-root MuiTextField-root css-zlfaez-MuiFormControl-root-MuiTextField-root"
77
>
88
<div
99
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-multiline Mui-readOnly MuiInputBase-readOnly css-1cvskbr-MuiInputBase-root-MuiOutlinedInput-root"
@@ -13,6 +13,7 @@ exports[`<Readback /> > alarm-sensitive foreground colour 1`] = `
1313
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputMultiline Mui-readOnly MuiInputBase-readOnly css-w4nesw-MuiInputBase-input-MuiOutlinedInput-input"
1414
id=":r5:"
1515
readonly=""
16+
style="height: 0px; overflow: hidden;"
1617
>
1718
hello
1819
</textarea>

src/ui/widgets/Symbol/__snapshots__/symbol.test.tsx.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
exports[`<Symbol /> from .bob file > matches snapshot (using fallback symbol) 1`] = `
44
<DocumentFragment>
55
<div
6-
style="overflow: visible; text-align: left; width: 100%; height: 100%;"
6+
style="background-color: transparent; overflow: visible; text-align: left; width: 100%; height: 100%;"
77
>
88
<img
9-
src="https://cs-web-symbol.diamond.ac.uk/catalogue/default.svg"
10-
style="display: block; transform: rotate(0deg) scaleX(1) scaleY(1); object-fit: fill; object-position: top left;"
9+
src="https://cs-web-symbol.diamond.ac.uk/catalogue/default_symbol.png"
10+
style="display: block; transform: rotate(0deg) scaleX(1) scaleY(1); object-fit: none; object-position: top left;"
1111
/>
1212
</div>
1313
</DocumentFragment>
@@ -16,11 +16,11 @@ exports[`<Symbol /> from .bob file > matches snapshot (using fallback symbol) 1`
1616
exports[`<Symbol /> from .bob file > matches snapshot (with index) 1`] = `
1717
<DocumentFragment>
1818
<div
19-
style="overflow: visible; text-align: left; width: 100%; height: 100%;"
19+
style="background-color: transparent; overflow: visible; text-align: left; width: 100%; height: 100%;"
2020
>
2121
<img
2222
src="img 3.svg"
23-
style="display: block; transform: rotate(0deg) scaleX(1) scaleY(1); object-fit: fill; object-position: top left;"
23+
style="display: block; transform: rotate(0deg) scaleX(1) scaleY(1); object-fit: none; object-position: top left;"
2424
/>
2525
</div>
2626
</DocumentFragment>
@@ -29,11 +29,11 @@ exports[`<Symbol /> from .bob file > matches snapshot (with index) 1`] = `
2929
exports[`<Symbol /> from .bob file > matches snapshot (with rotation) 1`] = `
3030
<DocumentFragment>
3131
<div
32-
style="overflow: visible; text-align: left; width: 100%; height: 100%;"
32+
style="background-color: transparent; overflow: visible; text-align: left; width: 100%; height: 100%;"
3333
>
3434
<img
3535
src="img 1.gif"
36-
style="display: block; transform: rotate(45deg) scaleX(1) scaleY(1); object-fit: fill; object-position: top left;"
36+
style="display: block; transform: rotate(45deg) scaleX(1) scaleY(1); object-fit: none; object-position: top left;"
3737
/>
3838
</div>
3939
</DocumentFragment>
@@ -42,11 +42,11 @@ exports[`<Symbol /> from .bob file > matches snapshot (with rotation) 1`] = `
4242
exports[`<Symbol /> from .bob file > matches snapshot (without index) 1`] = `
4343
<DocumentFragment>
4444
<div
45-
style="overflow: visible; text-align: left; width: 100%; height: 100%;"
45+
style="background-color: transparent; overflow: visible; text-align: left; width: 100%; height: 100%;"
4646
>
4747
<img
4848
src="img 1.gif"
49-
style="display: block; transform: rotate(0deg) scaleX(1) scaleY(1); object-fit: fill; object-position: top left;"
49+
style="display: block; transform: rotate(0deg) scaleX(1) scaleY(1); object-fit: none; object-position: top left;"
5050
/>
5151
</div>
5252
</DocumentFragment>
@@ -55,11 +55,11 @@ exports[`<Symbol /> from .bob file > matches snapshot (without index) 1`] = `
5555
exports[`<Symbol /> from .opi file > matches snapshot (with rotation) 1`] = `
5656
<DocumentFragment>
5757
<div
58-
style="overflow: visible; text-align: left; width: 100%; height: 100%;"
58+
style="background-color: transparent; overflow: visible; text-align: left; width: 100%; height: 100%;"
5959
>
6060
<img
6161
src="img 1.gif"
62-
style="display: block; transform: rotate(45deg) scaleX(1) scaleY(1); object-fit: fill; object-position: top left;"
62+
style="display: block; transform: rotate(45deg) scaleX(1) scaleY(1); object-fit: none; object-position: top left;"
6363
/>
6464
</div>
6565
</DocumentFragment>
@@ -68,7 +68,7 @@ exports[`<Symbol /> from .opi file > matches snapshot (with rotation) 1`] = `
6868
exports[`<Symbol /> from .opi file > matches snapshot 1`] = `
6969
<DocumentFragment>
7070
<div
71-
style="overflow: visible; text-align: left; width: 100%; height: 100%;"
71+
style="background-color: transparent; overflow: visible; text-align: left; width: 100%; height: 100%;"
7272
>
7373
<img
7474
src="img 1.gif"

0 commit comments

Comments
 (0)