build sanity-check-1 #84
Annotations
4 warnings
Run tests:
test/components/views/beacon/BeaconViewDialog-test.tsx#L108
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: {"_events": {"error": [Function anonymous]}, "_eventsCount": 1, "_maxListeners": undefined, "addControl": [Function mockConstructor], "fitBounds": [Function mockConstructor], "removeControl": [Function mockConstructor], "setCenter": [Function mockConstructor], "setStyle": [Function mockConstructor], "zoomIn": [Function mockConstructor], "zoomOut": [Function mockConstructor], Symbol(kCapture): false}
Number of calls: 0
at Object.toHaveBeenCalledWith (test/components/views/beacon/BeaconViewDialog-test.tsx:108:34)
|
Run tests:
test/components/views/rooms/MessageComposerButtons-test.tsx#L97
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
@@ -4,8 +4,7 @@
"More options",
Array [
"Sticker",
"Voice Message",
"Poll",
- "Location",
],
]
at Object.toEqual (test/components/views/rooms/MessageComposerButtons-test.tsx:97:35)
|
Run tests:
test/components/views/beacon/BeaconMarker-test.tsx#L120
TestingLibraryElementError: Unable to find an element by: [data-testid="avatar-img"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="mx_Spinner"
>
<div
aria-label="Loading…"
class="mx_Spinner_icon"
data-testid="spinner"
role="progressbar"
style="width: 32px; height: 32px;"
/>
</div>
</div>
</body>
at Object.getElementError (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByTestId (test/components/views/beacon/BeaconMarker-test.tsx:120:23)
|
Run tests:
test/components/views/beacon/BeaconMarker-test.tsx#L119
expect(received).toMatchSnapshot()
Snapshot name: `<BeaconMarker /> renders marker when beacon has location 1`
- Snapshot - 18
+ Received + 7
<DocumentFragment>
- <span>
<div
- class="mx_Marker mx_Username_color6"
- id="!room:server_@alice:server"
+ class="mx_Spinner"
>
<div
- class="mx_Marker_border"
- >
- <span
- class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
- data-color="6"
- data-testid="avatar-img"
- data-type="round"
- role="presentation"
- style="--cpd-avatar-size: 36px;"
- title="@alice:server"
- >
- a
- </span>
+ aria-label="Loading…"
+ class="mx_Spinner_icon"
+ data-testid="spinner"
+ role="progressbar"
+ style="width: 32px; height: 32px;"
+ />
</div>
- </div>
- </span>
</DocumentFragment>
at Object.toMatchSnapshot (test/components/views/beacon/BeaconMarker-test.tsx:119:30)
|
Loading