Skip to content

Commit 097a745

Browse files
committed
Fix test
1 parent cdde8e3 commit 097a745

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ export class FavoritesPage {
2828

2929
async opensInNewWindow() {
3030
await this.nthFavorite(0).click({ modifiers: ['Shift'] });
31-
await this.nthFavorite(0).click({ button: 'middle' });
32-
const calls = await this.ntp.mocks.waitForCallCount({ method: 'favorites_open', count: 2 });
31+
const calls = await this.ntp.mocks.waitForCallCount({ method: 'favorites_open', count: 1 });
3332
expect(calls[0].payload.params).toStrictEqual({ id: 'id-many-1', url: 'https://example.com/?id=id-many-1', target: 'new-window' });
34-
expect(calls[1].payload.params).toStrictEqual({ id: 'id-many-1', url: 'https://example.com/?id=id-many-1', target: 'new-window' });
3533
}
3634

3735
async opensInSameTab() {

0 commit comments

Comments
 (0)