Skip to content

Commit ac8b4c3

Browse files
committed
fixed tests
1 parent fa588c2 commit ac8b4c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

special-pages/pages/history/integration-tests/history.page.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ export class HistoryTestPage {
287287
await title.hover();
288288
await title.getByLabel('Show menu for Today').click();
289289

290-
// Verify the call to "menu_title" with expected parameters
291-
const calls = await this.mocks.waitForCallCount({ method: 'menu_title', count: 1 });
290+
// Verify the call to "title_menu" with expected parameters
291+
const calls = await this.mocks.waitForCallCount({ method: 'title_menu', count: 1 });
292292
expect(calls[0].payload.params).toStrictEqual({ dateRelativeDay: 'Today' });
293293

294294
// verify the section is gone
@@ -302,7 +302,7 @@ export class HistoryTestPage {
302302
const { page } = this;
303303
const title = page.getByRole('list').getByText('Today');
304304
await title.click({ button: 'right' });
305-
const calls = await this.mocks.waitForCallCount({ method: 'menu_title', count: 1 });
305+
const calls = await this.mocks.waitForCallCount({ method: 'title_menu', count: 1 });
306306
expect(calls[0].payload.params).toStrictEqual({ dateRelativeDay: 'Today' });
307307
}
308308
}

0 commit comments

Comments
 (0)