Device manager - design tweaks (#9768)
* hover style on dropdown * hover states * device details spacing * device details h3 -> h4 * missing fullstops * update snapshots for new copy * device details expand icon bigger * hide current session security card when details expanded * filter dropdown padding and hover state * update cypress selector for device detail heading
This commit is contained in:
parent
2152f2ab8b
commit
0485b74acb
16 changed files with 76 additions and 44 deletions
|
@ -420,6 +420,21 @@ describe("<SessionManagerTab />", () => {
|
|||
|
||||
expect(getByTestId("current-session-section")).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it("expands current session details", async () => {
|
||||
mockClient.getDevices.mockResolvedValue({ devices: [alicesDevice, alicesMobileDevice] });
|
||||
const { getByTestId } = render(getComponent());
|
||||
|
||||
await act(async () => {
|
||||
await flushPromises();
|
||||
});
|
||||
|
||||
fireEvent.click(getByTestId("current-session-toggle-details"));
|
||||
|
||||
expect(getByTestId(`device-detail-${alicesDevice.device_id}`)).toBeTruthy();
|
||||
// only one security card rendered
|
||||
expect(getByTestId("current-session-section").querySelectorAll(".mx_DeviceSecurityCard").length).toEqual(1);
|
||||
});
|
||||
});
|
||||
|
||||
describe("device detail expansion", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue