mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): handle uncaught ai flag (#8663)
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
test('Click ai-land icon', async ({ page }) => {
|
||||
test.skip(process.env.CI !== undefined, 'Skip test in CI');
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
await clickNewPageButton(page);
|
||||
|
||||
@@ -220,9 +220,12 @@ test('check if added property is also in workspace settings', async ({
|
||||
}) => {
|
||||
await addCustomProperty(page, page, 'text');
|
||||
await openWorkspaceProperties(page);
|
||||
await expect(
|
||||
page.locator('[data-testid=doc-property-manager-item]:has-text("Text")')
|
||||
).toBeVisible();
|
||||
const settingModal = page.locator('[data-testid=setting-modal-content]');
|
||||
const item = settingModal.locator(
|
||||
'[data-testid=doc-property-manager-item]:has-text("Text")'
|
||||
);
|
||||
await item.waitFor({ state: 'attached' });
|
||||
await expect(item).toBeVisible();
|
||||
});
|
||||
|
||||
test('edit property name', async ({ page }) => {
|
||||
@@ -243,9 +246,12 @@ test('edit property name', async ({ page }) => {
|
||||
|
||||
// check if the property name is also updated in workspace settings
|
||||
await openWorkspaceProperties(page);
|
||||
await expect(
|
||||
page.locator('[data-testid=doc-property-manager-item]:has-text("New Text")')
|
||||
).toBeVisible();
|
||||
const settingModal = page.locator('[data-testid=setting-modal-content]');
|
||||
const item = settingModal.locator(
|
||||
'[data-testid=doc-property-manager-item]:has-text("New Text")'
|
||||
);
|
||||
await item.waitFor({ state: 'attached' });
|
||||
await expect(item).toBeVisible();
|
||||
});
|
||||
|
||||
test('delete property via property popup', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user