| 899 | } |
| 900 | |
| 901 | async function openSettingsByCommand(page) { |
| 902 | const input = page.locator('[data-testid="atlas-command-input"]'); |
| 903 | await input.click(); |
| 904 | await input.fill(''); |
| 905 | await input.pressSequentially('settings', { delay: 20 }); |
| 906 | await page.waitForTimeout(300); |
| 907 | await input.press('Enter'); |
| 908 | await page.waitForSelector('[data-testid="atlas-settings"]', { timeout: 15000 }); |
| 909 | await page.waitForTimeout(350); |
| 910 | } |
| 911 | |
| 912 | async function closeSettings(page) { |
| 913 | if (!(await settingsOpen(page))) { |