Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

780 B
Raw Blame
import { test } from '../base/base-test';

test.describe('AIChatWith/Network', () => {
  test.beforeEach(async ({ loggedInPage: page, utils }) => {
    await utils.testUtils.setupTestEnvironment(page);
    await utils.chatPanel.openChatPanel(page);
  });

  test('should support chat with network if network search enabled', async ({
    loggedInPage: page,
    utils,
  }) => {
    await utils.chatPanel.enableNetworkSearch(page);
    await utils.chatPanel.makeChat(
      page,
      'What is the weather like in Shanghai today?'
    );
    await utils.chatPanel.waitForHistory(page, [
      {
        role: 'user',
        content: 'What is the weather like in Shanghai today?',
      },
      {
        role: 'assistant',
        status: 'success',
      },
    ]);
  });
});