mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 14:46:49 +00:00
19 lines
490 B
TypeScript
19 lines
490 B
TypeScript
import BasePage from '../../../Base';
|
|
import { ToolbarPage } from './index';
|
|
|
|
export class ToolbarCalendarViewModePage extends BasePage {
|
|
readonly toolbar: ToolbarPage;
|
|
|
|
constructor(toolbar: ToolbarPage) {
|
|
super(toolbar.rootPage);
|
|
this.toolbar = toolbar;
|
|
}
|
|
get() {
|
|
return this.rootPage.getByTestId('nc-calendar-view-mode');
|
|
}
|
|
|
|
async changeCalendarView({ title }: { title: string }) {
|
|
await this.get().getByTestId(`nc-calendar-view-mode-${title}`).click();
|
|
}
|
|
}
|