mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-07-26 06:42:32 +00:00
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
26 lines
727 B
TypeScript
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);
|
|
});
|