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.

580 B
Raw Blame
import type { Page } from '@playwright/test';
import { expect } from '@playwright/test';

export let coreUrl = 'http://localhost:8080';

export function setCoreUrl(url: string) {
  coreUrl = url;
}

export async function openHomePage(page: Page) {
  await page.goto(coreUrl);
}

export async function open404Page(page: Page) {
  await page.goto(`${coreUrl}/404`);
}

export async function openJournalsPage(page: Page) {
  await page.getByTestId('slider-bar-journals-button').click();
  await expect(
    page.locator('.doc-title-container:has-text("Today")')
  ).toBeVisible();
}