mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) tweak how search bar places cursor on sections
Summary: It is important for linking to be maintained, or user could be gravely misled about material in other sections. Test Plan: added test Reviewers: dsagal Reviewed By: dsagal Subscribers: dsagal Differential Revision: https://phab.getgrist.com/D3003
This commit is contained in:
@@ -177,6 +177,14 @@ export function getSection(sectionOrTitle: string|WebElement): WebElement|WebEle
|
||||
.findClosest('.viewsection_content');
|
||||
}
|
||||
|
||||
/**
|
||||
* Click into a section without disrupting cursor positions.
|
||||
*/
|
||||
export async function selectSectionByTitle(title: string) {
|
||||
await driver.find(`.test-viewsection-title[value="${title}" i]`)
|
||||
.findClosest('.viewsection_titletext_container').click();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns visible cells of the GridView from a single column and one or more rows. Options may be
|
||||
|
||||
Reference in New Issue
Block a user