refactor: global variables logic (#3144)
This commit is contained in:
parent
377f179158
commit
83e48affb1
21 changed files with 130 additions and 258 deletions
|
|
@ -43,14 +43,19 @@ test("should interact with global variables", async ({ page }) => {
|
|||
.getByPlaceholder("Insert a value for the variable...")
|
||||
.fill("testtesttesttesttesttesttesttest");
|
||||
await page.getByTestId("popover-anchor-apply-to-fields").click();
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
await page.getByPlaceholder("Search options...").fill("System Message");
|
||||
|
||||
await page.waitForSelector("text=System Message", { timeout: 30000 });
|
||||
|
||||
await page.getByText("System Message").first().click();
|
||||
|
||||
await page.getByPlaceholder("Search options...").fill("openAI");
|
||||
|
||||
await page.waitForSelector("text=OpenAI API Base", { timeout: 30000 });
|
||||
|
||||
await page.getByText("OpenAI API Base").first().click();
|
||||
|
||||
await page.getByPlaceholder("Search options...").fill("llama");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue