🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
♻️ test: rename discover to community in e2e (#11274)
Arvin Xu9caa13776b69
diff --git a/e2e/package.json b/e2e/package.jsonindex 69575996a31..79ecd424f31 100644--- a/e2e/package.json+++ b/e2e/package.json@@ -7,7 +7,7 @@"build": "cd .. && bun run build","test": "cucumber-js --config cucumber.config.js","test:ci": "bun run build && bun run test",- "test:discover": "cucumber-js --config cucumber.config.js src/features/discover/",+ "test:community": "cucumber-js --config cucumber.config.js src/features/community/","test:headed": "HEADLESS=false cucumber-js --config cucumber.config.js","test:routes": "cucumber-js --config cucumber.config.js --tags '@routes'","test:routes:ci": "cucumber-js --config cucumber.config.js --tags '@routes and not @ci-skip'",diff --git a/e2e/src/features/discover/detail-pages.feature b/e2e/src/features/community/detail-pages.featuresimilarity index 100%rename from e2e/src/features/discover/detail-pages.featurerename to e2e/src/features/community/detail-pages.featurediff --git a/e2e/src/features/discover/interactions.feature b/e2e/src/features/community/interactions.featuresimilarity index 100%rename from e2e/src/features/discover/interactions.featurerename to e2e/src/features/community/interactions.featurediff --git a/e2e/src/features/discover/smoke.feature b/e2e/src/features/community/smoke.featuresimilarity index 100%rename from e2e/src/features/discover/smoke.featurerename to e2e/src/features/community/smoke.featurediff --git a/e2e/src/mocks/discover/data.ts b/e2e/src/mocks/community/data.tssimilarity index 100%rename from e2e/src/mocks/discover/data.tsrename to e2e/src/mocks/community/data.tsdiff --git a/e2e/src/mocks/discover/handlers.ts b/e2e/src/mocks/community/handlers.tssimilarity index 100%rename from e2e/src/mocks/discover/handlers.tsrename to e2e/src/mocks/community/handlers.tsdiff --git a/e2e/src/mocks/discover/index.ts b/e2e/src/mocks/community/index.tssimilarity index 100%rename from e2e/src/mocks/discover/index.tsrename to e2e/src/mocks/community/index.tsdiff --git a/e2e/src/mocks/discover/types.ts b/e2e/src/mocks/community/types.tssimilarity index 100%rename from e2e/src/mocks/discover/types.tsrename to e2e/src/mocks/community/types.tsdiff --git a/e2e/src/mocks/index.ts b/e2e/src/mocks/index.tsindex eae11460e35..f384f920c51 100644--- a/e2e/src/mocks/index.ts+++ b/e2e/src/mocks/index.ts@@ -6,7 +6,7 @@*/import type { Page, Route } from 'playwright';-import { discoverMocks } from './discover';+import { discoverMocks } from './community';// ============================================// Types@@ -35,7 +35,7 @@ export interface MockConfig {const defaultConfig: MockConfig = {enabled: true,handlers: {- discover: discoverMocks,+ community: discoverMocks,// Add more domains here as needed:// user: userMocks,// chat: chatMocks,diff --git a/e2e/src/steps/discover/detail-pages.steps.ts b/e2e/src/steps/community/detail-pages.steps.tssimilarity index 94%rename from e2e/src/steps/discover/detail-pages.steps.tsrename to e2e/src/steps/community/detail-pages.steps.tsindex 4f26056b4be..50ac450f60b 100644--- a/e2e/src/steps/discover/detail-pages.steps.ts+++ b/e2e/src/steps/community/detail-pages.steps.ts@@ -47,7 +47,7 @@ Then('I should be on an assistant detail page', async function (this: CustomWorlconst currentUrl = this.page.url();// Check if URL matches assistant detail page pattern- const hasAssistantDetail = /\/discover\/assistant\/[^#?]+/.test(currentUrl);+ const hasAssistantDetail = /\/community\/assistant\/[^#?]+/.test(currentUrl);expect(hasAssistantDetail,`Expected URL to match assistant detail page pattern, but got: ${currentUrl}`,@@ -116,7 +116,7 @@ Then('I should be on the assistant list page', async function (this: CustomWorld// Check if URL is assistant list (not detail page)const isListPage =currentUrl.includes('/community/assistant') &&- !/\/discover\/assistant\/[^#?]+/.test(currentUrl);+ !/\/community\/assistant\/[^#?]+/.test(currentUrl);expect(isListPage, `Expected URL to be assistant list page, but got: ${currentUrl}`).toBeTruthy();});@@ -126,7 +126,7 @@ Then('I should be on a model detail page', async function (this: CustomWorld) {const currentUrl = this.page.url();// Check if URL matches model detail page pattern- const hasModelDetail = /\/discover\/model\/[^#?]+/.test(currentUrl);+ const hasModelDetail = /\/community\/model\/[^#?]+/.test(currentUrl);expect(hasModelDetail,`Expected URL to match model detail page pattern, but got: ${currentUrl}`,@@ -175,7 +175,7 @@ Then('I should be on the model list page', async function (this: CustomWorld) {const currentUrl = this.page.url();// Check if URL is model list (not detail page)const isListPage =- currentUrl.includes('/community/model') && !/\/discover\/model\/[^#?]+/.test(currentUrl);+ currentUrl.includes('/community/model') && !/\/community\/model\/[^#?]+/.test(currentUrl);expect(isListPage, `Expected URL to be model list page, but got: ${currentUrl}`).toBeTruthy();});@@ -185,7 +185,7 @@ Then('I should be on a provider detail page', async function (this: CustomWorld)const currentUrl = this.page.url();// Check if URL matches provider detail page pattern- const hasProviderDetail = /\/discover\/provider\/[^#?]+/.test(currentUrl);+ const hasProviderDetail = /\/community\/provider\/[^#?]+/.test(currentUrl);expect(hasProviderDetail,`Expected URL to match provider detail page pattern, but got: ${currentUrl}`,@@ -234,7 +234,7 @@ Then('I should be on the provider list page', async function (this: CustomWorld)const currentUrl = this.page.url();// Check if URL is provider list (not detail page)const isListPage =- currentUrl.includes('/community/provider') && !/\/discover\/provider\/[^#?]+/.test(currentUrl);+ currentUrl.includes('/community/provider') && !/\/community\/provider\/[^#?]+/.test(currentUrl);expect(isListPage, `Expected URL to be provider list page, but got: ${currentUrl}`).toBeTruthy();});@@ -244,7 +244,7 @@ Then('I should be on an MCP detail page', async function (this: CustomWorld) {const currentUrl = this.page.url();// Check if URL matches MCP detail page pattern- const hasMcpDetail = /\/discover\/mcp\/[^#?]+/.test(currentUrl);+ const hasMcpDetail = /\/community\/mcp\/[^#?]+/.test(currentUrl);expect(hasMcpDetail,`Expected URL to match MCP detail page pattern, but got: ${currentUrl}`,@@ -291,6 +291,6 @@ Then('I should be on the MCP list page', async function (this: CustomWorld) {const currentUrl = this.page.url();// Check if URL is MCP list (not detail page)const isListPage =- currentUrl.includes('/community/mcp') && !/\/discover\/mcp\/[^#?]+/.test(currentUrl);+ currentUrl.includes('/community/mcp') && !/\/community\/mcp\/[^#?]+/.test(currentUrl);expect(isListPage, `Expected URL to be MCP list page, but got: ${currentUrl}`).toBeTruthy();});diff --git a/e2e/src/steps/discover/interactions.steps.ts b/e2e/src/steps/community/interactions.steps.tssimilarity index 98%rename from e2e/src/steps/discover/interactions.steps.tsrename to e2e/src/steps/community/interactions.steps.tsindex f8652c88cd2..0c331b7496c 100644--- a/e2e/src/steps/discover/interactions.steps.ts+++ b/e2e/src/steps/community/interactions.steps.ts@@ -327,7 +327,7 @@ Then('I should be navigated to the assistant detail page', async function (this:const currentUrl = this.page.url();// Verify that URL changed and contains /assistant/ followed by an identifier- const hasAssistantDetail = /\/discover\/assistant\/[^#?]+/.test(currentUrl);+ const hasAssistantDetail = /\/community\/assistant\/[^#?]+/.test(currentUrl);const urlChanged = currentUrl !== this.testContext.previousUrl;expect(@@ -362,7 +362,7 @@ Then('I should be navigated to the model detail page', async function (this: Cusconst currentUrl = this.page.url();// Verify that URL changed and contains /model/ followed by an identifier- const hasModelDetail = /\/discover\/model\/[^#?]+/.test(currentUrl);+ const hasModelDetail = /\/community\/model\/[^#?]+/.test(currentUrl);const urlChanged = currentUrl !== this.testContext.previousUrl;expect(@@ -384,7 +384,7 @@ Then('I should be navigated to the provider detail page', async function (this:const currentUrl = this.page.url();// Verify that URL changed and contains /provider/ followed by an identifier- const hasProviderDetail = /\/discover\/provider\/[^#?]+/.test(currentUrl);+ const hasProviderDetail = /\/community\/provider\/[^#?]+/.test(currentUrl);const urlChanged = currentUrl !== this.testContext.previousUrl;expect(@@ -422,7 +422,7 @@ Then('I should be navigated to the MCP detail page', async function (this: Custoconst currentUrl = this.page.url();// Verify that URL changed and contains /mcp/ followed by an identifier- const hasMcpDetail = /\/discover\/mcp\/[^#?]+/.test(currentUrl);+ const hasMcpDetail = /\/community\/mcp\/[^#?]+/.test(currentUrl);const urlChanged = currentUrl !== this.testContext.previousUrl;expect(diff --git a/e2e/src/steps/discover/smoke.steps.ts b/e2e/src/steps/community/smoke.steps.tssimilarity index 100%rename from e2e/src/steps/discover/smoke.steps.tsrename to e2e/src/steps/community/smoke.steps.ts