2023-03-17 10:51:00 +03:00
|
|
|
import type { Page } from '@playwright/test';
|
|
|
|
|
|
|
|
export async function clickCollaborationPanel(page: Page) {
|
|
|
|
await page.click('[data-tab-key="collaboration"]');
|
|
|
|
}
|
2023-03-29 04:57:50 +03:00
|
|
|
|
|
|
|
export async function clickPublishPanel(page: Page) {
|
|
|
|
await page.click('[data-tab-key="publish"]');
|
|
|
|
}
|
2023-06-29 15:54:45 +03:00
|
|
|
|
|
|
|
export async function openSettingModal(page: Page) {
|
|
|
|
await page.getByTestId('settings-modal-trigger').click();
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function openAppearancePanel(page: Page) {
|
|
|
|
await page.getByTestId('appearance-panel-trigger').click();
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function openShortcutsPanel(page: Page) {
|
|
|
|
await page.getByTestId('shortcuts-panel-trigger').click();
|
|
|
|
}
|
2023-07-17 12:25:00 +03:00
|
|
|
export async function openPluginsPanel(page: Page) {
|
|
|
|
await page.getByTestId('plugins-panel-trigger').click();
|
|
|
|
}
|
2023-06-29 15:54:45 +03:00
|
|
|
|
|
|
|
export async function openAboutPanel(page: Page) {
|
|
|
|
await page.getByTestId('about-panel-trigger').click();
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function openWorkspaceSettingPanel(
|
|
|
|
page: Page,
|
|
|
|
workspaceName: string
|
|
|
|
) {
|
|
|
|
await page.getByTestId('settings-sidebar').getByText(workspaceName).click();
|
|
|
|
}
|