Approve tool use

This commit is contained in:
gpt-engineer-app[bot]
2025-11-02 21:46:47 +00:00
parent f81037488c
commit a9644c0bee
11 changed files with 2158 additions and 18 deletions

View File

@@ -2,24 +2,17 @@
* E2E Tests for Moderation Lock Management
*
* Browser-based tests for lock UI and interactions
* Uses authenticated state from global setup
*/
import { test, expect } from '@playwright/test';
// Helper function to login as moderator (adjust based on your auth setup)
async function loginAsModerator(page: any) {
await page.goto('/login');
// TODO: Add your actual login steps here
// For example:
// await page.fill('[name="email"]', 'moderator@example.com');
// await page.fill('[name="password"]', 'password123');
// await page.click('button[type="submit"]');
await page.waitForLoadState('networkidle');
}
// Configure test to use moderator auth state
test.use({ storageState: '.auth/moderator.json' });
test.describe('Moderation Lock Management UI', () => {
test.beforeEach(async ({ page }) => {
await loginAsModerator(page);
// Navigate to moderation queue (already authenticated via storageState)
await page.goto('/moderation/queue');
await page.waitForLoadState('networkidle');
});