Skip to content

Commit 34e1d07

Browse files
committed
Deflake theme density test
1 parent 7114243 commit 34e1d07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mesop/examples/e2e/theme_density_test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ test('theme density', async ({page}) => {
77
await page.locator('div').filter({hasText: 'Density'}).first().click();
88
// Select -1 option:
99
await page.getByRole('option', {name: '-1'}).click();
10-
expect(await page.evaluate(hasThemeDensity, -1)).toEqual(true);
10+
await expect(async () => {
11+
const result = await page.evaluate(hasThemeDensity, -1);
12+
expect(result).toEqual(true);
13+
}).toPass({timeout: 5000});
1114

1215
// Open select dropdown:
1316
await page.locator('div').filter({hasText: 'Density-'}).first().click();

0 commit comments

Comments
 (0)