feat: Introduced YouTube bundle with essential components (#5415)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com> Co-authored-by: anovazzi1 <otavio2204@gmail.com>
This commit is contained in:
parent
bde5fea4af
commit
94d192ff5d
13 changed files with 1272 additions and 259 deletions
|
|
@ -742,6 +742,8 @@ export const BUNDLES_SIDEBAR_FOLDER_NAMES = [
|
|||
"assemblyai",
|
||||
"LangWatch",
|
||||
"langwatch",
|
||||
"Youtube",
|
||||
"youtube",
|
||||
];
|
||||
|
||||
export const AUTHORIZED_DUPLICATE_REQUESTS = [
|
||||
|
|
|
|||
|
|
@ -535,6 +535,7 @@ export const SIDEBAR_BUNDLES = [
|
|||
{ display_name: "Git", name: "git", icon: "GitLoader" },
|
||||
{ display_name: "Confluence", name: "confluence", icon: "Confluence" },
|
||||
{ display_name: "Mem0", name: "mem0", icon: "Mem0" },
|
||||
{ display_name: "Youtube", name: "youtube", icon: "Youtube" },
|
||||
];
|
||||
|
||||
export const categoryIcons = {
|
||||
|
|
|
|||
|
|
@ -11,15 +11,11 @@ test(
|
|||
await page.getByTestId("sidebar-search-input").click();
|
||||
await page.getByTestId("sidebar-search-input").fill("youtube");
|
||||
|
||||
await page.waitForSelector('[id="toolsYouTube Transcripts"]', {
|
||||
timeout: 3000,
|
||||
});
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await page.getByTestId("youtubeYouTube Transcripts").hover();
|
||||
await page.getByTestId("add-component-button-youtube-transcripts").click();
|
||||
|
||||
await page
|
||||
.locator('//*[@id="toolsYouTube Transcripts"]')
|
||||
.dragTo(page.locator('//*[@id="react-flow-id"]'));
|
||||
await page.mouse.up();
|
||||
await page.mouse.down();
|
||||
await page.getByTestId("fit_view").click();
|
||||
|
||||
let outdatedComponents = await page
|
||||
|
|
@ -35,16 +31,15 @@ test(
|
|||
.getByTestId("textarea_str_url")
|
||||
.fill("https://www.youtube.com/watch?v=VqhCQZaH4Vs");
|
||||
|
||||
await page.getByTestId("fit_view").click();
|
||||
|
||||
await page.getByTestId("button_run_youtube transcripts").click();
|
||||
|
||||
await page.waitForSelector("text=built successfully", { timeout: 30000 });
|
||||
|
||||
await page.getByTestId("output-inspection-transcription").first().click();
|
||||
await page.waitForSelector("text=built successfully", { timeout: 300000 });
|
||||
|
||||
await page.getByTestId("output-inspection-transcript").first().click();
|
||||
await page.waitForSelector("text=Component Output", { timeout: 30000 });
|
||||
|
||||
await page.getByRole("gridcell").first().click();
|
||||
|
||||
const value = await page.getByPlaceholder("Empty").inputValue();
|
||||
expect(value.length).toBeGreaterThan(10);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue