fix: Remove id generator (#8325)

* remove id generator

* fix test

* [autofix.ci] apply automated fixes

* update test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
Yuqi Tang 2025-06-03 10:59:49 -07:00 committed by GitHub
commit c5ec3f65e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 8 deletions

View file

@ -14,6 +14,7 @@ class IDGeneratorComponent(Component):
description = "Generates a unique ID."
icon = "fingerprint"
name = "IDGenerator"
legacy = True
inputs = [
MessageTextInput(

View file

@ -14,22 +14,22 @@ test(
timeout: 100000,
});
await page.getByTestId("sidebar-search-input").click();
await page.getByTestId("sidebar-search-input").fill("id generator");
await page.getByTestId("sidebar-search-input").fill("prompt");
await page
.getByTestId("helpersID Generator")
.getByTestId("promptsPrompt")
.hover()
.then(async () => {
await page.getByTestId("add-component-button-id-generator").click();
await page.getByTestId("add-component-button-prompt").click();
});
await page.waitForSelector('[data-testid="title-ID Generator"]', {
await page.waitForSelector('[data-testid="title-Prompt"]', {
timeout: 3000,
});
expect(await page.getByText("Toolset", { exact: true }).count()).toBe(0);
await page.getByTestId("title-ID Generator").click();
await page.getByTestId("title-Prompt").click();
await page.keyboard.press("ControlOrMeta+Shift+m");
await page.waitForSelector('text="Toolset"', {
@ -39,7 +39,7 @@ test(
await page.getByText("Toolset", { exact: true }).count(),
).toBeGreaterThan(0);
await page.getByTestId("title-ID Generator").click();
await page.getByTestId("title-Prompt").click();
await page.waitForSelector('[data-testid="code-button-modal"]', {
timeout: 3000,
@ -61,11 +61,11 @@ test(
// check if the response is 200
expect(customComponentResponse?.status()).toBe(200);
await page.waitForSelector('[data-testid="title-ID Generator"]', {
await page.waitForSelector('[data-testid="title-Prompt"]', {
timeout: 3000,
});
await page.getByTestId("title-ID Generator").click();
await page.getByTestId("title-Prompt").click();
await page.keyboard.press("ControlOrMeta+Shift+m");
expect(await page.getByText("Toolset", { exact: true }).count()).toBe(0);