mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Support reordering conditional styles
Summary: Conditional style rules can now be reordered by dragging and dropping them. Test Plan: Browser test. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D4251
This commit is contained in:
@@ -2349,6 +2349,10 @@ export function setFillColor(color: string) {
|
||||
return setColor(driver.find('.test-fill-input'), color);
|
||||
}
|
||||
|
||||
export function getStyleRuleAt(nr: number) {
|
||||
return driver.find(`.test-widget-style-conditional-rule-${nr}`);
|
||||
}
|
||||
|
||||
export async function styleRulesCount() {
|
||||
const rules = await driver.findAll('.test-widget-style-conditional-rule');
|
||||
return rules.length;
|
||||
|
||||
Reference in New Issue
Block a user