Remove usage of legacyRoot in RTL tests #1015
Annotations
2 errors
Run tests:
test/unit-tests/components/views/right_panel/UserInfo-test.tsx#L657
expect(received).toMatchSnapshot()
Snapshot name: `<UserInfo /> with crypto enabled should render a deactivate button for users of the same server if we are a server admin 1`
- Snapshot - 7
+ Received + 18
@@ -117,20 +117,20 @@
</h2>
<p>
Messages in this room are not end-to-end encrypted.
</p>
<div
- class="mx_UserInfo_container_verifyButton"
+ class="mx_Spinner"
>
<div
- class="mx_AccessibleButton mx_UserInfo_field mx_UserInfo_verifyButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link"
- role="button"
- tabindex="0"
- >
- Verify
+ aria-label="Loading…"
+ class="mx_Spinner_icon"
+ data-testid="spinner"
+ role="progressbar"
+ style="width: 32px; height: 32px;"
+ />
</div>
- </div>
<div
class="mx_UserInfo_devices"
>
<div />
<div>
@@ -344,9 +344,20 @@
<path
d="M8.7 17.3a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7l3.9-3.9-3.9-3.9a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l4.6 4.6c.1.1.17.208.213.325.041.117.062.242.062.375s-.02.258-.063.375a.877.877 0 0 1-.212.325l-4.6 4.6a.948.948 0 0 1-.7.275.948.948 0 0 1-.7-.275Z"
/>
</svg>
</button>
+ </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>
</div>
</div>
at Object.toMatchSnapshot (test/unit-tests/components/views/right_panel/UserInfo-test.tsx:657:31)
|
Run tests
Process completed with exit code 1.
|
Loading