mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
feat(core): update chat error style (#9885)
[BS-2487](https://linear.app/affine-design/issue/BS-2487/报错样式更新)
This commit is contained in:
@@ -164,8 +164,8 @@ test('can trigger login at chat side panel', async ({ page }) => {
|
||||
await waitForEditorLoad(page);
|
||||
await clickNewPageButton(page);
|
||||
await makeChat(page, 'hello');
|
||||
const loginTips = await page.waitForSelector('ai-error-wrapper');
|
||||
expect(await loginTips.innerText()).toBe('Login');
|
||||
const loginButton = await page.getByTestId('ai-error-action-button');
|
||||
expect(await loginButton.innerText()).toBe('Login');
|
||||
});
|
||||
|
||||
test('can chat after login at chat side panel', async ({ page }) => {
|
||||
@@ -173,8 +173,8 @@ test('can chat after login at chat side panel', async ({ page }) => {
|
||||
await waitForEditorLoad(page);
|
||||
await clickNewPageButton(page);
|
||||
await makeChat(page, 'hello');
|
||||
const loginTips = await page.waitForSelector('ai-error-wrapper');
|
||||
(await loginTips.$('div'))!.click();
|
||||
const loginButton = await page.getByTestId('ai-error-action-button');
|
||||
await loginButton.click();
|
||||
// login
|
||||
const user = await getUser();
|
||||
await loginUserDirectly(page, user);
|
||||
|
||||
Reference in New Issue
Block a user