@@ -687,10 +687,10 @@ describe("SettingsPage", () => {
687687
688688 renderSettingsPage ( store ) ;
689689
690- fireEvent . click ( screen . getByRole ( "button" , { name : "Providers " } ) ) ;
690+ fireEvent . click ( screen . getByRole ( "button" , { name : "Agents " } ) ) ;
691691
692692 await waitFor ( ( ) => {
693- expect ( screen . getByRole ( "tablist" , { name : "Providers " } ) ) . toBeInTheDocument ( ) ;
693+ expect ( screen . getByRole ( "tablist" , { name : "Agents " } ) ) . toBeInTheDocument ( ) ;
694694 expect ( screen . getByRole ( "tab" , { name : "Claude" } ) ) . toHaveAttribute ( "aria-selected" , "true" ) ;
695695 expect ( screen . getByRole ( "tab" , { name : "Claude" } ) ) . toHaveClass ( "settings-provider-tab" ) ;
696696 expect ( screen . getByLabelText ( "启动命令参数" ) ) . toBeInTheDocument ( ) ;
@@ -793,7 +793,7 @@ describe("SettingsPage", () => {
793793
794794 renderSettingsPage ( store ) ;
795795
796- fireEvent . click ( screen . getByRole ( "button" , { name : "Providers " } ) ) ;
796+ fireEvent . click ( screen . getByRole ( "button" , { name : "Agents " } ) ) ;
797797
798798 expect ( sendCommand ) . not . toHaveBeenCalledWith ( "settings.get" , { } , undefined ) ;
799799 expect ( screen . queryByText ( "设置加载失败" ) ) . not . toBeInTheDocument ( ) ;
@@ -866,7 +866,7 @@ describe("SettingsPage", () => {
866866 const mobileHeader = ( ) =>
867867 document . querySelector ( ".settings-header .mobile-page-header" ) as HTMLElement | null ;
868868
869- expect ( screen . getByRole ( "button" , { name : "Providers " } ) ) . toBeInTheDocument ( ) ;
869+ expect ( screen . getByRole ( "button" , { name : "Agents " } ) ) . toBeInTheDocument ( ) ;
870870 expect ( screen . getByRole ( "button" , { name : "快捷键" } ) ) . toBeInTheDocument ( ) ;
871871 expect ( screen . queryByText ( "通知" ) ) . not . toBeInTheDocument ( ) ;
872872 expect ( screen . queryByLabelText ( "启动命令参数" ) ) . not . toBeInTheDocument ( ) ;
@@ -886,7 +886,7 @@ describe("SettingsPage", () => {
886886
887887 fireEvent . click ( screen . getByRole ( "button" , { name : "返回" } ) ) ;
888888
889- expect ( screen . getByRole ( "button" , { name : "Providers " } ) ) . toBeInTheDocument ( ) ;
889+ expect ( screen . getByRole ( "button" , { name : "Agents " } ) ) . toBeInTheDocument ( ) ;
890890 expect ( screen . queryByLabelText ( "启动命令参数" ) ) . not . toBeInTheDocument ( ) ;
891891 expect ( within ( pageHeaderLeading ( ) as HTMLElement ) . getByText ( "设置" ) ) . toBeInTheDocument ( ) ;
892892
@@ -901,7 +901,7 @@ describe("SettingsPage", () => {
901901 expect ( screen . getByRole ( "button" , { name : "快捷键" } ) ) . toBeInTheDocument ( ) ;
902902 expect ( within ( pageHeaderLeading ( ) as HTMLElement ) . getByText ( "设置" ) ) . toBeInTheDocument ( ) ;
903903
904- fireEvent . click ( screen . getByRole ( "button" , { name : "Providers " } ) ) ;
904+ fireEvent . click ( screen . getByRole ( "button" , { name : "Agents " } ) ) ;
905905
906906 await waitFor ( ( ) => {
907907 expect ( screen . getByLabelText ( "启动命令参数" ) ) . toBeInTheDocument ( ) ;
@@ -911,7 +911,7 @@ describe("SettingsPage", () => {
911911
912912 fireEvent . click ( screen . getByRole ( "button" , { name : "返回" } ) ) ;
913913
914- expect ( screen . getByRole ( "button" , { name : "Providers " } ) ) . toBeInTheDocument ( ) ;
914+ expect ( screen . getByRole ( "button" , { name : "Agents " } ) ) . toBeInTheDocument ( ) ;
915915 expect ( screen . queryByLabelText ( "启动命令参数" ) ) . not . toBeInTheDocument ( ) ;
916916 } ) ;
917917
@@ -941,7 +941,7 @@ describe("SettingsPage", () => {
941941
942942 fireEvent . click ( screen . getByRole ( "button" , { name : "返回" } ) ) ;
943943
944- expect ( screen . getByRole ( "button" , { name : "Providers " } ) ) . toBeInTheDocument ( ) ;
944+ expect ( screen . getByRole ( "button" , { name : "Agents " } ) ) . toBeInTheDocument ( ) ;
945945 expect ( document . querySelector ( ".settings-body--mobile" ) ) . toBeNull ( ) ;
946946 expect ( document . querySelector ( ".settings-body--mobile-detail" ) ) . toBeNull ( ) ;
947947 expect ( document . querySelector ( ".settings-content--mobile-detail" ) ) . toBeNull ( ) ;
@@ -973,7 +973,7 @@ describe("SettingsPage", () => {
973973 const store = createConnectedStore ( sendCommand ) ;
974974
975975 renderSettingsPage ( store ) ;
976- fireEvent . click ( screen . getByRole ( "button" , { name : "Providers " } ) ) ;
976+ fireEvent . click ( screen . getByRole ( "button" , { name : "Agents " } ) ) ;
977977
978978 await waitFor ( ( ) => {
979979 expect ( screen . getByLabelText ( "启动命令参数" ) ) . toBeInTheDocument ( ) ;
0 commit comments