mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 06:31:13 -05:00
Approve tool use
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user