feat: add ai-is-land (#7259)

This commit is contained in:
regischen
2024-06-20 02:52:14 +00:00
parent 0d711667a8
commit ddf72733e1
8 changed files with 156 additions and 44 deletions

View File

@@ -0,0 +1,16 @@
import { test } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import {
clickNewPageButton,
waitForEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import { expect } from '@playwright/test';
test('Click ai-land icon', async ({ page }) => {
await openHomePage(page);
await waitForEditorLoad(page);
await clickNewPageButton(page);
await page.locator('[data-testid=ai-island]').click();
await expect(page.locator('chat-panel')).toBeVisible();
});