Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[desktop-client] Add missing E2E tests

未关闭
#1,228 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust, typescript

调研方向

Start by reading the existing cases in e2e/tests/enrollment.spec.ts and the desktop client's E2E test setup to understand how tests are run and how client actions are exercised. The issue lists the scenarios and target files, including several new spec files; work through the cases and run the relevant E2E suite. Done means each listed scenario is covered and passes, but the broad cross-feature scope makes this a substantial effort.

由索引模型根据 Issue 内容生成。

描述

  • e2e/tests/enrollment.spec.ts:54: duplicate device name rejected ("Name already used."), invalid token rejected
  • e2e/tests/enrollment.spec.ts:70: wrong TOTP code on connect is rejected, location stays disconnected
  • e2e/tests/instance.spec.ts (new): delete instance (last instance → "Add Defguard items"), update instance with new token (valid, empty, invalid)
  • e2e/tests/mfaConfiguration.spec.ts (new): configure TOTP from client, select methods validation, cancel and restart, add method from Add page (single instance), verify identity with TOTP, recovery codes after first method
  • e2e/tests/mfaConfigurationLocation.spec.ts (new): configure MFA from location card, from location MFA settings, several methods in one session, verification method choice, instance picker (two instances)
  • e2e/tests/multiStepMfa.spec.ts (new): connect to multi-step MFA location
  • e2e/tests/reenrollment.spec.ts (new): re-enrollment without required MFA keeps TOTP secret
  • e2e/tests/synchronization.spec.ts (new): location change in Core (name, Allowed IPs) applied by client
  • e2e/tests/trafficPolicy.spec.ts (new): "Disable all traffic" / "Force all traffic" lock traffic mode on location card
  • e2e/tests/settings.spec.ts (new): logging threshold, MTU (check interface MTU, location MTU vs client MTU), session timeout, settings persist after restart
  • e2e/tests/connectionStats.spec.ts (new): connection stats refresh in full view
  • e2e/tests/splitDns.spec.ts (new): split DNS on Linux
  • e2e/tests/directConnection.spec.ts (new): direct connection to gateway when location has no posture check
主要语言
Rust
星标
371
派生
41
平均合并
18 小时 58 分钟
30 天内合并 PR
41

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DefGuard/client 的其他 Issue

查看 DefGuard/client 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。