AFFiNE/tests/parallels/subpage.spec.ts

14 lines
491 B
TypeScript
Raw Normal View History

import { test } from '@affine-test/kit/playwright';
2023-03-23 13:01:58 +03:00
import { expect } from '@playwright/test';
import { openHomePage } from '../libs/load-page';
import { waitEditorLoad } from '../libs/page-logic';
2023-03-23 13:01:58 +03:00
test('Create subpage', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
await page.getByTestId('app-sidebar-arrow-button-collapse').click();
const sliderBarArea = page.getByTestId('sliderBar-inner');
await expect(sliderBarArea).not.toBeInViewport();
2023-03-23 13:01:58 +03:00
});