mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +08:00
test: assert current workspace flavour (#1664)
This commit is contained in:
@@ -3,6 +3,7 @@ import { expect } from '@playwright/test';
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
import { clickSideBarCurrentWorkspaceBanner } from './libs/sidebar';
|
||||
import { assertCurrentWorkspaceFlavour } from './libs/workspace';
|
||||
|
||||
loadPage();
|
||||
|
||||
@@ -10,6 +11,7 @@ test.describe('Local first default workspace', () => {
|
||||
test('preset workspace name', async ({ page }) => {
|
||||
const workspaceName = page.getByTestId('workspace-name');
|
||||
expect(await workspaceName.textContent()).toBe('Demo Workspace');
|
||||
await assertCurrentWorkspaceFlavour('local', page);
|
||||
});
|
||||
|
||||
// test('default workspace avatar', async ({ page }) => {
|
||||
@@ -26,5 +28,6 @@ test.describe('Language switch', () => {
|
||||
await expect(languageMenuButton).toBeVisible();
|
||||
const actual = await languageMenuButton.innerText();
|
||||
expect(actual).toEqual('English');
|
||||
await assertCurrentWorkspaceFlavour('local', page);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user