From 4ce681d42fc56e0dcf7fbc033c0d3aaba5624591 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Mon, 17 Aug 2026 06:48:00 +0000 Subject: [PATCH] test(e2e): align agent model selector locators (#40862) --- e2e/features/step-definitions/agent-v2/configure.steps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/features/step-definitions/agent-v2/configure.steps.ts b/e2e/features/step-definitions/agent-v2/configure.steps.ts index b4ada8ef204..174fcc8820a 100644 --- a/e2e/features/step-definitions/agent-v2/configure.steps.ts +++ b/e2e/features/step-definitions/agent-v2/configure.steps.ts @@ -42,10 +42,10 @@ async function fillAgentPromptEditor(page: Page, prompt: string) { } async function selectAgentModel(page: Page, modelName: string) { - await page.getByRole('combobox').first().click() + await page.getByRole('button', { name: 'Configure model' }).click() await page.getByPlaceholder('Search model').fill(modelName) const escapedModelName = modelName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') - await page.getByRole('option', { name: new RegExp(`${escapedModelName}(?:\\s|$)`) }).click() + await page.getByRole('button', { name: new RegExp(`${escapedModelName}(?:\\s|$)`) }).click() } async function expectAgentComposerPrompt(world: DifyWorld, agentId: string, prompt: string) {