Skip to content

Commit 34d3128

Browse files
marthacryannaterush
authored andcommitted
Attempt to make test less flaky
1 parent 15f6f85 commit 34d3128

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/streamlit_ui_tests/grid/set_column_formula_tests.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ test('Cross-sheet formula with VLOOKUP', async ({ page }) => {
302302
// Click on the first cell in Column1 to reference it as the first argument
303303
await mito.locator('.mito-grid-cell[mito-col-index="0"]').first().click();
304304
// Type the comma to separate the arguments
305+
await mito.locator('input#cell-editor-input').press('End');
305306
await mito.locator('input#cell-editor-input').press(',');
306307

307308
// Navigate to the other sheet and select the range of columns
@@ -310,6 +311,7 @@ test('Cross-sheet formula with VLOOKUP', async ({ page }) => {
310311
await mito.locator('.endo-column-header-final-text', { hasText: 'Column1' }).click();
311312
await mito.locator('.endo-column-header-final-text', { hasText: 'Column3' }).click({ modifiers: ['Shift'] });
312313
// Finish the formula
314+
await mito.locator('input#cell-editor-input').press('End');
313315
await mito.locator('input#cell-editor-input').pressSequentially(', 2)');
314316

315317
// Navigate back to the first sheet and check that the values are correct
@@ -332,6 +334,7 @@ test('Cross-sheet formula with VLOOKUP - pressing enter from another sheet', asy
332334
// Click on the first cell in Column1 to reference it as the first argument
333335
await mito.locator('.mito-grid-cell[mito-col-index="0"]').first().click();
334336
// Type the comma to separate the arguments
337+
await mito.locator('input#cell-editor-input').press('End');
335338
await mito.locator('input#cell-editor-input').press(',');
336339

337340
// Navigate to the other sheet and select the range of columns
@@ -340,6 +343,7 @@ test('Cross-sheet formula with VLOOKUP - pressing enter from another sheet', asy
340343
await mito.locator('.endo-column-header-final-text', { hasText: 'Column1' }).click();
341344
await mito.locator('.endo-column-header-final-text', { hasText: 'Column3' }).click({ modifiers: ['Shift'] });
342345
// Finish the formula
346+
await mito.locator('input#cell-editor-input').press('End');
343347
await mito.locator('input#cell-editor-input').pressSequentially(', 2)');
344348
await mito.locator('input#cell-editor-input').press('Enter');
345349

0 commit comments

Comments
 (0)