Skip to content

Commit 847785b

Browse files
committed
Flaky test
1 parent 4a210f9 commit 847785b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/streamlit_ui_tests/taskpanes/formatting.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from '@playwright/test';
2-
import { getMitoFrameWithTestCSV } from '../utils';
2+
import { awaitResponse, getMitoFrameWithTestCSV } from '../utils';
33

44
test.describe('Formatting', () => {
55
test('Add a suggested style', async ({ page }) => {
@@ -12,6 +12,7 @@ test.describe('Formatting', () => {
1212

1313
// Update to the third suggested style
1414
await mito.locator('.mito-suggested-style').nth(2).click();
15+
await awaitResponse(page);
1516
await expect(mito.locator('.endo-column-header-container:not(.endo-column-header-container-selected)').first()).toHaveCSS('background-color', 'rgb(84, 157, 58)')
1617
await expect(mito.locator('.mito-grid-row-even').first()).toHaveCSS('background-color', 'rgb(208, 227, 201)')
1718
await expect(mito.locator('.mito-grid-row-odd').first()).toHaveCSS('background-color', 'rgb(255, 255, 255)')

0 commit comments

Comments
 (0)