mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
20 lines
625 B
TypeScript
20 lines
625 B
TypeScript
import { expect } from '@playwright/test';
|
|
import { test } from './libs/playwright.js';
|
|
import { loadPage } from './libs/load-page.js';
|
|
|
|
loadPage();
|
|
|
|
test.describe('Local first default workspace', () => {
|
|
test('preset workspace name', async ({ page }) => {
|
|
const workspaceName = page.getByTestId('workspace-name');
|
|
expect(await workspaceName.textContent()).toBe('AFFiNE Test');
|
|
});
|
|
|
|
test('default workspace avatar', async ({ page }) => {
|
|
const workspaceAvatar = page.getByTestId('workspace-avatar');
|
|
expect(
|
|
await workspaceAvatar.locator('img').getAttribute('src')
|
|
).not.toBeNull();
|
|
});
|
|
});
|