Skip to content

Commit 4a61770

Browse files
committed
Try waiting for mito frame to load to fix webkit
1 parent 4d9ee2d commit 4a61770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/streamlit_ui_tests/utils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { FormulaType } from './types';
44

55
export const getMitoFrame = async (page: Page): Promise<FrameLocator> => {
66
await page.goto('http://localhost:8555/');
7-
return page.frameLocator('iframe[title="mitosheet\\.streamlit\\.v1\\.spreadsheet\\.my_component"]');
7+
const mito = page.frameLocator('iframe[title="mitosheet\\.streamlit\\.v1\\.spreadsheet\\.my_component"]');
8+
await expect(mito.locator('.mito-toolbar-button-enabled', { hasText: 'Import' })).toBeVisible();
9+
return mito;
810
};
911

1012
export const importCSV = async (page: Page, mito: FrameLocator, filename: string): Promise<void> => {

0 commit comments

Comments
 (0)