[MM-55278]: Fixed autofocus on submenu's first element (#29547)

Этот коммит содержится в:
ayush-chauhan233
2025-02-11 11:34:42 +05:30
коммит произвёл GitHub
родитель 169274b3aa
Коммит b2b956c043
8 изменённых файлов: 61 добавлений и 54 удалений

Просмотреть файл

@@ -129,12 +129,10 @@ test('Post actions tab support', async ({pw, axe}) => {
// # Press arrow right
await channelsPage.postDotMenu.remindMenuItem.press('ArrowRight');
// * Reminder menu should be visible and have focused
channelsPage.postReminderMenu.toBeVisible();
await expect(channelsPage.postReminderMenu.container).toBeFocused();
// * Reminder menu should be visible
expect(channelsPage.postReminderMenu.container).toBeVisible();
// * Should move focus to 30 mins after arrow down
await channelsPage.postReminderMenu.container.press('ArrowDown');
// * Should have focus on 30 mins after submenu opens
expect(await channelsPage.postReminderMenu.thirtyMinsMenuItem).toBeFocused();
// * Should move focus to 1 hour after arrow down