mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 23:28:51 +08:00
- 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.
26 lines
684 B
TypeScript
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')
|
|
})
|
|
})
|