mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Restoring cursor position on raw data views
Summary: This diff introduces cursor features for raw data views: - Restoring cursor position when the browser window is reloaded - Restoring the last edit position when the browser window is reloaded Test Plan: Added tests Reviewers: alexmojaki Reviewed By: alexmojaki Subscribers: jarek Differential Revision: https://phab.getgrist.com/D3314
This commit is contained in:
@@ -2045,6 +2045,23 @@ export async function filterBy(col: IColHeader|string, save: boolean, values: (s
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh browser and dismiss alert that is shown (for refreshing during edits).
|
||||
*/
|
||||
export async function refreshDismiss() {
|
||||
await driver.navigate().refresh();
|
||||
await (await driver.switchTo().alert()).accept();
|
||||
await waitForDocToLoad();
|
||||
}
|
||||
|
||||
/**
|
||||
* Confirms that anchor link was used for navigation.
|
||||
*/
|
||||
export async function waitForAnchor() {
|
||||
await waitForDocToLoad();
|
||||
await driver.wait(async () => (await getTestState()).anchorApplied, 2000);
|
||||
}
|
||||
|
||||
} // end of namespace gristUtils
|
||||
|
||||
stackWrapOwnMethods(gristUtils);
|
||||
|
||||
Reference in New Issue
Block a user