refactor: remove Anthropic provider test (#9369)

* Comment out Anthropic provider test and update API key usage

Temporarily commented out the Anthropic provider selection in the Research Translation Loop integration test and switched the API key input to use OPENAI_API_KEY. This change is made pending a way to properly test Anthropic integration.

* Update Research Translation Loop.spec.ts
This commit is contained in:
Edwin Jose 2025-08-12 15:42:57 -04:00 committed by GitHub
commit 76a8584c54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View file

@ -1176,6 +1176,7 @@
},
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
"version": "1.3.0",
"extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {

View file

@ -10,8 +10,8 @@ withEventDeliveryModes(
{ tag: ["@release", "@starter-projects"] },
async ({ page }) => {
test.skip(
!process?.env?.ANTHROPIC_API_KEY,
"ANTHROPIC_API_KEY required to run this test",
!process?.env?.OPENAI_API_KEY,
"OPENAI_API_KEY required to run this test",
);
if (!process.env.CI) {
@ -34,14 +34,14 @@ withEventDeliveryModes(
skipAddNewApiKeys: true,
skipSelectGptModel: true,
});
await page.getByTestId("dropdown_str_provider").click();
await page.getByTestId("Anthropic-1-option").click();
// TODO: Uncomment this when we have a way to test Anthropic
// await page.getByTestId("dropdown_str_provider").click();
// await page.getByTestId("Anthropic-1-option").click();
await page
.getByTestId("popover-anchor-input-api_key")
.last()
.fill(process.env.ANTHROPIC_API_KEY ?? "");
.fill(process.env.OPENAI_API_KEY ?? "");
await page.waitForSelector('[data-testid="dropdown_str_model_name"]', {
timeout: 5000,