fix: filter tests

This commit is contained in:
DarkPhoenix2704
2024-11-28 14:48:01 +00:00
parent 759004842d
commit 8dbe398bae
5 changed files with 22 additions and 15 deletions

View File

@@ -10,11 +10,11 @@ export class MiscSettingsPage extends BasePage {
}
get() {
return this.settings.get().locator(`[data-testid="nc-settings-subtab-Misc"]`);
return this.settings.get().locator(`[data-testid="nc-settings-subtab-visibility"]`);
}
async clickShowM2MTables() {
const clickAction = () => this.get().locator('input[type="checkbox"]').first().click();
const clickAction = () => this.get().locator('.nc-settings-meta-misc-m2m').first().click();
await this.waitForResponse({
uiAction: clickAction,
requestUrlPathToMatch: 'tables?includeM2M',
@@ -24,7 +24,7 @@ export class MiscSettingsPage extends BasePage {
async clickShowNullEmptyFilters() {
await this.waitForResponse({
uiAction: () => this.get().locator('input[type="checkbox"]').last().click(),
uiAction: () => this.rootPage.locator('.nc-settings-show-null-and-empty-in-filter').first().click(),
requestUrlPathToMatch: '/api/v1/db/meta/projects',
httpMethodsToMatch: ['PATCH'],
});