mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
2438a63255
Summary: - Custom widget tests are now in grist-core - Adding buildtools for grist-plugin-api.js Test Plan: Existing tests Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3617
13 lines
437 B
TypeScript
13 lines
437 B
TypeScript
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();
|
|
}
|