AFFiNE/tests/parallels/subpage.spec.ts

14 lines
491 B
TypeScript
Raw Normal View History

2023-03-23 13:01:58 +03:00
import { expect } from '@playwright/test';
import { openHomePage } from '../libs/load-page';
2023-03-28 08:25:16 +03:00
import { waitMarkdownImported } from '../libs/page-logic';
import { test } from '../libs/playwright';
2023-03-23 13:01:58 +03:00
test('Create subpage', async ({ page }) => {
await openHomePage(page);
await waitMarkdownImported(page);
await page.getByTestId('sliderBar-arrowButton-collapse').click();
const sliderBarArea = page.getByTestId('sliderBar-inner');
await expect(sliderBarArea).not.toBeInViewport();
2023-03-23 13:01:58 +03:00
});