|
|
| import { test, expect } from '@playwright/test'; |
|
|
| test('Verify app features', async ({ page }) => { |
| await page.goto('http://localhost:7860'); |
|
|
| |
| await page.waitForSelector('text=SyncUsers & NovaAct'); |
|
|
| |
| await page.click('text=Dashboard'); |
|
|
| |
| const currentView = await page.locator('select').nth(1).inputValue(); |
| console.log('Current View:', currentView); |
| expect(currentView).toBe('Job Title'); |
|
|
| |
| await expect(page.locator('text=Configuration Required')).toBeVisible(); |
| await expect(page.locator('text=Assemble new group and create a new test are required')).toBeVisible(); |
|
|
| |
| await expect(page.locator('text=OUTPUT')).toBeVisible(); |
| await expect(page.locator('text=Simulation Results')).toBeVisible(); |
|
|
| |
| await page.click('text=Assemble new group'); |
| await expect(page.locator('h3:has-text("Assemble New Group")')).toBeVisible(); |
| await page.fill('textarea[placeholder="Describe your ideal audience..."]', 'Test Profile'); |
| await page.click('button:has-text("Cancel")'); |
|
|
| |
| await page.click('text=Open Global Chat'); |
| await expect(page.locator('text=New Simulation')).toBeVisible(); |
|
|
| |
| await expect(page.locator('button:has-text("Help Me Craft")')).toBeVisible(); |
|
|
| |
| await expect(page.locator('button:has-text("Upload Images")')).toBeVisible(); |
|
|
| |
| await page.click('text=Request a new context'); |
| await expect(page.locator('h3:has-text("Request New Context")')).toBeVisible(); |
| await page.click('button:has-text("Cancel")'); |
|
|
| |
| const response = await page.request.get('http://localhost:7860/health'); |
| expect(response.status()).toBe(200); |
| console.log('/health status:', response.status()); |
|
|
| |
| await page.screenshot({ path: '/home/jules/verification/chat_page_check.png', fullPage: true }); |
|
|
| console.log('Verification completed successfully'); |
| }); |
|
|