We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df908ef commit 402606aCopy full SHA for 402606a
special-pages/pages/new-tab/app/favorites/integration-tests/favorites.page.js
@@ -201,8 +201,7 @@ export class FavoritesPage {
201
await body.press('Tab');
202
203
const statsToggle = page.getByLabel('Hide recent activity');
204
- const isActive = await statsToggle.evaluate((handle) => handle === document.activeElement);
205
- expect(isActive).toBe(true);
+ await expect(statsToggle).toBeFocused();
206
}
207
208
/**
0 commit comments