Import worship setlists with confirmed song matches and keys

This commit is contained in:
Jonathan Sykes
2026-10-03 15:02:33 +08:00
parent de89508bf4
commit 172e8231f0
7 changed files with 68 additions and 0 deletions

View File

@@ -41,3 +41,11 @@ test('OBS lower third has a transparent background and renders two cues', async
expect(await page.evaluate(() => getComputedStyle(document.body).backgroundColor)).toBe('rgba(0, 0, 0, 0)');
await expect(page.locator('#searchInput')).toBeHidden();
});
test('setlist import confirms library matches and retains key tags', async ({ page }) => {
await openClassic(page, { populated: true }); await page.evaluate(() => SetlistImport.open());
await page.getByLabel('Setlist text', { exact: true }).fill('1. A quiet morning — live studio session [E]');
await page.getByRole('button', { name: 'Find matches', exact: true }).click();
await expect(page.getByLabel('Match A quiet morning — live studio session', { exact: true })).toHaveValue('preview0000');
await page.getByRole('button', { name: 'Create setlist', exact: true }).click();
expect(await page.evaluate(() => data.playlists.at(-1).videos[0].tags)).toContain('Key E');
});