mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-03 06:03:21 +03:00
22 lines
702 B
TypeScript
22 lines
702 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
import { loadPage } from './libs/load-page.js';
|
|
|
|
loadPage();
|
|
|
|
test.skip('Layout ui', () => {
|
|
test('Collapse Sidebar', async ({ page }) => {
|
|
await page.getByTestId('sliderBar-arrowButton').click();
|
|
const sliderBarArea = page.getByTestId('sliderBar');
|
|
await expect(sliderBarArea).not.toBeVisible();
|
|
});
|
|
|
|
test('Expand Sidebar', async ({ page }) => {
|
|
await page.getByTestId('sliderBar-arrowButton').click();
|
|
const sliderBarArea = page.getByTestId('sliderBar');
|
|
await expect(sliderBarArea).not.toBeVisible();
|
|
|
|
await page.getByTestId('sliderBar-arrowButton').click();
|
|
await expect(sliderBarArea).toBeVisible();
|
|
});
|
|
});
|