mirror of
https://github.com/gristlabs/grist-core.git
synced 2025-06-13 20:53:59 +00:00
sprinkle in a waitForServer
This commit is contained in:
parent
7cf2badf2b
commit
712b3d4886
@ -35,6 +35,7 @@ export const getPreviewDiffCellValues = stackWrapFunc(async (cols: number[], row
|
||||
|
||||
// Helper that waits for the diff preview to finish loading.
|
||||
export const waitForDiffPreviewToLoad = stackWrapFunc(async (): Promise<void> => {
|
||||
await gu.waitForServer();
|
||||
await driver.wait(() => driver.find('.test-importer-preview').isPresent(), 5000);
|
||||
await gu.waitToPass(async () => {
|
||||
const preview = (await getPreviewDiffCellValues([0], [1]))[0];
|
||||
|
Loading…
Reference in New Issue
Block a user