mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 12:07:00 +00:00
* fix(nc-gui): update shared grid view * fix(nc-gui): shared gallery view padding issue * fix(nc-gui): Shared kanban view padding issue * fix(nc-gui): reduce calender shared view padding * fix(nc-gui): reduce shared form view padding * fix(nc-gui): update shared view password modal * fix(nc-gui): shared view password input error handling * fix(nc-gui): reduce expanded form modal width if comment section is not present * fix(nc-gui): small changes * fix(nc-gui): add export download view in topbar of shared view * fix(nc-gui): small changes * fix(nc-gui): add blur bg image for shared view password modal * fix(nc-gui): download shared view dropdown ui changes * fix(nc-gui): expanded form scroll issue * fix(nc-gui): click anywhere in card should open expanded form * fix(nc-gui): hide action icon on gallery/kanban card hover * fix(nc-gui): expanded form cell hover effect * fix(nc-gui): add sign up for free btn in shared view * test: update shared view test cases * test: update calendar test cases * fix(nc-gui): remove readonly prefix from attachment modal * fix(nc-gui): remove focus border effect if field is readonly * fix(nc-gui): shared view groupby pagination size should be 10 * fix(nc-gui): remove field modal input shadow if field is disabled * fix(nc-gui): add shadow on expanded form fields * fix(nc-gui): calendar shared view background color update * fix(nc-gui): shared view download btn text color * fix(nc-gui): update url, link, email grid text color if cell is active and remove hover effect * fix(nc-gui): pr review changes
30 lines
875 B
TypeScript
30 lines
875 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');
|
|
}
|
|
|
|
getViewTab({ title }: { title: string }) {
|
|
return this.get().getByTestId(`nc-calendar-view-mode-${title}`);
|
|
}
|
|
|
|
async changeCalendarView({ title }: { title: string }) {
|
|
if (await this.getViewTab({ title }).isVisible()) {
|
|
await this.getViewTab({ title }).click({ force: true });
|
|
} else {
|
|
await this.get().click({ force: true });
|
|
await this.rootPage.waitForTimeout(500);
|
|
|
|
await this.rootPage.locator('.rc-virtual-list-holder-inner > div').locator(`text="${title}"`).click();
|
|
}
|
|
}
|
|
}
|