Fix E2E test quality issues: always-passing assertions, unawaited checks, and dead code (#32801)

* Fix E2E test quality issues: always-passing assertions, unawaited checks, and dead code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* apply review

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
YONGJAE LEE(이용재)
2026-03-16 18:00:22 +00:00
committed by GitHub
co-authored by Claude Sonnet 4.6
parent ee5d2609df
commit 68070b2e97
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ export async function disableKeyBackup(app: ElementAppPage): Promise<void> {
if (await keyStorageToggle.isChecked()) {
await encryptionTab.getByRole("switch", { name: "Allow key storage" }).click();
await encryptionTab.getByRole("button", { name: "Delete key storage" }).click();
await encryptionTab.getByRole("switch", { name: "Allow key storage" }).isVisible();
await expect(encryptionTab.getByRole("switch", { name: "Allow key storage" })).toBeVisible();
// Wait for the update to account data to stick
await new Promise((resolve) => setTimeout(resolve, 2000));