feedBack/tests/browser/basic-load.spec.ts
Bret Mogilefsky d3037b903e rename: slopsmith -> feedBack, byron -> got-feedBack
Renames across the entire codebase:
- slopsmith/Slopsmith/SLOPSMITH/SlopSmith -> feedBack/FeedBack/FEEDBACK/FeedBack
- byron/Byron/Byrongamatos -> got-feedBack/got-feedBack/got-feedBack
- /home/byron/ -> /opt/got-feedBack/
- byron@ougsoft.com -> hi@got-feedBack.org
- github.com/byrongamatos/ -> github.com/got-feedback/
- com.byron. -> com.got-feedback.
- SLOPSMITH_ env vars -> FEEDBACK_ with backward-compat fallback
- Protocol/storage strings migrated with read-old/write-new pattern
- window.slopsmith JS API -> window.feedBack (canonical) + backward-compat alias

Refs: #rename-slopsmith
2026-06-23 10:04:23 +02:00

26 lines
727 B
TypeScript

import { test, expect } from '@playwright/test';
test('app loads', async ({ page }) => {
await page.goto('/');
await page.waitForSelector('.screen.active', { timeout: 10000 });
// Check if the page loaded
const title = await page.title();
expect(title).toBe('FeedBack');
});
test('check if window has any shortcuts', async ({ page }) => {
await page.goto('/');
await page.waitForSelector('.screen.active', { timeout: 10000 });
// Wait a bit for JS to load
await page.waitForTimeout(2000);
// Check if the keyboard shortcuts system is loaded
const hasShortcuts = await page.evaluate(() => {
return typeof window._listShortcuts === 'function';
});
expect(hasShortcuts).toBe(true);
});