Skip to content

🧪 Add tests for SettingsTab component#418

Closed
is0692vs wants to merge 1 commit into
mainfrom
add-settingstab-test-8439156629448991892
Closed

🧪 Add tests for SettingsTab component#418
is0692vs wants to merge 1 commit into
mainfrom
add-settingstab-test-8439156629448991892

Conversation

@is0692vs

@is0692vs is0692vs commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🎯 What: Added missing test file for SettingsTab component.\n📊 Coverage: Covered rendering, checked state calculation, and change event handlers.\n✨ Result: Reached 100% test coverage for SettingsTab.tsx.


PR created automatically by Jules for task 8439156629448991892 started by @is0692vs

Greptile Summary

SettingsTab コンポーネントのテストファイルを新規追加し、vitest のカバレッジ対象にも追加した PR です。

  • レンダリング、isBlockVisible による checked 状態の確認、toggleMainBlockVisibility / toggleDisplayOption の呼び出し確認を 5 テストケースで網羅しており、コンポーネントの全コードパスをカバーしています。
  • vitest.config.ts への変更は既存パターンに沿った 1 行追加のみで、既存のカバレッジ閾値には影響しません。
  • スタイル上の軽微な改善点として、fireEvent.click の代わりに userEvent.click の利用、showBio 分岐の冗長な else-if の整理、"profile" 文字列のハードコードを MAIN_BLOCKS[0].id 参照への置き換えが挙げられます。

Confidence Score: 4/5

テストのみの変更であり、プロダクションコードへの影響はなし。テストロジックは全体的に正しく機能する。

テストコード自体に実行を妨げるバグはなく、コンポーネントの動作を正しく検証している。指摘事項はすべてスタイル・堅牢性に関するもので、テストの正確性には影響しない。

src/components/tests/SettingsTab.test.tsx — fireEvent.click の使用方法と冗長な分岐を確認してほしい。

Important Files Changed

Filename Overview
src/components/tests/SettingsTab.test.tsx SettingsTab コンポーネントの新規テストファイル。レンダリング、checked 状態、変更イベントハンドラを網羅しているが、fireEvent.click の使用や showBio 分岐の冗長性など軽微なスタイル課題あり。
vitest.config.ts カバレッジ対象に SettingsTab.tsx を追加する 1 行の変更。既存の設定パターンと一致しており問題なし。

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
    participant Test as SettingsTab.test.tsx
    participant STB as SettingsTab Component
    participant MOCK_VIS as mockIsBlockVisible
    participant MOCK_TOGGLE_MAIN as mockToggleMainBlockVisibility
    participant MOCK_TOGGLE_OPT as mockToggleDisplayOption

    Test->>STB: "render(<SettingsTab {...defaultProps} />)"
    STB->>MOCK_VIS: isBlockVisible(id) for each MAIN_BLOCK
    MOCK_VIS-->>STB: true (only "profile"), false otherwise

    Note over Test,STB: checked 状態の検証
    Test->>STB: screen.getByLabelText(label)
    STB-->>Test: HTMLInputElement (checked or unchecked)

    Note over Test,STB: クリックイベントの検証
    Test->>STB: fireEvent.click(checkbox)
    STB->>MOCK_TOGGLE_MAIN: toggleMainBlockVisibility(id)
    Test->>STB: fireEvent.click(detailCheckbox)
    STB->>MOCK_TOGGLE_OPT: toggleDisplayOption(key)
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
    participant Test as SettingsTab.test.tsx
    participant STB as SettingsTab Component
    participant MOCK_VIS as mockIsBlockVisible
    participant MOCK_TOGGLE_MAIN as mockToggleMainBlockVisibility
    participant MOCK_TOGGLE_OPT as mockToggleDisplayOption

    Test->>STB: "render(<SettingsTab {...defaultProps} />)"
    STB->>MOCK_VIS: isBlockVisible(id) for each MAIN_BLOCK
    MOCK_VIS-->>STB: true (only "profile"), false otherwise

    Note over Test,STB: checked 状態の検証
    Test->>STB: screen.getByLabelText(label)
    STB-->>Test: HTMLInputElement (checked or unchecked)

    Note over Test,STB: クリックイベントの検証
    Test->>STB: fireEvent.click(checkbox)
    STB->>MOCK_TOGGLE_MAIN: toggleMainBlockVisibility(id)
    Test->>STB: fireEvent.click(detailCheckbox)
    STB->>MOCK_TOGGLE_OPT: toggleDisplayOption(key)
Loading
Prompt To Fix All With AI
Fix the following 3 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 3
src/components/__tests__/SettingsTab.test.tsx:64-68
**`fireEvent.click` による onChange トリガー**

`fireEvent.click` は低レベルの DOM イベントを一つ発火させるだけで、実際のユーザー操作(`pointerdown``pointerup``click``change` といったイベントシーケンス)を再現しません。React の制御されたコンポーネントに対しては `userEvent.click` を使う方がより実際のブラウザ挙動に近いシミュレーションになります。jsdom 環境では現在のコードでも動作しますが、`userEvent` の利用を検討してください。

`toggleDisplayOption` のテスト(79行目)も同様です。

### Issue 2 of 3
src/components/__tests__/SettingsTab.test.tsx:56-66
**`showBio` の分岐が else と同じ期待値で冗長**

`showBio: false` の期待値は else ブランチの `false` と同一です。この分岐は `showBio``true` にしたケースをテストしないと意味がありません。現状では `else if` を削除しても動作に変わりはなく、コードの意図が不明確になっています。

```suggestion
    DETAIL_OPTIONS.forEach(({ key, label }) => {
      const checkbox = screen.getByLabelText(label) as HTMLInputElement;
      if (key === "showAvatar") {
        expect(checkbox.checked).toBe(true);
      } else {
        // showBio is false, other keys are undefined → displayOptions[key] ?? false = false
        expect(checkbox.checked).toBe(false);
      }
    });
```

### Issue 3 of 3
src/components/__tests__/SettingsTab.test.tsx:43-50
**`"profile"` 文字列のハードコード**

`beforeEach``mockIsBlockVisible``id === "profile"` を返すように設定しているのと対応していますが、`MAIN_BLOCKS` の並び順が変わった場合にテストの意図と実際の検証がずれます。`MAIN_BLOCKS[0].id` を参照することで定義との結合を明示できます。

```suggestion
    const visibleId = MAIN_BLOCKS[0].id; // beforeEach で id === "profile" を visible に設定
    MAIN_BLOCKS.forEach(({ id, label }) => {
      const checkbox = screen.getByLabelText(label) as HTMLInputElement;
      expect(checkbox.checked).toBe(id === visibleId);
    });
```

Reviews (1): Last reviewed commit: "test: add tests for SettingsTab componen..." | Re-trigger Greptile

Greptile also left 3 inline comments on this PR.

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
github-user-summary Ignored Ignored Jul 3, 2026 7:10am

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@is0692vs, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: a12e5648-ed5f-4865-b57a-a338aabb9abe

📥 Commits

Reviewing files that changed from the base of the PR and between 8eb33b2 and 58022b1.

📒 Files selected for processing (2)
  • src/components/__tests__/SettingsTab.test.tsx
  • vitest.config.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-settingstab-test-8439156629448991892

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Add Vitest coverage and tests for SettingsTab component

🧪 Tests ⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Add Vitest tests covering SettingsTab rendering, checked-state logic, and handlers.
• Ensure SettingsTab is included in Vitest coverage targets for 100% component coverage.
Diagram

graph TD
  A["Vitest runner"] --> B["SettingsTab.test.tsx"] --> C["SettingsTab.tsx"] --> D["cardGeneratorConstants.ts"]
  A --> E["vitest.config.ts"]
Loading
High-Level Assessment

The PR’s approach (component-level tests asserting rendering, checked state, and callback invocations) is the most direct way to reach and maintain SettingsTab coverage. Minor alternatives like switching to @testing-library/user-event for more realistic interactions were considered, but fireEvent is sufficient given the simple checkbox onChange behavior.

Files changed (2) +89 / -0

Tests (1) +88 / -0
SettingsTab.test.tsxAdd SettingsTab unit tests for rendering, state, and callbacks +88/-0

Add SettingsTab unit tests for rendering, state, and callbacks

• Introduces a Vitest + React Testing Library suite for SettingsTab. Tests verify MAIN_BLOCKS/DETAIL_OPTIONS rendering, checked-state derivation from isBlockVisible/displayOptions (including undefined fallback), and that checkbox clicks invoke the correct toggle callbacks.

src/components/tests/SettingsTab.test.tsx

Other (1) +1 / -0
vitest.config.tsInclude SettingsTab in Vitest coverage include list +1/-0

Include SettingsTab in Vitest coverage include list

• Adds SettingsTab.tsx to the explicit coverage include list so coverage reporting accounts for the component and can reach 100%.

vitest.config.ts

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive test suite for the SettingsTab component using Vitest and React Testing Library, and updates the Vitest configuration accordingly. The review feedback focuses on improving TypeScript type safety within the test file by explicitly importing and applying types (CardBlockId, CardDisplayOptions) to the mock functions and their implementations.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

import { render, screen, fireEvent } from "@testing-library/react";
import { describe, it, expect, vi, beforeEach } from "vitest";
import { SettingsTab } from "../SettingsTab";
import { MAIN_BLOCKS, DETAIL_OPTIONS } from "@/lib/cardGeneratorConstants";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Import CardBlockId and CardDisplayOptions as types to enable explicit typing for the mock functions and implementations, adhering to the repository's TypeScript guidelines.

Suggested change
import { MAIN_BLOCKS, DETAIL_OPTIONS } from "@/lib/cardGeneratorConstants";
import { MAIN_BLOCKS, DETAIL_OPTIONS } from "@/lib/cardGeneratorConstants";
import type { CardBlockId, CardDisplayOptions } from "@/lib/types";
References
  1. Maintain explicit return types for functions in TypeScript to ensure type safety and API clarity. If a type is only used for annotations, use 'import type' instead of removing the annotation to satisfy linting rules.

Comment on lines +7 to +9
const mockIsBlockVisible = vi.fn();
const mockToggleMainBlockVisibility = vi.fn();
const mockToggleDisplayOption = vi.fn();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Provide explicit type parameters to vi.fn() to ensure type safety and prevent the mocks from defaulting to any types.

Suggested change
const mockIsBlockVisible = vi.fn();
const mockToggleMainBlockVisibility = vi.fn();
const mockToggleDisplayOption = vi.fn();
const mockIsBlockVisible = vi.fn<(id: CardBlockId) => boolean>();
const mockToggleMainBlockVisibility = vi.fn<(id: CardBlockId) => void>();
const mockToggleDisplayOption = vi.fn<(key: keyof CardDisplayOptions) => void>();
References
  1. In TypeScript, ensure functions and mock implementations have explicit return types and use async functions for mocks returning Promises to maintain type safety and readability.


beforeEach(() => {
vi.clearAllMocks();
mockIsBlockVisible.mockImplementation((id) => id === "profile"); // Example: only profile is visible

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Ensure the mock implementation callback has explicit parameter and return types to maintain type safety and adhere to the repository's guidelines.

Suggested change
mockIsBlockVisible.mockImplementation((id) => id === "profile"); // Example: only profile is visible
mockIsBlockVisible.mockImplementation((id: CardBlockId): boolean => id === "profile"); // Example: only profile is visible
References
  1. In TypeScript, ensure functions and mock implementations have explicit return types and use async functions for mocks returning Promises to maintain type safety and readability.

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (1) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 30 rules

Grey Divider


Action required

1. Relative import for SettingsTab 📘 Rule violation ✧ Quality
Description
The new test imports a module under src/ via a relative path (../SettingsTab) instead of the
required @/ alias. This breaks the repository’s import convention and can lead to fragile pathing
as directories change.
Code

src/components/tests/SettingsTab.test.tsx[3]

+import { SettingsTab } from "../SettingsTab";
Evidence
PR Compliance ID 226103 requires that imports targeting code under src/ use the @/ alias instead
of relative paths. The added test uses ../SettingsTab for a src/components module, despite the
repo having an @/* path mapping configured.

Rule 226103: Use @/ path alias for src imports in frontend code
src/components/tests/SettingsTab.test.tsx[3-3]
tsconfig.json[21-23]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The test file imports `SettingsTab` via a relative path (`../SettingsTab`) even though it resolves to a module inside `src/`. Compliance requires using the `@/` alias for `src` imports.

## Issue Context
The repository defines `@/*` -> `./src/*`, so `SettingsTab` should be imported from `@/components/SettingsTab`.

## Fix Focus Areas
- src/components/__tests__/SettingsTab.test.tsx[3-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

@@ -0,0 +1,88 @@
import { render, screen, fireEvent } from "@testing-library/react";
import { describe, it, expect, vi, beforeEach } from "vitest";
import { SettingsTab } from "../SettingsTab";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Relative import for settingstab 📘 Rule violation ✧ Quality

The new test imports a module under src/ via a relative path (../SettingsTab) instead of the
required @/ alias. This breaks the repository’s import convention and can lead to fragile pathing
as directories change.
Agent Prompt
## Issue description
The test file imports `SettingsTab` via a relative path (`../SettingsTab`) even though it resolves to a module inside `src/`. Compliance requires using the `@/` alias for `src` imports.

## Issue Context
The repository defines `@/*` -> `./src/*`, so `SettingsTab` should be imported from `@/components/SettingsTab`.

## Fix Focus Areas
- src/components/__tests__/SettingsTab.test.tsx[3-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment on lines +64 to +68
expect(checkbox.checked).toBe(false);
}
});
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 fireEvent.click による onChange トリガー

fireEvent.click は低レベルの DOM イベントを一つ発火させるだけで、実際のユーザー操作(pointerdownpointerupclickchange といったイベントシーケンス)を再現しません。React の制御されたコンポーネントに対しては userEvent.click を使う方がより実際のブラウザ挙動に近いシミュレーションになります。jsdom 環境では現在のコードでも動作しますが、userEvent の利用を検討してください。

toggleDisplayOption のテスト(79行目)も同様です。

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/__tests__/SettingsTab.test.tsx
Line: 64-68

Comment:
**`fireEvent.click` による onChange トリガー**

`fireEvent.click` は低レベルの DOM イベントを一つ発火させるだけで、実際のユーザー操作(`pointerdown``pointerup``click``change` といったイベントシーケンス)を再現しません。React の制御されたコンポーネントに対しては `userEvent.click` を使う方がより実際のブラウザ挙動に近いシミュレーションになります。jsdom 環境では現在のコードでも動作しますが、`userEvent` の利用を検討してください。

`toggleDisplayOption` のテスト(79行目)も同様です。

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +56 to +66
DETAIL_OPTIONS.forEach(({ key, label }) => {
const checkbox = screen.getByLabelText(label) as HTMLInputElement;
if (key === "showAvatar") {
expect(checkbox.checked).toBe(true);
} else if (key === "showBio") {
expect(checkbox.checked).toBe(false);
} else {
// Fallback for undefined options should be false (due to `displayOptions[key] ?? false` in component)
expect(checkbox.checked).toBe(false);
}
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 showBio の分岐が else と同じ期待値で冗長

showBio: false の期待値は else ブランチの false と同一です。この分岐は showBiotrue にしたケースをテストしないと意味がありません。現状では else if を削除しても動作に変わりはなく、コードの意図が不明確になっています。

Suggested change
DETAIL_OPTIONS.forEach(({ key, label }) => {
const checkbox = screen.getByLabelText(label) as HTMLInputElement;
if (key === "showAvatar") {
expect(checkbox.checked).toBe(true);
} else if (key === "showBio") {
expect(checkbox.checked).toBe(false);
} else {
// Fallback for undefined options should be false (due to `displayOptions[key] ?? false` in component)
expect(checkbox.checked).toBe(false);
}
});
DETAIL_OPTIONS.forEach(({ key, label }) => {
const checkbox = screen.getByLabelText(label) as HTMLInputElement;
if (key === "showAvatar") {
expect(checkbox.checked).toBe(true);
} else {
// showBio is false, other keys are undefined → displayOptions[key] ?? false = false
expect(checkbox.checked).toBe(false);
}
});
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/__tests__/SettingsTab.test.tsx
Line: 56-66

Comment:
**`showBio` の分岐が else と同じ期待値で冗長**

`showBio: false` の期待値は else ブランチの `false` と同一です。この分岐は `showBio``true` にしたケースをテストしないと意味がありません。現状では `else if` を削除しても動作に変わりはなく、コードの意図が不明確になっています。

```suggestion
    DETAIL_OPTIONS.forEach(({ key, label }) => {
      const checkbox = screen.getByLabelText(label) as HTMLInputElement;
      if (key === "showAvatar") {
        expect(checkbox.checked).toBe(true);
      } else {
        // showBio is false, other keys are undefined → displayOptions[key] ?? false = false
        expect(checkbox.checked).toBe(false);
      }
    });
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +43 to +50
MAIN_BLOCKS.forEach(({ id, label }) => {
const checkbox = screen.getByLabelText(label) as HTMLInputElement;
if (id === "profile") {
expect(checkbox.checked).toBe(true);
} else {
expect(checkbox.checked).toBe(false);
}
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 "profile" 文字列のハードコード

beforeEachmockIsBlockVisibleid === "profile" を返すように設定しているのと対応していますが、MAIN_BLOCKS の並び順が変わった場合にテストの意図と実際の検証がずれます。MAIN_BLOCKS[0].id を参照することで定義との結合を明示できます。

Suggested change
MAIN_BLOCKS.forEach(({ id, label }) => {
const checkbox = screen.getByLabelText(label) as HTMLInputElement;
if (id === "profile") {
expect(checkbox.checked).toBe(true);
} else {
expect(checkbox.checked).toBe(false);
}
});
const visibleId = MAIN_BLOCKS[0].id; // beforeEach で id === "profile" を visible に設定
MAIN_BLOCKS.forEach(({ id, label }) => {
const checkbox = screen.getByLabelText(label) as HTMLInputElement;
expect(checkbox.checked).toBe(id === visibleId);
});
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/__tests__/SettingsTab.test.tsx
Line: 43-50

Comment:
**`"profile"` 文字列のハードコード**

`beforeEach``mockIsBlockVisible``id === "profile"` を返すように設定しているのと対応していますが、`MAIN_BLOCKS` の並び順が変わった場合にテストの意図と実際の検証がずれます。`MAIN_BLOCKS[0].id` を参照することで定義との結合を明示できます。

```suggestion
    const visibleId = MAIN_BLOCKS[0].id; // beforeEach で id === "profile" を visible に設定
    MAIN_BLOCKS.forEach(({ id, label }) => {
      const checkbox = screen.getByLabelText(label) as HTMLInputElement;
      expect(checkbox.checked).toBe(id === visibleId);
    });
```

How can I resolve this? If you propose a fix, please make it concise.

@is0692vs

is0692vs commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing duplicate SettingsTab test PR; keeping the newer clean PR #433 for review.

@is0692vs is0692vs closed this Jul 5, 2026
@google-labs-jules

Copy link
Copy Markdown
Contributor

Closing duplicate SettingsTab test PR; keeping the newer clean PR #433 for review.

Understood. Acknowledging that this work is now obsolete and stopping work on this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant