From 85a2492123bed2ac328a4fc1dde559100b448634 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Mon, 1 Mar 2021 08:56:01 -0500 Subject: [PATCH] (core) a script for making screenshots for access rules documentation Summary: a script I used when preparing access rule documentation. Committing it since the feature in still in beta, so keeping the script around may save some time, even if it rusts quickly. I didn't invest time in cleaning it up. Test Plan: manual Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2756 --- app/client/aclui/AccessRules.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/client/aclui/AccessRules.ts b/app/client/aclui/AccessRules.ts index 3078a79c..1c694690 100644 --- a/app/client/aclui/AccessRules.ts +++ b/app/client/aclui/AccessRules.ts @@ -330,7 +330,7 @@ export class AccessRules extends Disposable { ), dom.forEach(this._tableRules, (tableRules) => tableRules.buildDom()), cssSection( - cssSectionHeading('Default Rules'), + cssSectionHeading('Default Rules', testId('rule-table-header')), cssTableRounded( cssTableHeaderRow( cssCell1(cssCell.cls('-rborder'), cssCell.cls('-center'), cssColHeaderCell('Columns')), @@ -344,7 +344,8 @@ export class AccessRules extends Disposable { ) ), dom.maybe(this._docDefaultRuleSet, ruleSet => ruleSet.buildRuleSetDom()), - ) + ), + testId('rule-table'), ) ), );