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.

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

export function toolbarButtons(page: Page) {
  const toolbar = page.locator('affine-toolbar-widget editor-toolbar');
  const switchViewBtn = toolbar.getByLabel('Switch view');
  const inlineViewBtn = toolbar.getByLabel('Inline view');
  const cardViewBtn = toolbar.getByLabel('Card view');
  const embedViewBtn = toolbar.getByLabel('Embed view');

  return {
    toolbar,
    switchViewBtn,
    inlineViewBtn,
    cardViewBtn,
    embedViewBtn,
  };
}