Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

696 B
Raw Blame
import { expect, test } from '@playwright/test';

test('loads a saved canvas and opens its reference', async ({ page }) => {
  await page.goto('/reference.html');
  const reference = page.getByTestId('canvas-reference');
  await expect(reference).toBeVisible();
  await reference.click();
  expect(await page.evaluate(() => window.referenceFixture.opens)).toBe(1);
});

test('editable canvas mounts and opens its reference', async ({ page }) => {
  await page.goto('/reference.html?edit');
  const reference = page.getByTestId('canvas-reference');
  await expect(reference).toBeVisible();
  await reference.click();
  expect(await page.evaluate(() => window.referenceFixture.opens)).toBe(1);
});