Skip to main content
Glama
create.ts•967 B
// @ts-check ///<reference path="../../global.d.ts" /> // This function can only be run properly if the user is logged in and on the Explore page in the new UI Cypress.Commands.add("createComponent", (componentName?: string, closeComponent=true) => { const messageText = componentName ? `"${componentName}"` : 'a component'; const log = Cypress.log({ displayName: "CREATE COMPONENT", message: [`đźź© Creating ${messageText}`], // @ts-ignore autoEnd: false, }); log.snapshot("before"); cy.get('body').type("n"); cy.get('[data-testid="add-component-search"]', { timeout: 60000 }).find('input').focus(); if (componentName) { cy.focused().type(componentName); cy.wait(3000); } cy.focused().type("{downArrow}{enter}"); cy.get('[data-testid="component-name-section"]', { timeout: 60000 }); if (closeComponent) { cy.focused().type("{esc}"); cy.get('body').type("{esc}"); } log.snapshot("after"); log.end(); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server