feat(badges): auto-navigate to badge search after print
This commit is contained in:
@@ -337,15 +337,8 @@ test.describe('Event Badge - Attendee Workflow', () => {
|
||||
expect(print_json.print_first_datetime).toBeDefined();
|
||||
console.log(`✅ Badge printed. Count: ${print_json.print_count}`);
|
||||
|
||||
await page.waitForTimeout(500);
|
||||
|
||||
// Step 6: Return to badge search
|
||||
const back_button = page.getByRole('link', { name: /Back to Search/i });
|
||||
await back_button.waitFor({ state: 'visible', timeout: 3000 });
|
||||
await back_button.click();
|
||||
|
||||
// Verify we're back at the badge search page
|
||||
await expect(page).toHaveURL(new RegExp(`/events/${event_id}/badges`), { timeout: 5000 });
|
||||
// After print, the page automatically navigates back to badge search
|
||||
await expect(page).toHaveURL(new RegExp(`/events/${event_id}/badges$`), { timeout: 5000 });
|
||||
await expect(page.locator('#badge_fulltext_search_qry_str')).toBeVisible({ timeout: 5000 });
|
||||
console.log('✅ Returned to badge search - ready for next attendee');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user