Skip to content

Commit 0d57b20

Browse files
Fix: Adjust tab navigation for omnibar in favorites tests
Co-authored-by: randerson <randerson@duckduckgo.com>
1 parent efe6b12 commit 0d57b20

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ export class FavoritesPage {
203203
// Additional Tab for the new InfoIcon tooltip button in
204204
// ProtectionsHeading
205205
await body.press('Tab');
206+
// Additional Tab for omnibar (enabled by default)
207+
await body.press('Tab');
206208
const statsToggle = page.getByLabel('Hide recent activity');
207209
await expect(statsToggle).toBeFocused();
208210
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test.describe('newtab favorites', () => {
6969
const ntp = NewtabPage.create(page, workerInfo);
7070
const favorites = new FavoritesPage(ntp);
7171
await ntp.reducedMotion();
72-
await ntp.openPage();
72+
await ntp.openPage({ additional: { omnibar: 'false' } });
7373
await favorites.tabsThroughItems();
7474
});
7575
test('initial empty state', async ({ page }, workerInfo) => {

0 commit comments

Comments
 (0)