(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:
George Gevoian
2024-05-13 10:55:52 -07:00
parent 85f1040439
commit e299f4466b
10 changed files with 157 additions and 75 deletions

View File

@@ -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;