dify/web/e2e/tests/apps.spec.ts
CodingOnStar 7b968c6c2e feat: add Playwright E2E testing framework and initial test setup
- Introduced Playwright for end-to-end testing, including configuration in .
- Created global setup and teardown scripts for authentication and cleanup.
- Added page object models for key application pages (Apps, SignIn, Workflow).
- Implemented utility functions for API interactions and common test helpers.
- Updated  to exclude Playwright test results and auth files.
- Added initial E2E tests for the Apps page.
- Updated  with new test scripts for E2E testing.
2025-12-09 18:14:57 +08:00

26 lines
684 B
TypeScript

import { expect, test } from '../fixtures'
/**
* Apps page E2E tests
*
* These tests verify the apps listing and creation functionality.
*/
test.describe('Apps Page', () => {
test('should display apps page after authentication', async ({ page }) => {
// Navigate to apps page
await page.goto('/apps')
// Verify we're on the apps page (not redirected to signin)
await expect(page).toHaveURL(/\/apps/)
// Wait for the page to fully load
await page.waitForLoadState('networkidle')
// Take a screenshot for debugging
await page.screenshot({ path: 'e2e/test-results/apps-page.png' })
console.log('✅ Apps page loaded successfully')
})
})