Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

chore(playwright.yml): move 'Start API server' job to after 'Install Playwright Browsers' job fix(landing.spec.js): change page.goto URL to 'http://localhost:3080/'

Daniel Avila3f42db4956ac
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index 6586a9321f..869360e2cc 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -45,12 +45,6 @@ jobs:
working-directory: ./client
run: npm ci
- - name: Start API server
- working-directory: ./api
- run: |
- npm run start &
- sleep 10 # Wait for the server to start
-
- name: Build Client
working-directory: ./client
run: npm run build
@@ -61,6 +55,12 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
+ - name: Start API server
+ working-directory: ./api
+ run: |
+ npm run start &
+ sleep 10 # Wait for the server to start
+
- name: Run Playwright tests
run: npx playwright test
diff --git a/e2e/specs/landing.spec.js b/e2e/specs/landing.spec.js
index d97e8a01a3..c10c78221d 100644
--- a/e2e/specs/landing.spec.js
+++ b/e2e/specs/landing.spec.js
@@ -1,7 +1,7 @@
import {expect, test} from '@playwright/test';
test('landing page', async ({page}) => {
- await page.goto('/');
+ await page.goto('http://localhost:3080/');
expect (await page.title()).toBe('New Chat');
expect (await page.textContent('#landing-title')).toBe('ChatGPT Clone');
});
\ No newline at end of file