sprinkle in a waitForServer

This commit is contained in:
Paul Fitzpatrick 2024-10-10 15:47:53 -04:00
parent 7cf2badf2b
commit 712b3d4886
No known key found for this signature in database
GPG Key ID: 07F16BF3214888F6

View File

@ -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];