Skip to content

Commit 402606a

Browse files
committed
better waiting
1 parent df908ef commit 402606a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

special-pages/pages/new-tab/app/favorites/integration-tests/favorites.page.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ export class FavoritesPage {
201201
await body.press('Tab');
202202
await body.press('Tab');
203203
const statsToggle = page.getByLabel('Hide recent activity');
204-
const isActive = await statsToggle.evaluate((handle) => handle === document.activeElement);
205-
expect(isActive).toBe(true);
204+
await expect(statsToggle).toBeFocused();
206205
}
207206

208207
/**

0 commit comments

Comments
 (0)