多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
792 B

import BasePage from '../../Base';
import { DataSourcesPage } from './DataSources';
export class AclPage extends BasePage {
readonly dataSources: DataSourcesPage;
constructor(dataSources: DataSourcesPage) {
super(dataSources.rootPage);
this.dataSources = dataSources;
}
get() {
return this.dataSources.get();
}
async toggle({ table, role }: { table: string; role: string }) {
await this.get().locator(`.nc-acl-${table}-${role}-chkbox`).click();
}
async save() {
await this.waitForResponse({
uiAction: () => this.get().locator(`button:has-text("Save")`).click(),
httpMethodsToMatch: ['POST'],
requestUrlPathToMatch: '/visibility-rules',
});
await this.verifyToast({ message: 'Updated UI ACL for tables successfully' });
}
}