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:
parent
5b84b51488
commit
76a8584c54
2 changed files with 7 additions and 6 deletions
1
src/frontend/package-lock.json
generated
1
src/frontend/package-lock.json
generated
|
|
@ -1176,6 +1176,7 @@
|
|||
},
|
||||
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
|
||||
"version": "1.3.0",
|
||||
"extraneous": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue