mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
22 lines
548 B
TypeScript
22 lines
548 B
TypeScript
import { Locator, Page } from '@playwright/test';
|
|
|
|
export class SideBarToggle {
|
|
private page: Page;
|
|
rightSideBarButton: Locator;
|
|
leftSideBarButton: Locator;
|
|
|
|
constructor(page: Page) {
|
|
this.page = page;
|
|
this.rightSideBarButton = this.page.getByRole('button', { name: 'dock_to_right' });
|
|
this.leftSideBarButton = this.page.getByRole('button', { name: 'dock_to_left' });
|
|
}
|
|
|
|
async rightSideBarToggle() {
|
|
return await this.rightSideBarButton;
|
|
}
|
|
|
|
async leftSideBarToggle() {
|
|
return await this.leftSideBarButton;
|
|
}
|
|
}
|