mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) ValueParser for Date columns
Summary: Adds parseDateStrict function based on parseDate, uses it in DateParser subclass of ValueParser. Test Plan: Tweaked parseDate test to check parseDateStrict. Extended test in CopyPaste to test parsing dates as well as numbers. Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3088
This commit is contained in:
@@ -1695,6 +1695,22 @@ export async function openDocumentSettings() {
|
||||
await driver.findWait('.test-modal-title', 5000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns date format for date and datetime editor
|
||||
*/
|
||||
export async function getDateFormat(): Promise<string> {
|
||||
return driver.find('[data-test-id=Widget_dateFormat] .test-select-row').getText();
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes date format for date and datetime editor
|
||||
*/
|
||||
export async function setDateFormat(format: string) {
|
||||
await driver.find('[data-test-id=Widget_dateFormat]').click();
|
||||
await driver.findContent('.test-select-menu .test-select-row', format).click();
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
} // end of namespace gristUtils
|
||||
|
||||
stackWrapOwnMethods(gristUtils);
|
||||
|
||||
Reference in New Issue
Block a user