langflow/src/frontend/tests/utils/select-gpt-model.ts
Jorge Piedrahita Ortiz 932aee9cff
feat: financial agent template (#6246)
* add finacial assistant template

* fix typos

* Update tags Financial Agent.json

* fix typo

* template updated

* Update sambanova_constants.py

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* updated Financial Agent Template

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

*  (Financial Agent.spec.ts): Add integration test for Financial Agent functionality
♻️ (select-gpt-model.ts): Refactor selectGptModel function to handle multiple dropdown options for GPT model selection

* Update Financial Agent.json

* Update Financial Agent.json

* Update Financial Agent.json

* notes-style

* Update Financial Agent.json

* Update Financial Agent.json

* minor fix in notes

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Jorge Piedrahita Ortiz <166410071+snova-jorgep@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-03-17 15:05:08 +00:00

12 lines
378 B
TypeScript

import { Page } from "playwright/test";
export const selectGptModel = async (page: Page) => {
const gptModelDropdownCount = await page
.getByTestId("dropdown_str_model_name")
.count();
for (let i = 0; i < gptModelDropdownCount; i++) {
await page.getByTestId("dropdown_str_model_name").nth(i).click();
await page.getByRole("option").first().click();
}
};