test(web): expect the Gemini API protocol in Models settings goldens
Co-authored-by: LegGasai <[email protected]>
This commit is contained in:
1 parent
d2c00f2554
commit
c0af425cae
5 files changed
+5
-1
No files matched your search
@@ -36,6 +36,7 @@
|
||||
- option "OpenAI Chat Completions" [selected]
|
||||
- option "OpenAI Responses"
|
||||
- option "Anthropic Messages"
|
||||
- option "Gemini API"
|
||||
- group "重试策略":
|
||||
- text: 重试策略
|
||||
- combobox "重试策略":
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
- option "OpenAI Chat Completions"
|
||||
- option "OpenAI Responses"
|
||||
- option "Anthropic Messages" [selected]
|
||||
- option "Gemini API"
|
||||
- group "重试策略":
|
||||
- text: 重试策略
|
||||
- combobox "重试策略":
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
- option "OpenAI Chat Completions"
|
||||
- option "OpenAI Responses"
|
||||
- option "Anthropic Messages" [selected]
|
||||
- option "Gemini API"
|
||||
- group "重试策略":
|
||||
- text: 重试策略
|
||||
- combobox "重试策略":
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
- option "OpenAI Chat Completions"
|
||||
- option "OpenAI Responses"
|
||||
- option "Anthropic Messages" [selected]
|
||||
- option "Gemini API"
|
||||
- group "重试策略":
|
||||
- text: 重试策略
|
||||
- combobox "重试策略":
|
||||
|
||||
@@ -298,7 +298,7 @@ describe('web e2e: Models settings page configures a dormant provider', () => {
|
||||
// The custom-API mode is the second segment of the one add card; its
|
||||
// purpose line replaces the catalog one.
|
||||
await dialog.getByRole('tab', { name: '自定义模型 API' }).click()
|
||||
await dialog.getByText('连接中转站、自部署服务或其他兼容 OpenAI / Anthropic 协议的接口,需填写 API 地址、协议和模型。').waitFor({ timeout: 10_000 })
|
||||
await dialog.getByText('连接中转站、自部署服务或其他兼容 OpenAI / Anthropic / Gemini 协议的接口,需填写 API 地址、协议和模型。').waitFor({ timeout: 10_000 })
|
||||
// The third-party panel stays mounted, hidden, beside this one, so the
|
||||
// form is addressed through its own panel.
|
||||
const custom = dialog.getByRole('tabpanel', { name: '自定义模型 API' })
|
||||
|
||||
Reference in new issue
Block a user