|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import { SettingsPage } from '.'; |
|
|
|
|
import { isEE } from '../../../setup/db'; |
|
|
|
|
import BasePage from '../../Base'; |
|
|
|
|
|
|
|
|
|
export class MiscSettingsPage extends BasePage { |
|
|
|
@ -18,7 +19,10 @@ export class MiscSettingsPage extends BasePage {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async clickShowM2MTables() { |
|
|
|
|
await this.settings.get().locator(`[data-testid="visibility-tab"]`).click(); |
|
|
|
|
if (isEE()) { |
|
|
|
|
await this.selectTab('visibility-tab'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const clickAction = () => this.get().locator('.nc-settings-meta-misc-m2m').first().click(); |
|
|
|
|
await this.waitForResponse({ |
|
|
|
|
uiAction: clickAction, |
|
|
|
@ -28,7 +32,10 @@ export class MiscSettingsPage extends BasePage {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async clickShowNullEmptyFilters() { |
|
|
|
|
await this.settings.get().locator(`[data-testid="visibility-tab"]`).click(); |
|
|
|
|
if (isEE()) { |
|
|
|
|
await this.selectTab('visibility-tab'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
await this.waitForResponse({ |
|
|
|
|
uiAction: () => this.rootPage.locator('.nc-settings-show-null-and-empty-in-filter').first().click(), |
|
|
|
|
requestUrlPathToMatch: '/api/v1/db/meta/projects', |
|
|
|
|