(core) Null or undefined value on the Integer / Numeric cell

Summary: Text editor for Integer and Numeric column was showing null or undefined when the underlying value was null.

Test Plan: Browser test

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2817
This commit is contained in:
Jarosław Sadziński
2021-05-14 20:53:36 +02:00
parent 15723d1300
commit 2c93eafa44
3 changed files with 16 additions and 2 deletions

View File

@@ -1422,6 +1422,20 @@ export function hexToRgb(hex: string) {
return `rgba(${r}, ${g}, ${b}, 1)`;
}
/**
* Adds new column to the table.
* @param name Name of the column
*/
export async function addColumn(name: string) {
await scrollIntoView(await driver.find('.active_section .mod-add-column'));
await driver.find('.active_section .mod-add-column').click();
await waitForServer();
await waitAppFocus(false);
await driver.sendKeys(name);
await driver.sendKeys(Key.ENTER);
await waitForServer();
}
} // end of namespace gristUtils