This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ac5665
commit 1d249a2
Showing
3 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -442,10 +442,10 @@ describe("<UserInfo />", () => { | |
}); | ||
|
||
// there should now be a button with the non-dehydrated device ID | ||
expect(screen.getByRole("button", { description: "d1" })).toBeInTheDocument(); | ||
expect(screen.getByRole("button", { name: "my device" })).toBeInTheDocument(); | ||
|
||
// but not for the dehydrated device ID | ||
expect(screen.queryByRole("button", { description: "d2" })).not.toBeInTheDocument(); | ||
expect(screen.queryByRole("button", { name: "dehydrated device" })).not.toBeInTheDocument(); | ||
|
||
// there should be a line saying that the user has "Offline device" enabled | ||
expect(screen.getByText("Offline device enabled")).toBeInTheDocument(); | ||
|
@@ -528,7 +528,7 @@ describe("<UserInfo />", () => { | |
|
||
// the dehydrated device should be shown as an unverified device, which means | ||
// there should now be a button with the device id ... | ||
const deviceButton = screen.getByRole("button", { description: "d2" }); | ||
const deviceButton = screen.getByRole("button", { name: "dehydrated device" }); | ||
Check warning on line 531 in test/components/views/right_panel/UserInfo-test.tsx GitHub Actions / Jest (1)RETRY 1: <UserInfo /> › with crypto enabled › device dehydration › shows an unverified dehydrated device
Check warning on line 531 in test/components/views/right_panel/UserInfo-test.tsx GitHub Actions / Jest (1)RETRY 2: <UserInfo /> › with crypto enabled › device dehydration › shows an unverified dehydrated device
Check failure on line 531 in test/components/views/right_panel/UserInfo-test.tsx GitHub Actions / Jest (1)<UserInfo /> › with crypto enabled › device dehydration › shows an unverified dehydrated device
|
||
|
||
// ... which should contain the device name | ||
expect(within(deviceButton).getByText("dehydrated device")).toBeInTheDocument(); | ||
|
@@ -571,12 +571,12 @@ describe("<UserInfo />", () => { | |
|
||
// the dehydrated devices should be shown as an unverified device, which means | ||
// there should now be a button with the first dehydrated device id ... | ||
const device1Button = screen.getByRole("button", { description: "d1" }); | ||
const device1Button = screen.getByRole("button", { name: "dehydrated device 1" }); | ||
|
||
// ... which should contain the device name | ||
expect(within(device1Button).getByText("dehydrated device 1")).toBeInTheDocument(); | ||
// and a button with the second dehydrated device id ... | ||
const device2Button = screen.getByRole("button", { description: "d2" }); | ||
const device2Button = screen.getByRole("button", { name: "dehydrated device 2" }); | ||
|
||
// ... which should contain the device name | ||
expect(within(device2Button).getByText("dehydrated device 2")).toBeInTheDocument(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters