refactor: global variables logic (#3144)

This commit is contained in:
Lucas Oliveira 2024-08-01 17:26:29 -03:00 • committed by GitHub
commit 83e48affb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 130 additions and 258 deletions

View file

@ -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");