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.
13 lines
437 B
13 lines
437 B
2 years ago
|
export * from 'test/server/customUtil';
|
||
|
import {driver} from "mocha-webdriver";
|
||
|
|
||
|
export async function setAccess(option: "none"|"read table"|"full") {
|
||
|
const text = {
|
||
|
"none" : "No document access",
|
||
|
"read table": "Read selected table",
|
||
|
"full": "Full document access"
|
||
|
};
|
||
|
await driver.find(`.test-config-widget-access .test-select-open`).click();
|
||
|
await driver.findContent(`.test-select-menu li`, text[option]).click();
|
||
|
}
|