mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 04:31:58 +03:00
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import { expect } from '@playwright/test';
|
|
|
|
import { loadPage } from './libs/load-page';
|
|
import { test } from './libs/playwright';
|
|
|
|
loadPage();
|
|
|
|
test.describe('Local first default workspace', () => {
|
|
test('preset workspace name', async ({ page }) => {
|
|
const workspaceName = page.getByTestId('workspace-name');
|
|
expect(await workspaceName.textContent()).toBe('Untitled Workspace');
|
|
});
|
|
|
|
// test('default workspace avatar', async ({ page }) => {
|
|
// const workspaceAvatar = page.getByTestId('workspace-avatar');
|
|
// expect(
|
|
// await workspaceAvatar.locator('img').getAttribute('src')
|
|
// ).not.toBeNull();
|
|
// });
|
|
});
|
|
test.describe('Language switch', () => {
|
|
test('Open language switch menu', async ({ page }) => {
|
|
await page.getByTestId('current-workspace').click();
|
|
const languageMenuButton = page.getByTestId('language-menu-button');
|
|
await expect(languageMenuButton).toBeVisible();
|
|
const actual = await languageMenuButton.innerText();
|
|
expect(actual).toEqual('English');
|
|
});
|
|
});
|