2024-06-20 05:52:14 +03:00
|
|
|
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 }) => {
|
2024-11-01 12:18:21 +03:00
|
|
|
test.skip(process.env.CI !== undefined, 'Skip test in CI');
|
2024-06-20 05:52:14 +03:00
|
|
|
await openHomePage(page);
|
|
|
|
await waitForEditorLoad(page);
|
|
|
|
await clickNewPageButton(page);
|
|
|
|
await page.locator('[data-testid=ai-island]').click();
|
|
|
|
|
|
|
|
await expect(page.locator('chat-panel')).toBeVisible();
|
|
|
|
});
|