fix: loop variable not accessible error (#7501)

* tests cases

* update to loop

* Update component.py

* 📝 (LoopTemplate.json): update value of a configuration key from "OPENAI_API_KEY" to "ANTHROPIC_API_KEY" in order to reflect the correct API key being used

* update json test loop

* fix: update test URL in loop-component.spec.ts to reflect correct reference

Changed the URL in the test case from "Artificial_intelligence" to "Human_intelligence" to ensure accurate testing of the loop component functionality.

* update FE tests

* [autofix.ci] apply automated fixes

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Edwin Jose 2025-04-10 16:13:33 -04:00 • committed by GitHub
commit e135b7f341
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1537 additions and 1396 deletions

View file

@ -70,7 +70,6 @@ test(
const elementTestIds = [
"outputsChat Output",
"dataAPI Request",
"modelsAmazon Bedrock",
"vectorstoresAstra DB",
"embeddingsAmazon Bedrock Embeddings",
"langchain_utilitiesTool Calling Agent",
@ -97,7 +96,6 @@ test(
const visibleModelSpecsTestIds = [
"modelsAIML",
"modelsAmazon Bedrock",
"modelsAnthropic",
"modelsAzure OpenAI",
"modelsCohere",

View file

@ -177,7 +177,7 @@ test(
.fill("https://en.wikipedia.org/wiki/Artificial_intelligence");
await page
.getByTestId("inputlist_str_urls_1")
.fill("https://en.wikipedia.org/wiki/Artificial_intelligence");
.fill("https://en.wikipedia.org/wiki/Human_intelligence");
await page.getByTestId("div-generic-node").nth(2).click();
await page.getByTestId("int_int_number_of_fields").fill("1");