feat(server): refactor for byok (#14911)

This commit is contained in:
DarkSky
2026-05-07 04:03:14 +08:00
committed by GitHub
parent 4e169ea5c7
commit eb9cc22502
115 changed files with 10369 additions and 1256 deletions
+4 -2
View File
@@ -11,9 +11,11 @@ test('import from template should work', async ({ page }) => {
await page.goto('https://affine.pro/templates', { waitUntil: 'load' });
await page.click('.template-list > a:first-child');
const importLink = page.getByText('Use this template');
const importButton = page.getByRole('button', {
name: 'Use this template',
});
const href = await importLink.evaluate((el: HTMLElement) => {
const href = await importButton.evaluate((el: HTMLElement) => {
const a = el.closest('a');
if (!a) {
throw new Error('Import link not found');