mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
18 lines
625 B
TypeScript
18 lines
625 B
TypeScript
import fs from 'fs';
|
|
import path from 'path';
|
|
import { expect } from '@playwright/test';
|
|
import { test } from './libs/playwright';
|
|
import { loadPage } from './libs/load-page';
|
|
|
|
const pkgPath = path.join(__dirname, '../apps/web/package.json');
|
|
const record = fs.readFileSync(pkgPath, 'utf8');
|
|
const temp = JSON.parse(record);
|
|
loadPage();
|
|
test.describe('web console', () => {
|
|
test('editor version', async ({ page }) => {
|
|
const pkgEditorVersion = temp.dependencies['@blocksuite/editor'];
|
|
const editoVersion = await page.evaluate(() => window.__editoVersion);
|
|
expect(editoVersion).toBe(pkgEditorVersion);
|
|
});
|
|
});
|