-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable key backup by default #28691
Open
dbkr
wants to merge
21
commits into
develop
Choose a base branch
from
dbkr/key_backup_by_default_2
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+156
−30
Open
Enable key backup by default #28691
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e7e7331
Factor out crypto setup process into a store
dbkr 2ce127c
fix test
dbkr 1c8d7d8
test for the store
dbkr ce19437
Add comment
dbkr c07883e
Merge branch 'develop' into dbkr/initialcryptosetupstore
dbkr b2601b1
Enable key backup by default
dbkr cf0b559
Fix test
dbkr d14309f
Prompt user to set up 4S on logout
dbkr 905023d
Fix test
dbkr 3f740a2
Merge branch 'develop' into dbkr/key_backup_by_default_2
dbkr 9c3041d
Add playwright test for key backup by default
dbkr c41dc98
Fix imports
dbkr 96b8cfd
This isn't unexpected anymore
dbkr 8d711c1
Update doc
dbkr 6025046
Fix docs and function name on renderSetupBackupDialog()
dbkr e0f3713
Use checkKeyBackupAndEnable
dbkr 89ff6a4
Docs for setup encryption toast
dbkr 089dbc6
Also test the toast appears
dbkr f56f36d
Update mock for the method we use now
dbkr ced2ebf
Okay fine I guess we need both
dbkr 9421008
Swap here too
dbkr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
Copyright 2024 New Vector Ltd. | ||
|
||
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only | ||
Please see LICENSE files in the repository root for full details. | ||
*/ | ||
|
||
import React from "react"; | ||
import { render, screen } from "jest-matrix-react"; | ||
|
||
import ToastContainer from "../../../src/components/structures/ToastContainer"; | ||
import { Kind, showToast } from "../../../src/toasts/SetupEncryptionToast"; | ||
|
||
describe("SetupEncryptionToast", () => { | ||
beforeEach(() => { | ||
render(<ToastContainer />); | ||
}); | ||
|
||
it("should render the se up recovery toast", async () => { | ||
showToast(Kind.SET_UP_RECOVERY); | ||
|
||
await expect(screen.findByText("Set up recovery")).resolves.toBeInTheDocument(); | ||
}); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the meat of the PR no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really: this actually worked before by going through the UIA flow which just worked because it didn't actually need UIA. That fails in dev mode now though. Fortunately, it was a bug that we were going via the UIA flow anyway.