AFFiNE/tests/affine-local/e2e/subpage.spec.ts

15 lines
562 B
TypeScript
Raw Normal View History

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