2022-12-30 16:40:15 +03:00
|
|
|
import { test, expect } from '@playwright/test';
|
2023-01-09 07:20:53 +03:00
|
|
|
import { loadPage } from './libs/load-page.js';
|
2022-12-30 16:40:15 +03:00
|
|
|
|
|
|
|
loadPage();
|
|
|
|
|
|
|
|
test.describe('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();
|
|
|
|
});
|
|
|
|
});
|